UBB.Dev
Posted By: msjulian Paid Member Icon - 02/18/2002 7:22 PM
I am looking for a way to add a "Paid Member" icon under the ranking stars in a members profile. I am changing the board to a allow for members to make a "donation" and would like to put an icon in that shows that they are a paid supporter. How can I do this??
Posted By: BassTeQ Re: Paid Member Icon - 02/18/2002 11:51 PM
Just install the avatars hack, or jimbos customs status hack. Then just assign a paid member an icon or some custom text of your choosing.
Posted By: msjulian Re: Paid Member Icon - 02/19/2002 1:23 AM
Thanks!! Worked Great!!
Posted By: BassTeQ Re: Paid Member Icon - 02/19/2002 11:36 PM
No problems mate.
Posted By: reloadbench Re: Paid Member Icon - 10/25/2002 7:46 AM
I currently have the starshack2000 installed on my board v5.47e. What will happen if I try to also install the avatars hack or Jimbo custom status hack? Wouldn't that give conficting results?

Is there a way to hack the starshack2000 to give certain members a custom hack?

Perhaps finding this:
Quote
code:
Code
if ($ThisStatus eq "Administrator") {

$ThisStatus = "Administrator
<img src="$NonCGIURL/Admin1.gif">

";
}
elsif ($ThisStatus eq "Moderator") {

$ThisStatus = "Moderator
<img src="$NonCGIURL/star2.gif">

";

And changing it to this:
code:
[qb]
Code
if ($ThisStatus eq "Administrator") {

$ThisStatus = "Administrator
<img src="$NonCGIURL/Admin1.gif">

";
}
elsif ($ThisStatus eq "Moderator") {

$ThisStatus = "Moderator
<img src="$NonCGIURL/star2.gif">

";
elsif ($ThisStatus eq "EXACTUSERNAME") {

$ThisStatus = "CUSTOMUSERNAME
<img src="$NonCGIURL/CUSTOMUSERNAME.gif">

";
[/qb]
For each custom member status, just add a new "elsif" line with their EXACTUSERNAME? Is this possible? I haven't tried this but to me it sounds too easy...

Thanks in advance...
Posted By: BassTeQ Re: Paid Member Icon - 10/28/2002 2:27 AM
The this status variable doesnt contain the username, it contains the 'Status' of the user, ie Admin/Mod/Member etc...

Im not sure of those 2 hacks will conflict, so backup your board and try it out ?
Otherwise Id look into the custom profle fields hack to store an extra line in theie member file. This is what Ive done on our v5 board, was add an extra profile field, which contains weather the member has made a donation or not.

Good luck!
Posted By: Deb Re: Paid Member Icon - 10/28/2002 2:45 PM
I don't use the star rank per se but I do have a system to acknowledge paying members. I use this code:

Code
}
if ($thisline[2] eq "username") {
$ThisStatus = "<img src="/ubb/icon/username.gif">
Member":
You could add a break with their star rank in there.

Don't forget to make backups. smile
Posted By: reloadbench Re: Paid Member Icon - 10/29/2002 9:50 AM
Deb,

Thanks so much for your help. I had to alter it a bit but I got it to work just fine. In the starshack2000 I took this:
Quote
code:
Code
if ($ThisStatus eq "Administrator") {

$ThisStatus = "Administrator
<img src="$NonCGIURL/admin.gif" alt="Administrator" width="61" height="12">

";
}
elsif ($ThisStatus eq "Moderator") {

$ThisStatus = "Moderator
<img src="$NonCGIURL/mod.gif" alt="Moderator" width="61" height="12">

";
}

And replaced it with this:
code:
[qb]
Code
if ($ThisStatus eq "Administrator") {

$ThisStatus = "Administrator
<img src="$NonCGIURL/admin.gif" alt="Administrator" width="61" height="12">

";
}
elsif ($ThisStatus eq "Moderator") {

$ThisStatus = "Moderator
<img src="$NonCGIURL/mod.gif" alt="Moderator" width="61" height="12">

";
}

elsif ($thisline[2] eq "USERNAME") {$ThisStatus = "Sponsor
<img src="$NonCGIURL/USERNAME.gif">"
}
[/qb]
Thanks again!
Posted By: Deb Re: Paid Member Icon - 10/29/2002 5:47 PM
Glad I could help Greg! BTW, I do have those status lines above as you've shown. I was trying to show what I have for the paying members. smile

I'm happy it worked for you! smile
© UBB.Developers