vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Donators been regonised (https://vborg.vbsupport.ru/showthread.php?t=141418)

Lighting90 03-07-2007 07:34 PM

Donators been regonised
 
Excuse my spelling mistakes... just in case their is any, but here goes...

We use to have a tech guy who did a modification where when some one donated, they received a gold star in the post bit just under their avatar, so everyone knew they had donated...

Unluckily for us, our tech guy no longer has the time to help us and we lost the mod when the forum was upgraded to the latest version of vB.

Is their anyone out there who could assist with the code required to do this for us...

No doubt it is very simple, just looking for the donate user group and then showing a star, or what ever picture of your choice... others may find it useful too...

manofphat 03-07-2007 08:25 PM

Here's what I have setup in my forum. I hope you find it useful:

In your postbit template find

Code:

<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
Below this, add:

Code:

<if condition="is_member_of($post, USERGROUPID)">
<a href="/forum/payments.php"><img src="YOUR IMAGE PATH" alt="Contributor" style="border-style:none" /></a>
</if>

Be sure that you replace USERGROUPID and YOUR IMAGE PATH.

Good luck!

Lighting90 03-07-2007 09:08 PM

Many thanks, will give it a try...

Is there any restriction in size of the image in this area... (currently created an image of 25 x25 pixels... )

manofphat 03-07-2007 09:49 PM

Quote:

Originally Posted by Lighting90 (Post 1198342)
Is there any restriction in size of the image in this area... x25 pixels... )

No man. But keep them small or it makes your forum look bad ;)


All times are GMT. The time now is 11:35 PM.

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.01507 seconds
  • Memory Usage 1,718KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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