PDA

View Full Version : link thread not working quite right


Boofo
13 May 2011, 16:12
I am trying to use link thread for a link and I am close, but not quite there yet. Here is the code I am using in the template for the link:

<a href="{vb:link thread, {vb:raw $fhstats}, {vb:raw fhstats.threadtitle}}&amp;p={vb:raw fhstats.postid}&amp;viewfull=1#post{vb:raw fhstats.postid}" target="_blank">


and this is what it parses to:

http://www.yoursite.com/forums/showthread.php?153&Hello_There,_from_Phil=&p=349&viewfull=1#post349


This is what it should look like:

http://www.yoursite.com/forums/showthread.php?153-Hello-There-from-Phil&p=349&viewfull=1#post349


Can anyone please tell me what I am doing wrong or missing, and how to fix it?

Lynne
13 May 2011, 19:04
Isn't the thread title in the $fhstats array, so why pass it separately? Also, is this really correct - {vb:raw $fhstats}? Shouldn't it be {vb:raw fhstats}

Boofo
13 May 2011, 19:17
Isn't the thread title in the $fhstats array, so why pass it separately? Also, is this really correct - {vb:raw $fhstats}? Shouldn't it be {vb:raw fhstats}

I didn't catch the vb:raw $fhstats, thanks for pointing it out. Here is what I have now and no thread title shows up at all.

<a href="{vb:link thread, {vb:raw fhstats}, {vb:raw threadtitle}}&amp;p={vb:raw fhstats.postid}&amp;viewfull=1#post{vb:raw fhstats.postid}" target="_blank">

Lynne
13 May 2011, 19:52
Have you seen this - http://www.vbulletin.org/forum/showthread.php?t=221572

Boofo
13 May 2011, 20:09
Bingo! Thank you, Lynne. ;)

I changed my line to this and now it works exactly like it should:

<a href="{vb:link thread, {vb:raw fhstats}, null, 'threadid', 'threadtitle'}&amp;p={vb:raw fhstats.postid}&amp;viewfull=1#post{vb:raw fhstats.postid}" target="_blank">

Lynne
13 May 2011, 20:16
Glad you got it to work. :)

Boofo
13 May 2011, 20:19
It still confuses me somewhat in that article, but it seems a little more clearer than it was before, anyway. Thanks, again, young lady. ;)

Lynne
13 May 2011, 20:36
It still confuses me somewhat in that article, but it seems a little more clearer than it was before, anyway. Thanks, again, young lady. ;)
I think I reply to your posts just to hear you call me a young lady. :)

Boofo
13 May 2011, 20:55
LOL You'll always be a young lady to me, Lynne. The best of the best. ;)