Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 12-26-2009, 11:14 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

** Reserved **
Reply With Quote
  #3  
Old 12-27-2009, 08:54 AM
stl7997 stl7997 is offline
 
Join Date: Nov 2009
Location: Germany
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sending a virtual high five. Thanks!
Reply With Quote
  #4  
Old 12-27-2009, 01:55 PM
KissOfDeath KissOfDeath is offline
 
Join Date: Dec 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod thank you
Reply With Quote
  #5  
Old 12-27-2009, 02:07 PM
tazattitude's Avatar
tazattitude tazattitude is offline
 
Join Date: Dec 2009
Location: Largo, FL
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice! Thanks
Reply With Quote
  #6  
Old 12-28-2009, 06:01 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great stuff mate! Thanks!! Can you maybe help me to get this to also work on Vb 3.8.4!?

Thanks!!
Reply With Quote
  #7  
Old 12-28-2009, 10:29 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
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?
Reply With Quote
  #8  
Old 12-28-2009, 12:42 PM
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
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.




.
Reply With Quote
  #9  
Old 12-28-2009, 07:08 PM
movslow movslow is offline
 
Join Date: Aug 2008
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about those using Postbit legacy?

The code their is different?


[edit]

I did some testing and placing it after this seemed to work in the postbit legacy template.

Quote:
<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']">
Reply With Quote
  #10  
Old 01-03-2010, 07:49 AM
shane943's Avatar
shane943 shane943 is offline
 
Join Date: Oct 2009
Location: Clovis, Ca
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!

Attachment 108910
Reply With Quote
Reply


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 08:56 AM.


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.04869 seconds
  • Memory Usage 2,332KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (3)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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