PDA

View Full Version : I need to use the the $pagenumber var in postbit_legacy


StarBuG
11-13-2010, 06:00 AM
Hello. I need your help.

I need the $pagenumber variable to be available in postbit_legacy so that I can create an url when the thread has multiple pages.

Currently I am using: <a href="http://www.patientenfragen.net/{vb:link thread, {vb:raw thread}}" target="_blank">

but I need it to work this way:

<a href="http://www.patientenfragen.net/{vb:link thread, {vb:raw thread}<vb:if condition="$pagenumber">&amp;page={vb:raw pagenumber}</vb:if>}" target="_blank">

I need the url including the page the user is on.

I know I need to register that variable to the postbit_legacy template, but how do I do that?

Sorry for asking such a stupid question but I am no programmer and totally lost here.

Any help is much appreciated.

StarBuG

Lynne
11-13-2010, 03:02 PM
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide (https://vborg.vbsupport.ru/showthread.php?t=228078)