Support Forums

Display listing ID number and other fields

This is a discussion on Display listing ID number and other fields within the Technical Support forums, part of the Technical Support Forums category; Is it possible to display the listing ID number on the ad? What code would I use in viewlisting.tpl? Is ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-15-2008, 04:58 PM   #1
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 13
crystal is on a distinguished road
Default Display listing ID number and other fields

Is it possible to display the listing ID number on the ad? What code would I use in viewlisting.tpl?

Is there a list of all fields that can be called into the viewlisting or showlistings templates? I would like to have these on hand.

Thank you!
__________________
Crystal
v4.0.8 Dev
crystal is offline  
Old 06-15-2008, 05:09 PM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,932
Rep Power: 120
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

You can append debug=1 to the url to see the values passes from the underlying script to the template your viewing.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-16-2008, 09:34 PM   #3
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 13
crystal is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
You can append debug=1 to the url to see the values passes from the underlying script to the template your viewing.
I'm not quite sure what you mean. I tried www.mydomain.com/index.php?debug=1 and nothing happened.

I am just looking for the smarty code to add into the template to call the listing ID number. For instance, if you put in {$city} it shows the seller's city and {$state} shows the seller's state and so on. Is there a list of {$variables} I can use in the viewlisting.tpl or showlisting.tpl templates? I want to add the listing ID and zip code.

Thanks!
__________________
Crystal
v4.0.8 Dev
crystal is offline  
Old 06-16-2008, 10:28 PM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,932
Rep Power: 120
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by crystal
I'm not quite sure what you mean. I tried www.mydomain.com/index.php?debug=1 and nothing happened.

I am just looking for the smarty code to add into the template to call the listing ID number. For instance, if you put in {$city} it shows the seller's city and {$state} shows the seller's state and so on. Is there a list of {$variables} I can use in the viewlisting.tpl or showlisting.tpl templates? I want to add the listing ID and zip code.

Thanks!
The list of variables varies from page to page. Appending debug=1 to the URL as you did should cause a popup window listing the variables in use for that page.

Are you running the SEO mod? Using a popup blocker?

P.S. on the viewlisting template {$lid}mshould show you the listing id.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 06-17-2008, 07:10 AM   #5
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 13
crystal is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
Are you running the SEO mod? Using a popup blocker?

P.S. on the viewlisting template {$lid}mshould show you the listing id.
I am running the SEO mod, and I don't believe I have a popup blocker (usually the browser asks if I want to allow them). Do I need to turn the SEO mod off to try it?

Thanks for the listing ID info, I will try that.
__________________
Crystal
v4.0.8 Dev
crystal is offline  
Old 06-17-2008, 08:47 AM   #6
Staff
 
Join Date: Mar 2006
Posts: 451
Rep Power: 25
Blair will become famous soon enough
Default

Hi Crystal-

If you're using the SEO mod, you can manually enter the 'standard' address like:
www.yoursite.com/viewlisting.php?view=6
and then append the debug=1
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
Blair is offline  
Old 06-18-2008, 08:10 AM   #7
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 13
crystal is on a distinguished road
Default

Thank you, I got it working. I was using ?debug=1 instead of &debug=1

So if I type in www.mysite.com/viewlisting.php?view=10&debug=1 it pops up with a tidy list of all the info in one place. Very useful!!!

Thank you!
__________________
Crystal
v4.0.8 Dev
crystal is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 12:27 PM.


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