Quote:
Originally Posted by ATVMX
How to i add this code and make it work? i cant seem to figure it out
Can someone post the entire code with this added in?
Thanks a lot
Rob
|
probably figured it out by now, but I'll post it anyway. Remember to change url.net to your url
Code:
<if condition="is_member_of($bbuserinfo, 5,6)"><b><u><a href="http://digg.com/submit?phase=2&url=http://www.url.net/forum/showthread.php?$session[sessionurl]p=$post[postid]&title=$post[title]" target="_blank"><img src="IMAGEHERE" border=0></a></u></b></if>
Here's the full code I am using. It makes it so only admin/supermod can see it and puts it in the first post only.
Code:
<!-- Start Digg Button -->
<if condition="is_member_of($bbuserinfo, 5,6) and (($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])"><b><u><a href="http://digg.com/submit?phase=2&url=http://www.silvercarclub.com/forums/showthread.php?$session[sessionurl]p=$post[postid]&title=$post[title]" target="_blank"><img src="images/misc/digg_this.gif" border=0 alt="Digg This"></a></u></b></if>
<!-- end digg button -->
Where it says "$bbuserinfo, 5,6" you can add whatever usergroup there you want to be able to see/use the digg button. Just add another comma and add the number.
Be sure to change
www.silvercarclub.com to your forum.
Thanks to Michael2 and ZomgStuff