PDA

View Full Version : Getting $pagenumber into scope in postbit_legacy template


Chunky Monkey
03-20-2009, 08:59 PM
Does anyone have any idea how I can get $pagenumber into scope in postbit_legacy template? It is available and used in SHOWTHREAD, but when I try to use it in postbit_legacy I get nothing. How can I make the $pagenumber value of the current thread available in postbit_legacy?

The permalink solutions I've found at vb.org either use t = threadid and jump to the postid, which will not work for multi page threads, or p = postid and jump to postid, which is not much good for seo since all incoming links to posts on the same page are links to different posts and don't count as linking to the same resource.

t = threadid & page = pagenumber and jump to post id would make all incoming links to posts on a page effectively link to the same thing in the eyes of search engines.

Can anyone tell me how to get $pagenumber into scope in postbit_legacy so I can accomplish this?

Thanks!

Zi55
06-30-2010, 03:12 PM
Simply do the following .
open class_postbit.php

search for

global $spacer_open, $spacer_close;

change it to global $spacer_open, $spacer_close, $pagenumber;

Shoot and have fun .