![]() |
I need to use the the $pagenumber var in postbit_legacy
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">&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 |
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
All times are GMT. The time now is 02:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|