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
  #22  
Old 09-10-2010, 03:40 PM
OurCouponHome OurCouponHome is offline
 
Join Date: May 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 09-10-2010, 03:49 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by OurCouponHome View Post
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.
Quote:
Originally Posted by pportuese View Post
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.
Reply With Quote
  #25  
Old 09-10-2010, 04:03 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welshy, some of my icons don't pop up. 4 people in 1 group and only 2 of them show up.
Reply With Quote
  #26  
Old 09-10-2010, 04:05 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pportuese View Post
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.
Reply With Quote
  #27  
Old 09-10-2010, 04:27 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is my code:
Quote:
<!-- 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.
Reply With Quote
  #28  
Old 09-23-2010, 07:44 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 09-23-2010, 08:10 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #30  
Old 10-01-2010, 06:32 AM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It creates a space on the postbit_legacy for members that did not make a donation. How can I get rid of this please??
Reply With Quote
  #31  
Old 10-01-2010, 08:15 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
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...

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 -->
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 02:00 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.06052 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
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
  • (5)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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