Support Forums

{$city} in showlistings. title

This is a discussion on {$city} in showlistings. title within the Templates, HTML, CSS, and Design Help forums, part of the General category; HI all, Just wondering how I am able to add {$city} in showlistings title tag. I have asked this question ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

This topic is closed.

This topic is closed to new replies.

 
Thread Tools Display Modes
Old 02-14-2010, 11:25 PM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default {$city} in showlistings. title

HI all,

Just wondering how I am able to add {$city} in showlistings title tag.

I have asked this question before and got the answer from mike which was {$paging|replace:"city=":""} this worked fine but since im now running V.1.8 it does not just show up the city name it also shows up Aadid=&btnG=Do+Quick+search after it

Any thoughts anybody ?

Many thanks

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline  
Old 02-15-2010, 03:10 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,354
Rep Power: 85
seymourjames is a jewel in the rough
Default

Is $city available in the showlistings.tpl template? Use Smarty debug to find out which variables are available. I don't really understand what you are looking to do. Do you mean add city to the title of each advert in showlisitings?
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 02-15-2010, 06:58 AM   #3
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

Heeyz,

City is available for the showlistings page with this command:

{$entry.city}

(the same is for state : entry.state, username seller: {$entry.username} )

Dominick
damiun is offline  
Old 02-15-2010, 07:09 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,354
Rep Power: 85
seymourjames is a jewel in the rough
Default

The idea is to learn to use the {debug facility} by putting it into your layout.tpl file just before the body tag. You then have the general method and not the specific answer.

It is a then case of learning a little bit of SMARTY to include it in your template file.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting

Last edited by seymourjames; 02-15-2010 at 12:26 PM. Reason: verbal rubbish
seymourjames is offline  
Old 02-15-2010, 11:37 AM   #5
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

@seymourjames,
I agree with you,
But for some people the debug does not work, it doesnt work the right way for me either,
I have to go to the source and copy the the debug generated code in a new html, save it and open the new html. It just does not open as a debug.

And that why i also gave the other examples so he can see that by entry.name (same as in viewlisting) will work in showlistings, which can also help other people.

Dominick
damiun is offline  
Old 02-16-2010, 08:55 AM   #6
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

@damiun If you can see the debug code in the source via view source on your browser it means that your browser prevented the popup. Try disabling the popup blocker and refresh, I bet it will work.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Old 02-16-2010, 06:41 PM   #7
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Wink

@juven14

Its related to the seo mod.
If i turn the seo mod off, the popup works,
It i turn it on, the popup doesnt work anymore.

Its weird but I have read it more than once on the forum already so its a known "problem"
damiun is offline  
Old 02-16-2010, 10:18 PM   #8
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

Can you point me to any links, I have a solution for that issue, but I couldn't find a bug in the tracker or a thread dedicated to that issue.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Old 02-17-2010, 02:52 AM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,354
Rep Power: 85
seymourjames is a jewel in the rough
Default

The debug has not been working for quite a long time when the seo module is active. It has been mentioned a few times on the forum but alas has not been into the bug tracker as far as I am aware.

Here are two I found but I know it was Larry that mentioned it some time ago before me. Just can't find his post.

using a category id in browse.tpl
userindex.tpl help required please
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline  
Old 02-17-2010, 09:33 AM   #10
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,149
Rep Power: 68
John Snyder is a jewel in the rough
Default

There, I made a bug report for this, since it has been "known" for a while. I also provided a solution on how to fix it, so you can implement those changes and use {debug} with the SEO module turned on.

http://www.68classifieds.com/forums/issue-412/

Since both issues of this thread are resolved, I'm closing it
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
add {$city} to viewlisting.tpl title tag jason1971 Technical Support 6 04-16-2009 12:55 AM
User's city in header DGiscombe Templates, HTML, CSS, and Design Help 8 01-25-2009 09:30 AM
New image next to title in showlistings if under a week old bowers01 Technical Support 1 10-12-2008 03:49 AM
When not using Address or City Grebogreen Technical Support 2 07-05-2007 11:46 AM


All times are GMT -4. The time now is 11:36 PM.


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