Support Forums

User View Listing

This is a discussion on User View Listing within the Technical Support forums, part of the Technical Support Forums category; Can anyone tell me the smarty tag needed for a user to preview ( not modify) their listing. I am ...


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 09-14-2009, 09:27 PM   #1
Junior Member
 
Join Date: Aug 2009
Posts: 6
Rep Power: 0
pixel97504 is on a distinguished road
Default User View Listing

Can anyone tell me the smarty tag needed for a user to preview ( not modify) their listing. I am adding this link to the userindex.tpl file so anytime they are logged in, they can see their listing. Thanks in advance!
pixel97504 is offline  
Old 09-14-2009, 09:40 PM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,338
Rep Power: 132
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Each listing is unique so you cant just toss in some smarty tag to view listings, you need to query the database and pull up the ads as well as more queries to get all the extra fields etc.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 09-18-2009, 02:48 PM   #3
Junior Member
 
Join Date: Aug 2009
Posts: 6
Rep Power: 0
pixel97504 is on a distinguished road
Default

Hi Larry, would you be able to share that code with me? I have not been able to figure it out. Thanks, Paul
__________________
V4.1.5 Developer - Custom Template
pixel97504 is offline  
Old 09-18-2009, 02:53 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Just to confirm you just want a list of all their listings with a link to it?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 09-18-2009, 05:26 PM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,946
Rep Power: 72
seymourjames is a jewel in the rough
Default

I think he means this Eric but could be wrong. That the listing titles are linked in the table of all his listings.

Open userbrowselistings.tpl in your template folder called user:


Replace

<td class="{cycle values="row1,row2" advance=false}">{$entry.title}</td>


with this

<td class="{cycle values="row1,row2" advance=false}"><a href={$smarty.const.URL}/viewlisting.php?view={$entry.id} target="_blank">{$entry.title}</a></td>


The title of the listing will then be hyperlinked. If you actually mean in the my account page (userindex) then that is different. Not sure if the variables are all available to that template. You basically need the equivalent of a more ads from seller link (normally you get that on viewlisting.tpl).
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Listing View Red Templates, HTML, CSS, and Design Help 5 07-21-2009 10:55 AM
User View Settings Problem sargon Technical Support 5 11-24-2008 03:49 PM
"View Listing" missing from user admin crystal Technical Support 1 06-29-2007 11:21 PM


All times are GMT -4. The time now is 02:29 AM.


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