Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
display $username$ in search result page?

 

 


srshaw3
New User

Nov 7, 2008, 9:44 AM

Post #1 of 5 (2108 views)
Shortcut
display $username$ in search result page? Can't Post

When selecting "View Listings" from the home page index, I would like to display the username that was searched on. I tried using $username$ in the _search_results.html page, but it is empty. Is there a way to populate this field based on the search selection?


MikeB
Staff / Moderator


Nov 9, 2008, 4:10 PM

Post #2 of 5 (2067 views)
Shortcut
Re: [srshaw3] display $username$ in search result page? [In reply to] Can't Post

Hi,

Thanks for posting!

By default when you click the "View My Listings" link the search is based off of that user's ID number rather than name so there aren't any specific user details that you can output on this page.

There may be a way to do this with some JavaScript by passing the user's name as part of the URL and then parsing it out on the search results template. I don't have anything available now that will do this but if you're up for trying it out I'll work on putting something together for you to try. Otherwise you may want to get in touch with our consulting team as they should be able to provide you with a solution that will work pretty quickly.

Let me know how this sounds! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


srshaw3
New User

Nov 9, 2008, 6:24 PM

Post #3 of 5 (2046 views)
Shortcut
Re: [MikeB] display $username$ in search result page? [In reply to] Can't Post

Whatever pointers you can provide would be great, thanks.


srshaw3
New User

Nov 9, 2008, 6:44 PM

Post #4 of 5 (2041 views)
Shortcut
Re: [srshaw3] display $username$ in search result page? [In reply to] Can't Post

I just found a post that showed how to set a unique search result page. This will work for me for now, but if you have a better way, that would be great. This way means I need a unique search result page per category which is not ideal:

<a href="$search_url$?user_num=$user_num$&search=1&template=_search_results_$user_num$.html">View Listings</a><br>


Donna
Staff / Moderator


Nov 10, 2008, 4:38 PM

Post #5 of 5 (2005 views)
Shortcut
Re: [srshaw3] display $username$ in search result page? [In reply to] Can't Post

Hi there,

Yep, that would be the best way to do it. :)

Donna

--
support@interactivetools.com