The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
My newest stumbling block?next & previous
Okay... so I want to put rel = next and rel=prev link tags into the head of pages that need them. "easy peasy," says I... the logic and links to those pages is already there in the pagenav template.
So, I copied out the pagenav template and, form what it contained, built this: HTML Code:
<if condition="$show['prev']"> <link rel="prev" href="$address$address2<if condition="$prevpage != 1">&page=$prevpage</if><if condition="$anchor">#$anchor</if>"> </if> <if condition="$show['next']"> <link rel="next" href="$address$address2&page=$nextpage<if condition="$anchor">#$anchor</if>"> </if> "Done and dusted," says I, smuggly! But alas, it doesn't work. $address $address2 $prevpage $nextpage are empty! It seems as though those values aren't fetched until $pagenav is called later in the template. Is this a job for a plugin? --don |
#2
|
||||
|
||||
If the variables are not available to that template, then yes, it is a job for a plugin.
|
#3
|
|||
|
|||
Someone else just asked about that, at least for the showthread page. The plugin code is at the end of this thread: https://vborg.vbsupport.ru/showthread.php?t=306081
I was thinking about turning this in to a mod and releasing it, but to be honest, after reading the google page on what the prev and next tags do, it didn't sound like it would be appropriate for a thread. I could be wrong because I don't know anything about search engine stuff, but that page kept mentioning that it would use those to direct users to the first page, and that didn't sound like a good idea, especially for a long thread. I suppose it depends on the content. |
#4
|
|||
|
|||
Thanks! I don't know how I missed/forgot about that?its exactly what I want.
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|