View Full Version : Supporting Member hack?
mkdevo
11-15-2004, 04:18 PM
i'm looking for a hack that will display something like 'Supporting Member' with an icon under a user's name, in order to tell who has donated to the site.
i couldn't find anything here, but i've seen this up and running. see here (http://www.vpforums.com/forum/showthread.php?s=&threadid=31615).
example in the attachment. it also shows up as a line in a user's profile.
Colin F
11-15-2004, 05:47 PM
i'm looking for a hack that will display something like 'Supporting Member' with an icon under a user's name, in order to tell who has donated to the site.
i couldn't find anything here, but i've seen this up and running. see here (http://www.vpforums.com/forum/showthread.php?s=&threadid=31615).
example in the attachment. it also shows up as a line in a user's profile.
This could be done, for example, with an additional usergroup.
Then, add a template conditional to the postbit, saying something like:
<if condition="$post[usergroupid] == x">Supporting Member</if>
mkdevo
11-16-2004, 11:49 AM
This could be done, for example, with an additional usergroup.
Then, add a template conditional to the postbit, saying something like:
<if condition="$post[usergroupid] == x">Supporting Member</if>
Colin,
thanks for the tip. sounds good, but when i tried to implement it, it showed up on all posts. i added a 'Supporting Member' usergroup, and here's the code i used:
<if condition="$post[usergroupid] == Supporting Member">__________<br><b>Supporting Member </b><IMG SRC="http://www.thebreakfast.info/forum/images/supportmoney.gif" align=absmiddle></if>
any ideas as to what i've done wrong?
thanks again!
Colin F
11-16-2004, 02:41 PM
Colin,
thanks for the tip. sounds good, but when i tried to implement it, it showed up on all posts. i added a 'Supporting Member' usergroup, and here's the code i used:
<if condition="$post[usergroupid] == Supporting Member">__________<br><b>Supporting Member </b><IMG SRC="http://www.thebreakfast.info/forum/images/supportmoney.gif" align=absmiddle></if>
any ideas as to what i've done wrong?
thanks again!
You almost got it.
You'll have to exchange the x not with Supporting Member, but with the usergroupid of that usergroup. It would then look something like: "$post[usergroupid] == 9"
mkdevo
11-16-2004, 02:57 PM
Colin,
Just changed it to reflect the usergroupid, and i'm getting the same results. :(
Are there any other changes I nees to make?
<if condition="$post[usergroupid] == 10">__________<br><b>Supporting Member </b><IMG SRC="http://www.thebreakfast.info/forum/images/supportmoney.gif" align=absmiddle></if>
mkdevo
11-18-2004, 12:04 PM
colin (or anyone else),
this code is still not working for me - showing up for every member when i put it in.
any ideas on how to make it work? (btw, i'm running 2.3.5)
thanks..
Andreas
11-18-2004, 12:12 PM
Well Colin, this is the vB2 code modification section ;)
vB 2.x does not support <if ...>
If you want smth. similar for vB 2.x take a look at https://vborg.vbsupport.ru/showthread.php?t=43325
Btw: I'd recommend to upgrade to vB3 - the code is much better.
mkdevo
11-18-2004, 01:49 PM
Btw: I'd recommend to upgrade to vB3 - the code is much better.
yeah, i plan on it.. actually just copied my db so i can start testing vb3 out a little bit. hope to have it going within a few months..
thanks for the tip. thought i was going nuts! ;)
Colin F
11-18-2004, 01:52 PM
Sorry about that mkdevo.
I generally go over the new posts link, and that doesn't show me it's vB2.
Once you've upgraded to vB3, the above code should work though :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.