vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   $thread[preview] in topic meta-description (https://vborg.vbsupport.ru/showthread.php?t=181560)

mrkiwi 06-05-2008 02:30 AM

$thread[preview] in topic meta-description
 
Hello everybody!
I'm stuck :(
Wanted to edit my threads meta-description this way:
PHP Code:

<meta name="description" content="$foruminfo[title_clean] > $threadinfo[title] > $thread[preview]/> 

but variable $thread[preview] does not work at all.
($thread[preview] is a variable from threadbits and is presented in showforum - it's the first words from the first post, shown when you hover topic name with a mouse)

As far as i understand, i need to add to showthread.php some calls, but i even can't imagine where i should look at...

I'm not a programmer at all, it's just hobby, so i would be extremely grateful if someone can help me :)

Thanks in advance!

P.s. Or maybe there can be another way to insert the text of the first post on the page to the description tag?

oldengine 06-17-2008 02:47 PM

<a href="http://www.vbulletin-faq.com/forum/showthread.php?t=12550" target="_blank">http://www.vbulletin-faq.com/forum/s...ad.php?t=12550</a>


All times are GMT. The time now is 01:11 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.00995 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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