PDA

View Full Version : Old hack "Staff Titles"


mrsbuzzy
12-26-2009, 08:00 PM
On my website we've used this hack: https://vborg.vbsupport.ru/showthread.php?t=71447 for years. We used it not as intended but to generate these "tags" that we get small amounts of revenue for (allowing us to pay for our server etc.).

With the 4.0x upgrade the old hack doesn't work. Can anyone suggest another way to do this, or help with upgrading the hack?

Staff Titles:
https://vborg.vbsupport.ru/showthread.php?t=71447

Here's what we use them for:
http://www.parent-2-parent.com/fundraising/tagged.html

All help is greatly appreciated!!
Dawn

SPembo
02-05-2010, 07:49 PM
We use this and I've just got it working on vb4. Basically, all you need to do is enable product and edit your postbit template and you need the following modified code (as old original one wont work) (Paste before line {vb:raw template_hook.postbit_userinfo_left})


<!-- vB Staff Title -->
<vb:if condition="$post['isstaffrank']">
<div class="smallfont">
<vb:if condition="$post['staffrank_opentag']">{vb:raw post.staffrank_opentag}</vb:if>
<vb:if condition="$post['staffrank']">{vb:raw post.staffrank}</vb:if>
<vb:if condition="$post['staffrank_closetag']">{vb:raw post.staffrank_closetag}</vb:if>
</div>
</vb:if>
<!-- /vB Staff Title -->


I hope this helps

mrsbuzzy
02-05-2010, 08:01 PM
Thanks!!!