PDA

View Full Version : Adapting urls vB3 search forms to vB4


nrms?
05-21-2012, 11:24 PM
Needed to adapt these urls in order to function properly in the latest version of vBulletin 4.1.12

<a href="external.php?type=rss2&forumids=$forum[forumid]">
<a href="subscription.php?do=addsubscription&f=$forum[forumid]">
<a href="newthread.php?do=newthread&f=$forum[forumid]">
<a href="search.php?do=getnew&f=$forum[forumid]">

BirdOPrey5
05-22-2012, 12:59 PM
Basically you need to translate $forum[forumid] to {vb:raw forum.forumid} for each.
I assume you are using them in a template.

In VB4 you use the {vb:raw array.element} syntax wherever you want tie result printed out in the HTML code. If you were using it in a conditional <vb:if condition="..."> then you would keep the same VB3 $array[element] syntax.

nrms?
05-23-2012, 01:04 AM
Thank you so much ... It was just that ...

So simple that had not noticed ...