Adding a Text Header in Featured Listings

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 ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Modules & Modifications

 
LinkBack Thread Tools Display Modes
  #1  
Old 06-22-2007, 05:22 PM
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
Default Adding a Text Header in Featured Listings

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"
Reply With Quote
  #2  
Old 06-26-2007, 03:16 AM
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
Thumbs down

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"
Reply With Quote
  #3  
Old 06-26-2007, 11:33 AM
Moderator
 
Join Date: Mar 2006
Posts: 3,733
Rep Power: 91
Default

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
Reply With Quote
  #4  
Old 07-02-2007, 08:15 PM
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
Question

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"
Reply With Quote
  #5  
Old 07-21-2007, 02:56 AM
Junior Member
 
Join Date: Dec 2006
Location: Canada | China
Posts: 18
Rep Power: 9
Default adding 'Featured', 'New', 'Top' titles for toplistings.php?pg=...

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
Reply With Quote
  #6  
Old 07-21-2007, 05:05 AM
Junior Member
 
Join Date: Dec 2006
Location: Canada | China
Posts: 18
Rep Power: 9
Default

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
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 02:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22