vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   link thread not working quite right (https://vborg.vbsupport.ru/showthread.php?t=263573)

Boofo 05-13-2011 02:12 PM

link thread not working quite right
 
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:

HTML Code:

<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:

HTML Code:

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

This is what it should look like:

HTML Code:

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

Quote:

Originally Posted by Lynne (Post 2195182)
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.

HTML Code:

<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:

HTML Code:

<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

Quote:

Originally Posted by Boofo (Post 2195236)
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. ;)


All times are GMT. The time now is 08:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01086 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete