The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
The $thread[preview] value gives the first few words of a thread
it is already defined in vbulletin script and foumd in threadbit template, when mouse passed over the thread title it gives thread description as first fee words however if I use it in meta description it shows nothing why? Is there any necessary tags or definition or any thing??! |
#2
|
||||
|
||||
![]()
Not sure, but it would seem necessary to make it an <a>ttribute. The meta needs to know that is code, not just funny type...try using the <a href="......."></a> and see if anything changes. You also need to tell it which thread to pull from.
|
#3
|
||||
|
||||
![]() Quote:
how is that |
#4
|
||||
|
||||
![]()
Not sure how to code that part. Suggest you copy the code from a template that it is working in,,,and then make the adjustments as needed. That should give you the right format.
|
#5
|
||||
|
||||
![]()
this can not happen
I can not use the template in meta description ! I think this needs php designer or something ! |
#6
|
||||
|
||||
![]()
The header template is evaled before the thread preview is defined which is why you don't have that variable available to you right there. You will need a plugin to do this. Someone just posted this exact same question a couple days ago and we went over what to do. Try a a search for it.
|
#7
|
||||
|
||||
![]() Quote:
did you find any plugin plz give me the link plz thanks |
#8
|
||||
|
||||
![]()
There is even an article on this and it was written after 3.8 came out so I'm sure it is up-to-date if you follow the instructions exactly - https://vborg.vbsupport.ru/showthrea...ighlight=meta*
|
#9
|
||||
|
||||
![]() Quote:
it DID NOT work the coder also says :The code needs some optimization, but you will get the idea. |
#10
|
|||
|
|||
![]()
It does work mate
![]() Follow the instructions and when you are going to edit the template(s), use $threadinfo[preview] instead of $threadinfo['preview'] (note the difference). I'm using it in the headinclude template like this: Code:
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[prefix_plain_html] $threadinfo[preview] $foruminfo[title_clean]" /> ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|