This is a discussion on Adding a Text Header in Featured Listings within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; If you look at THIS PAGE see how it has the gray text header (Search) By seeing that I know ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
If you look at THIS PAGE see how it has the gray text header (Search)
By seeing that I know when I go to this page its the search page... But when I go to the following pages I really dont know where Iam at unless I look hard... Featured Popular New So my question is how and where do I add these gray box text headers to these pages?? Thanks again for your help... -Josh
__________________
V3.1.5b Hosted vanwertads*.com "Do unto others as you would expect others to do unto you" |
|
#2
|
||||
|
||||
|
Anyone?... Where is everyone at???.... I have posted a few messages within the last few days and I havent received a responce from anyone... Could really use some help!
__________________
V3.1.5b Hosted vanwertads*.com "Do unto others as you would expect others to do unto you" |
|
#3
|
||||
|
||||
|
The moderators here (ie Juven, Chaslie and myself) are volunteers and help here when we have time, but we all have full time jobs and other obligations so we cant always be here helping.
Eric as you know has been injured which leaves much of the workload on Blairs shoulders and I am sure he is buried. Having said that I highly recommend you spend some time learning the layout of the 68 classifieds template you are using and how smarty uses these templates. I know a lot of people dont want to spend the time and just want someone to tell them exactly what do do, but that will lead to a lot of frustration as you wait around for someone to help you. The template tutorial I tossed together explains to some degree how the templates work together, you can download tutorial here Template design tutorial! and here is another thread which helps explaine how the templates interact. Smarty Templates and You. Posted BY Lhotch Next, if you append the following to the url for your site &debug=true you should get a popup window that shows you the variables passed and the value of $body is the template used to display the main content of the page, for example if I look at this URL on your site http://www.vanwertads.com/toplisting...red&debug=true we can see that $body = showlistings2.tpl.php so, showlistings2.tpl.php is the template you need to modify to add your text header. Next I recommend you download and use firefox and try some of its web developer plugsins if you arent already doing so. It will allow you to edit html/css code of any page in memory so you can see how your changes affect the page without actually changing the file in question.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
#4
|
||||
|
||||
|
Thanks Larry....
After looking at the showlistings2.tpl.php file I don't see where I would modify to make this work... If anyone as time could you show me in more detail as to where in showlistings2.tpl.php file to make these changes... I also noticed that the following pages are being pulled from the showlistings2.tpl.php file: Featured Popular New So if I understand this correct dont I have to enter a special tag so the script know what text header to put on each page... eg. Featured Listings - toplistings.php?pg=featured eg. Top Listings - toplistings.php?pg=top eg. New Listings - toplistings.php?pg=new I have been trying to figure this out for hours.... any help would be grateful.. Thanks, -Josh
__________________
V3.1.5b Hosted vanwertads*.com "Do unto others as you would expect others to do unto you" |
|
#5
|
|||
|
|||
|
I was trying to do the same, and after reading through the support found the solution and customized the codes to fit into the headers on toplistings.php for each page-switch : 'Featured' - 'New' - 'Top'.
in your showlistings.tpl.php and showlistings2.tpl.php add this code: {if $smarty.get.pg == 'featured'} your header html for FEATURED goes here {elseif $smarty.get.pg == 'new'} your header html for NEW goes here {else $smarty.get.pg == 'top'} your header html for TOP goes here {/if}
__________________
Arch / v4.0.1 Developer HyeClassifieds Marketplace | ningboClassifieds Marketplace | ningboSites Directory | a613 Web Solutions |
|
#6
|
|||
|
|||
|
came acros a glitch with that previous code; try this revised version:
{if $smarty.get.pg == 'featured'} your header html for FEATURED goes here {elseif $smarty.get.pg == 'new'} your header html for NEW goes here {elseif $smarty.get.pg == 'top'} your header html for TOP goes here {else $smarty.get.pg == ''} blank or something else that will show up whenever the showlisting template is called {/if}
__________________
Arch / v4.0.1 Developer HyeClassifieds Marketplace | ningboClassifieds Marketplace | ningboSites Directory | a613 Web Solutions |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Featuered Listings Table Header | brian-bear | v3.1 Questions & Support | 1 | 10-21-2006 06:57 AM |
| Adding a heading to the Featured Listings | sporthorsebreeder | v3.1 Questions & Support | 2 | 07-21-2006 01:04 PM |
| Adding a heading to the Featured Listings | sporthorsebreeder | v3.0 Questions & Support | 1 | 07-21-2006 12:49 PM |
| Adding a Heading to the Featured Listings | sporthorsebreeder | HTML, CSS, and Design Help | 9 | 05-31-2006 10:54 PM |
| adding link to featured listings text | NJHomeGuide | v3.0 Questions & Support | 0 | 05-07-2006 04:21 PM |