Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
DONATIONS - Icon for those who've made a donation - POSBIT or POSTBIT_LEGACY vB 4.0.x Details »»
DONATIONS - Icon for those who've made a donation - POSBIT or POSTBIT_LEGACY vB 4.0.x
Version: 1.00, by Welshy2008 Welshy2008 is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 12-26-2009 Last Update: Never Installs: 44
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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:

Code:
<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:

Code:
<!-- 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


.

Download Now

File Type: zip Donations.zip (428.3 KB, 257 views)

Screenshots

File Type: jpg donation.jpg (25.7 KB, 0 views)
File Type: jpg UM1.jpg (82.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-01-2010, 08:42 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Welshy2008 View Post
Try This...

Code:
<!-- 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!!
Reply With Quote
  #33  
Old 10-01-2010, 11:08 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
Thanks, that did it!!
Your Welcome.
Reply With Quote
  #34  
Old 12-14-2010, 05:31 AM
CybaGirl CybaGirl is offline
 
Join Date: Jun 2010
Location: Sydney Australia
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome installed on version 4.0.3 and works perfectly .
Reply With Quote
  #35  
Old 01-05-2011, 04:22 PM
microlight microlight is offline
 
Join Date: Dec 2009
Location: Leeds UK
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #36  
Old 01-25-2012, 01:28 AM
ferruzo ferruzo is offline
 
Join Date: Jan 2012
Location: Peru
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #37  
Old 01-25-2012, 11:41 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ferruzo View Post
This mod hasn't support by developer?
It is.

Quote:
Originally Posted by ferruzo View Post
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.

Quote:
Originally Posted by ferruzo View Post
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).

Quote:
Originally Posted by ferruzo View Post
What if one user is junior member and other is regular member and both pay in same time?
Makes no difference.

Quote:
Originally Posted by ferruzo View Post
These icons can be stackeable?
I am sorry, I do not understand what you mean.

Quote:
Originally Posted by ferruzo View Post
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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04633 seconds
  • Memory Usage 2,306KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (3)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete