Sponsored Links not working in Search
Posted Oct 05, 2011 - 7:38 AM:
I'm trying to implement Sponsored Links in WSN Links 5.0.85. I've modified all the templates ("Show Links in Category", "Search Links", and "Search All") per instructions I've found here and added the "sponsored" link type, etc. in the admin settings. The Sponsored Links are working correctly when viewing links in a category.
But when searching WSN Links, the Sponsored Links produce an error -- they show the actual template linkbit code as the result rather than the filled in link information, appearing like this on the site:
Changing various settings, such as turning off "Mix link types?" or turning off "Separate sponsored links" (or combos of both settings) does not fix the problem. (Turning those off remove Sponsored Links including the error from search results altogether.)
Any idea why the Search Links are showing the linkbit template (which I haven't modified) rather than the Sponsored Link search result?
This is much simpler if you use more recent series since they have the type manager, which automatically inserts the appropriate template code (or in the case of 6.1 and 6.2 there's no need for template code at all and it's just managed through the type manager). I recently dropped official support for the 5.0 series so you should migrate to at least 5.1 as soon as possible.
Your search links template should look something like this though:
<table {STANDARDTABLE}> <!-- BEGIN SEARCH links RESULTS --> <!-- BEGIN FEATURED --> [INSERTFILE=linkbit] <!-- END FEATURED --> </table> <table> <!-- BEGIN RECIP --> [INSERTFILE=linkbit] <!-- END RECIP --> </table> <table {STANDARDTABLE}> <!-- BEGIN REGULAR --> [INSERTFILE=linkbit] <!-- END REGULAR --> <!-- END SEARCH links RESULTS --> </table>
However, that will only work if you've entered 'regular,recip,featured' link types at Admin -> Settings -> Links at the top.
Thanks for the reply. That's what I have in my template and Links settings -- it still displays the linkbit template as the result. I even tried different names (sponsored or featured) in all three areas -- template, Links settings, and Sponsorship settings, but it had no effect.
Sponsored links are working in the regular category listing, as I mentioned.
Understand if you are no longer supporting 5.0, but unfortunately I'm not able to upgrade at the moment. Let me know if you have any other suggestions.
Thanks.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Sponsored Links not working in Search
Beginner
Usergroup: Member
Joined: Feb 05, 2003
Total Topics: 3
Total Comments: 3
Posted Oct 05, 2011 - 7:38 AM:
I'm trying to implement Sponsored Links in WSN Links 5.0.85. I've modified all the templates ("Show Links in Category", "Search Links", and "Search All") per instructions I've found here and added the "sponsored" link type, etc. in the admin settings. The Sponsored Links are working correctly when viewing links in a category.
But when searching WSN Links, the Sponsored Links produce an error -- they show the actual template linkbit code as the result rather than the filled in link information, appearing like this on the site:
Changing various settings, such as turning off "Mix link types?" or turning off "Separate sponsored links" (or combos of both settings) does not fix the problem. (Turning those off remove Sponsored Links including the error from search results altogether.)
Any idea why the Search Links are showing the linkbit template (which I haven't modified) rather than the Sponsored Link search result?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
This is much simpler if you use more recent series since they have the type manager, which automatically inserts the appropriate template code (or in the case of 6.1 and 6.2 there's no need for template code at all and it's just managed through the type manager). I recently dropped official support for the 5.0 series so you should migrate to at least 5.1 as soon as possible.
Your search links template should look something like this though:
However, that will only work if you've entered 'regular,recip,featured' link types at Admin -> Settings -> Links at the top.
Beginner
Usergroup: Member
Joined: Feb 05, 2003
Total Topics: 3
Total Comments: 3
Thanks for the reply. That's what I have in my template and Links settings -- it still displays the linkbit template as the result. I even tried different names (sponsored or featured) in all three areas -- template, Links settings, and Sponsorship settings, but it had no effect.
Sponsored links are working in the regular category listing, as I mentioned.
Understand if you are no longer supporting 5.0, but unfortunately I'm not able to upgrade at the moment. Let me know if you have any other suggestions.
Thanks.