PDA

View Full Version : link thread not working quite right


Boofo
05-13-2011, 02:12 PM
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
05-13-2011, 05:04 PM
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
05-13-2011, 05:17 PM
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
05-13-2011, 05:52 PM
Have you seen this - https://vborg.vbsupport.ru/showthread.php?t=221572

Boofo
05-13-2011, 06:09 PM
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
05-13-2011, 06:16 PM
Glad you got it to work. :)

Boofo
05-13-2011, 06:19 PM
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
05-13-2011, 06:36 PM
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
05-13-2011, 06:55 PM
LOL You'll always be a young lady to me, Lynne. The best of the best. ;)