Back to vBulletin Tips & Tricks

Quick Tip for porting your style to vBulletin 4
by James Birkett 18 Dec 2009

Just wanted to share a quick tip that has shaved hours off porting my styles to vBulletin 4.

If you get a text editor with search & replace functionality, you can shave hours off your porting. I use Notepad++ as it is a great text editor.

To the point, our template variables must now be in the new syntax format in order to function properly and ensure safety. Some of these variables are recurring so we would change them maybe 40-50 times in a template, using the same code each and every time.

Let's take stylevars for example, we know that the new method is {vb:stylevar variable}, so why not change every cellpadding stylevar with 1 button click?

Search: $stylevar[cellpadding]
Replace: {vb:stylevar cellpadding}

As you can see, that would change every $stylevar[cellpadding] variable into {vb:stylevar cellpadding}, just doing that alone may save you 10-15 minutes?

Now if you do that with other variables... it could accumulate to around 4-5 hours time saved?

Search: <if
Replace: <vb:if

Search: </if>
Replace: </vb:if>

Search: <else
Replace: <vb:else

Search: $stylevar[cellspacing]
Replace: {vb:stylevar cellspacing}

Search: $stylevar[right]
Replace: {vb:stylevar right}

I think you get the picture.

Hope this tip helps you save hours of porting!

vblts.ru supports vBulletin®, 2022-2024