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
  #12  
Old 01-09-2010, 08:06 PM
jhabers jhabers is offline
 
Join Date: Nov 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont get it, cant you just do this with ranks? At least thats what I am doing
Reply With Quote
  #13  
Old 01-09-2010, 10:34 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Quote:
<!-- 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
Reply With Quote
  #15  
Old 09-03-2010, 10:38 AM
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
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.
Reply With Quote
  #16  
Old 09-03-2010, 01:39 PM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by sulasno View Post
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.
Reply With Quote
  #18  
Old 09-05-2010, 01:53 AM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by movslow View Post
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.
I placed it in the postbit legacy as well.

What a great idea! Works great! Thanks Welshy!
Reply With Quote
  #19  
Old 09-05-2010, 01:48 PM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Welshy2008

I would need to hunt for some trophys first :-)
Reply With Quote
  #20  
Old 09-07-2010, 02:08 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can be this mod be modified to award a trophy to users instead of usergroups ?
Reply With Quote
  #21  
Old 09-07-2010, 03:36 PM
pportuese pportuese is offline
 
Join Date: Jul 2010
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here 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 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.
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 11:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04762 seconds
  • Memory Usage 2,336KB
  • 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
  • (2)bbcode_code
  • (6)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