View Full Version : Mini Mods - DONATIONS - Icon for those who've made a donation - POSBIT or POSTBIT_LEGACY vB 4.0.x
Welshy2008
12-26-2009, 10:00 PM
What is this?
This is a little hack/mod/template change (call it what you will). :)
When a member makes a Money Donation to the forum - They can get rewarded by placing a small 'Gold Trophy Icon' (see Pic) beneath their username in the Postbit or Postbit_Legacy. (depandant of which one your forum uses).
Hover you mouse over that Icon Image and you will see " XXX has made a donation to the forum!"
What Do I do?
You do the following...
STEP 1; Upload the donation.gif image to your forum?s ?images/misc? folder, in your forum?s route directory.
STEP 2; Set Up a Usergroup.
This usergroup will have a ?donation Trophy? with alt code, displayed under the Member?s USERNAME in their Postbit or postbit_Legacy (dependant on which you use).
AdminCP-> Usergroups -> Add New Usergroup ->
? Create Usergroup Based off of Usergroup: Registered Users
? Default Forum Permissions: You choose this
? Title: Donators
? Description: The Members of this Group have all made one or more Donations to the forum
? User Title: Leave this Blank
? Username HTML Markup: Leave this Blank
? Password Expiry: Leave this Blank
? Password History: Leave this Blank
Public Groups Settings:
? Public (Joinable) Custom Usergroups: No
? Can override primary group title/markup: No
The rest of this Group?s permissions is only known by and can be set, by you.
CLICK SAVE !
STEP 3: Postbit Template Edit:
AdminCP -> Styles & Templates -> Style Manager -> Style (mine is Default Style) -> << >> -> Postbit Templates -> postbit ->
FIND:
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>
<vb:if condition="$post['userid']">
ADD BELOW:
<!-- Wy Donation Icon in postbit Start -->
<vb:if condition="is_member_of($post, X)"><img src="http://WWW. YOUR FORUM ADDRESS.COM/images/misc/trophy.gif" width="19" height="18" alt="{vb:raw post.username} has made a donation to the forum!" border="0"></vb:if><br/><br/>
<!-- Wy Donation Icon in postbit End -->
Enter the UsergroupID number in place of the green 'X'. And change the red Text, to that of your forum addess.
SAVE
STEP 4; Adding the Member to the Donators Usergroup:
All you need to do now is to add a Member to that usergroup, and the way in which to do this, Is?
AdminCP -> Users -> Search for User -> Enter the Username and Click Exact Match.
Under ?Usergroup Options? on the right, Select the ?Donators? tickbox. (See picture UM1 in attachments below).
Click Save.
Now you will see the ?Trophy? Icon on the Member?s Postbit.
And that is it !
Please Click Installed and Rate this Mod.
EDIT: I recommend using this mod in conjunction with Valters mod here:
https://vborg.vbsupport.ru/showthread.php?t=236480
.
Welshy2008
12-26-2009, 11:14 PM
** Reserved **
stl7997
12-27-2009, 08:54 AM
Sending a virtual high five. Thanks!
KissOfDeath
12-27-2009, 01:55 PM
Great mod thank you
tazattitude
12-27-2009, 02:07 PM
Nice! Thanks
Taurus1
12-28-2009, 06:01 AM
Great stuff mate! Thanks!! Can you maybe help me to get this to also work on Vb 3.8.4!?
Thanks!!
Welshy2008
12-28-2009, 10:29 AM
Great stuff mate! Thanks!! Can you maybe help me to get this to also work on Vb 3.8.4!?
Thanks!!
I haven't currently got a 3.8.4 to test it on. I have to upgrade soon (Just finished preparing the files etc).
I can do it on a 3.8.1 (which should work on the 3.8.4) - Once I have done that I will post a seperate Mod for you to try, if you want to?
Welshy2008
12-28-2009, 12:42 PM
Great stuff mate! Thanks!! Can you maybe help me to get this to also work on Vb 3.8.4!?
Thanks!!
Just completed it - Can you go to the link below and try that in your vB 3.8.4, Please Taurus, and give me some feedback on That thread too please?
Many Thanks.
Click here for the vB 3.8.1 Version (https://vborg.vbsupport.ru/showthread.php?p=1940322#post1940322).
.
movslow
12-28-2009, 07:08 PM
What about those using Postbit legacy?
The code their is different?
:confused:
[edit]
I did some testing and placing it after this seemed to work in the postbit legacy template.
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputationdisplay}</span>
</vb:if>
<vb:if condition="$show['avatar']">
shane943
01-03-2010, 07:49 AM
I cant get it to work, i tried placing the code below everything in the template but still doesnt show.
It SHOULD put the icon below all previous post correct? or does it just show up under the users new posts? cause that could be why it would not be showing up.
*EDIT*
for some reason with a mod i have, i had to place it in a different spot, Marked INSTALLED! Very good mod thanks!
108910
jhabers
01-09-2010, 08:06 PM
I dont get it, cant you just do this with ranks? At least thats what I am doing
Welshy2008
01-09-2010, 10:34 PM
I dont get it, cant you just do this with ranks? At least thats what I am doing
Can you post some screenshots of that please?
pportuese
09-02-2010, 07:56 PM
I'm trying here and can't get it. I changed it to sponsor instead of donator
This is my code and I get nothing
<!-- Wy Sponsor Icon in postbit Start -->
<vb:if condition="is_member_of($post, Sponsor)"><img src="http://www.mitsuworld.com/forums/images/buttons/sitesponsor.jpg" width="19" height="18" alt="{vb:raw post.username} has accepted the sponsorship to the forum!" border="0"></vb:if><br/><br/>
<!-- Wy Sponsor Icon in postbit End -->
The path for the image is correct. I tried putting the usergroup ID and the ID number where the green X is and it doesn't make any difference.
I am on 4.0.6
Welshy2008
09-03-2010, 10:38 AM
I'm trying here and can't get it. I changed it to sponsor instead of donator
This is my code and I get nothing
The path for the image is correct. I tried putting the usergroup ID and the ID number where the green X is and it doesn't make any difference.
I am on 4.0.6
Hello,
I don't have 4.0.6 up and running yet, and therefore, can't confirm it is working, myself.
I have just regestered on your forum, and if you are happy to give me Admin permissions, I will do it for you.
sulasno
09-03-2010, 01:39 PM
tagged and thanks
edit
<vb:if condition="is_member_of($post, X)"><different image>
<vb:if condition="is_member_of($post, Y)"><different image>
<vb:if condition="is_member_of($post, Z)"><different image>
would the above work ?
edit
this Mod is working in 4..0.6
Welshy2008
09-03-2010, 03:27 PM
tagged and thanks
edit
<vb:if condition="is_member_of($post, X)"><different image>
<vb:if condition="is_member_of($post, Y)"><different image>
<vb:if condition="is_member_of($post, Z)"><different image>
would the above work ?
edit
this Mod is working in 4..0.6
Thank You Sulasno.
That would work (as I do it). but you would have to repeat the process for all conditions that you want to use.
If you need any help. PM me.
CharlieDelta
09-05-2010, 01:53 AM
What about those using Postbit legacy?
The code their is different?
:confused:
[edit]
I did some testing and placing it after this seemed to work in the postbit legacy template.
I placed it in the postbit legacy as well.
What a great idea! Works great! Thanks Welshy!
sulasno
09-05-2010, 01:48 PM
@Welshy2008
I would need to hunt for some trophys first :-)
sulasno
09-07-2010, 02:08 AM
can be this mod be modified to award a trophy to users instead of usergroups ?
pportuese
09-07-2010, 03:36 PM
Here is my code:
<!-- Wy Sponsor Icon in postbit Start -->
<vb:if condition="is_member_of($post, 11)"><img src="http://www.mitsuworld.com/forums/images/buttons/sitesponsor.jpg" width="185" height="57" alt="{vb:raw post.username} has accepted the sponsorship to the forum!" border="0"></vb:if><br/><br/>
<!-- Wy Sponsor Icon in postbit End -->
<!-- Wy Supporting Icon in postbit Start -->
<vb:if condition="is_member_of($post, 9)"><img src="http://www.mitsuworld.com/forums/images/buttons/SUPPORTING.gif" width="185" height="57" alt="{vb:raw post.username} has donated to support the forum!" border="0"></vb:if><br/><br/>
<!-- Wy Supporting Icon in postbit End -->
I want different icons for different groups. I have 4 members in this supporting group. However it only shows up on 2 of them, not all 4.
OurCouponHome
09-10-2010, 03:40 PM
I did everything listed above but cannot get the trophy to show up. It's just a little box with a red x in it.
pportuese
09-10-2010, 03:49 PM
What I did was right click on the red x and see where it's looking for the icon at. And make sure the folder is in the spot it's looking for.
Welshy2008
09-10-2010, 03:59 PM
I did everything listed above but cannot get the trophy to show up. It's just a little box with a red x in it.
What I did was right click on the red x and see where it's looking for the icon at. And make sure the folder is in the spot it's looking for.
Hi OurCouponHome,
As suggested by pportuese, Right click on the red X within the Square, click on "Properties" and ensure the Donations image is in that location.
The red x within a square, is either:
Image has not been uploaded
Image has been uploaded to a different route to that shown
Please keep me updated on your progress.
pportuese
09-10-2010, 04:03 PM
Welshy, some of my icons don't pop up. 4 people in 1 group and only 2 of them show up.
Welshy2008
09-10-2010, 04:05 PM
Welshy, some of my icons don't pop up. 4 people in 1 group and only 2 of them show up.
Eh? You have lost me, sorry mate.
Run that by me again, a little more detailed Please?
Many Thanks.
pportuese
09-10-2010, 04:27 PM
This is my code:
<!-- Wy Sponsor Icon in postbit Start -->
<vb:if condition="is_member_of($post, 11)"><img src="http://www.mitsuworld.com/forums/images/buttons/sitesponsor.jpg" width="185" height="57" alt="{vb:raw post.username} has accepted the sponsorship to the forum!" border="0"></vb:if><br/><br/>
<!-- Wy Sponsor Icon in postbit End -->
<!-- Wy Supporting Icon in postbit Start -->
<vb:if condition="is_member_of($post, 9)"><img src="http://www.mitsuworld.com/forums/images/buttons/SUPPORTING.gif" width="185" height="57" alt="{vb:raw post.username} has donated to support the forum!" border="0"></vb:if><br/><br/>
<!-- Wy Supporting Icon in postbit End -->
I want code for 4 different groups so each group can have their own icon. So I think I'm on the right track because so far it's working.
However the 2nd group of coding for group 9. There are 4 members in that group. The picture only shows up for 2 of the 4 members. I took the other 2 members out of that group and readded them but no matter what they still don't get that picture.
pportuese
09-23-2010, 07:44 PM
I don't get it. I'm still playing around with this.
I have 2 users that if I make them a MOD or a donating member they don't get the title under their name. It's only these 2 people.
pportuese
09-23-2010, 08:10 PM
Figured it out finally!!!!!!!!! They won't get the icon if they don't have an avatar. I added them and avatar and it popped up!
Taurus1
10-01-2010, 06:32 AM
It creates a space on the postbit_legacy for members that did not make a donation. How can I get rid of this please??
Welshy2008
10-01-2010, 08:15 AM
It creates a space on the postbit_legacy for members that did not make a donation. How can I get rid of this please??
Try This...
<!-- Wy Donation Icon in postbit Start -->
<vb:if condition="is_member_of($post, X)"><img src="http://WWW. YOUR FORUM ADDRESS.COM/images/misc/trophy.gif" width="19" height="18" alt="{vb:raw post.username} has made a donation to the forum!" border="0"></vb:if>
<!-- Wy Donation Icon in postbit End -->
Taurus1
10-01-2010, 08:42 AM
Try This...
<!-- Wy Donation Icon in postbit Start -->
<vb:if condition="is_member_of($post, X)"><img src="http://WWW. YOUR FORUM ADDRESS.COM/images/misc/trophy.gif" width="19" height="18" alt="{vb:raw post.username} has made a donation to the forum!" border="0"></vb:if>
<!-- Wy Donation Icon in postbit End -->
Thanks, that did it!!
Welshy2008
10-01-2010, 11:08 AM
Thanks, that did it!!
Your Welcome. :)
CybaGirl
12-14-2010, 05:31 AM
Awesome installed on version 4.0.3 and works perfectly :).
microlight
01-05-2011, 04:22 PM
Hi.
I have made a rescue map on my forum and am trying to encourage members to add themselves to the map.
So, this hack, I thought, would be ideal. I would make the Image a little bigger and call it "rescuer" with a cup at each side.
I followed everything to the letter, but the hack doesn't work for some strange reason. Any idea why, I'm in 4.0.8
It simply doesn't show up in the postbit. Done everything, double, tripple checked everything and still nothing.
Even tried it with the default image and the image size, but nothing has worked. I've been playing about with it now for hours and have about 10 different hacks / mods on my board all installed flawlessly and work great. Can't understand why this won't work. Please help me welshy2008.
It looked Ideal too :(
ferruzo
01-25-2012, 01:28 AM
This mod hasn't support by developer?
I want to ask how you connect donation with usergroup in order to get this icon on his postbit.
How the forum recognize when someone made a donation and change of usergroup? or it is just magically works after you edit the postbit templates?
What if one user is junior member and other is regular member and both pay in same time?
These icons can be stackeable? can i set also the prices? if you want to get a trophy then you must donate more than 10 usd for example?
Welshy2008
01-25-2012, 11:41 AM
This mod hasn't support by developer?
It is. :)
I want to ask how you connect donation with usergroup in order to get this icon on his postbit.
When you receive a donation, you confirm it by checking your Paypal account (as often as you like). You can then add the donator to the Usergroup that you have set up specifically for your Donators.
How the forum recognize when someone made a donation and change of usergroup? or it is just magically works after you edit the postbit templates?
You have to do it manually. HOWEVER, a much better one, and one where you will receive a notification of ANY donation received, and can everything from one page, instead of going into your admincp, is decribed and linked to below (IN BOLD GREEN Text).
What if one user is junior member and other is regular member and both pay in same time?
Makes no difference. :)
These icons can be stackeable?
I am sorry, I do not understand what you mean.
can i set also the prices? if you want to get a trophy then you must donate more than 10 usd for example?
Please see my reply below, in red, bold text.
A fantastic mod made by Valter and works pefectly with my mod here is: https://vborg.vbsupport.ru/showthread.php?t=236480
You have the option to pre-set donation amounts or simply let the donator choose what they want to donate. You will have a record of who has donated what, and you can select an option of what to do with that user.
IE: You can confirm that their payment has been received (check your Paypal account first though) and they will be sent a thank you PM. You can select the option also for the confirmation PM AND move them to the usergroup (that you have set up for donated members - As per my instructions in my OP above) - The donations cup image, that is designated to this usergroup will then be shown too.
I use it on my forum.
Let me know how you get on. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.