vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - DONATIONS - Icon for those who've made a donation - POSBIT or POSTBIT_LEGACY vB 3.8.x (https://vborg.vbsupport.ru/showthread.php?t=231437)

Welshy2008 12-27-2009 10:00 PM

DONATIONS - Icon for those who've made a donation - POSBIT or POSTBIT_LEGACY vB 3.8.x
 
1 Attachment(s)
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:

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                                $template_hook[postbit_userinfo_left]


ADD BELOW:



Code:

<if condition="is_member_of($post, X)"><img src="http://YOUR FORUM ADDRESS.COM/images/misc/trophy.gif" width="19" height="18" alt="$post[username] has made a donation to the forum!" border="0"></if><br/><br/>


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.

Welshy2008 12-28-2009 12:38 PM

** Reserved **

Taurus1 12-28-2009 01:44 PM

1 Attachment(s)
OK.....Cool!! I can confirm that this works great on 3.8.4

I moved the code around a bit to get it where I wanted it, and I also entered it in my Postbit Legacy Template, for I don't use the Postbit. Very nice add-on, Thank you very much!! :up:

Attachment 108423 Attachment 108422

Welshy2008 12-28-2009 01:54 PM

Thank You Taurus.

I couldn't test it in my Postbit_Legacy as I have too many things in there as it is and it Omitts alot of items. :_|

Taurus1 12-28-2009 02:49 PM

NP mate!! You're welcome!

Ray2khax 12-29-2009 06:37 PM

Hey, Can we add more? For example lets say I want to create a bunch of these will it just let me keep posting in code?


**EDIT**
Never mind answered myself thanks again for this, Really helpful for clan websites :)

P.S could anyone maybe show me the code to put in a profile to the right?


All times are GMT. The time now is 05:26 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.00983 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete