vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Make META DESCRIPTION the first words of the first posting (https://vborg.vbsupport.ru/showthread.php?t=206365)

abdobasha2004 02-23-2009 05:05 PM

Make META DESCRIPTION the first words of the first posting
 
Any body can tell me how to do this without using vBSEO
It is on many forums
to show first 20 or 30 words as descreprion on top of showthread?
I want to put the first words of a post (thread) in the meta tags like vbseo do
but when I use $thread[preview] in any place other than threadbit it shows nothing
however on thread bit shoes the first words of the thread

plz help

important update :
Like vBSEO , how to put the first words of paragraph in the meta description of the showthread?
I found something and was very close, it is to use the value $thread[preview] that is defined in threadbit template ( I have a thread about this that no body answered)
The only thing it is not defined in headinclude template
so the question is : how to define $thread[preview] in the headinclude?
OR
Is there any way to put first 25 word or something in meta descirption not using vBSEO?

note: I asked folks at vbulletin.org even submitted a tickets in vbulletin.com support [the answer was so honest :Sorry I do not know what code modification are required to do this.]
nobody seemed to know how to define $thread[preview] in headinclude
isn't that strange?

*The mast important value for this that in gives higher ctr in search results (preferred by users) and remove short meta description errors in webmaster tools specially for short titled threads,

abdobasha2004 02-26-2009 08:42 PM

I will appreciate any help

1Unreal 02-26-2009 09:01 PM

You could make a plugin and use substr. You could grab the thread contents then use substr to chop it down to whatever length you want.

Dismounted 02-27-2009 11:04 AM

You should use fetch_trimmed_title(). It will ensure it will not be chopped off in the middle of a word (and multi-byte characters!).

abdobasha2004 02-27-2009 01:40 PM

Quote:

You could make a plugin and use substr. You could grab the thread contents then use substr to chop it down to whatever length you want.
Quote:

You should use fetch_trimmed_title(). It will ensure it will not be chopped off in the middle of a word (and multi-byte characters!).
some little explanation would be gr8

abdobasha2004 03-06-2009 08:50 AM

plz help

abdobasha2004 09-06-2009 09:03 PM

Like vBSEO , how to put the first words of paragraph in the meta description of the showthread?
I found something and was very close, it is to use the value $thread[preview] that is defined in threadbit template ( I have a thread about this that no body answered)
The only thing it is not defined in headinclude template
so the question is : how to define $thread[preview] in the headinclude?
OR
Is there any way to put first 25 word or something in meta descirption not using vBSEO?

note: I asked folks at vbulletin.org even submitted a tickets in vbulletin.com support [the answer was so honest :Sorry I do not know what code modification are required to do this.]
nobody seemed to know how to define $thread[preview] in headinclude
isn't that strange?

*The mast important value for this that in gives higher ctr in search results (preferred by users) and remove short meta description errors in webmaster tools specially for short titled threads.


All times are GMT. The time now is 04:02 PM.

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.01113 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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