vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Username Plugin for support acknowledgement? (https://vborg.vbsupport.ru/showthread.php?t=114990)

AM Guvnor 05-07-2006 01:46 PM

Username Plugin for support acknowledgement?
 
Hi all

If I wanted to add a small pic to each of the usernames on my site who have donated for instance in recognition of their support of a donation..how would I do that?

Is there a hack for it by any chance for 3.5?

I've had a look around by could'nt find anything

Thank you

AM Guvnor

Zachery 05-07-2006 02:22 PM

For these users who are donated, are they in a special usergroup aside from normal members?

AM Guvnor 05-07-2006 02:25 PM

Hey Zach, thanks for taking the time to reply

They will be-yes. As its easy to add/remove and I will obviously be updated when people donate to the forum

Zachery 05-07-2006 02:32 PM

Then,

<if condition="is_member_of($post, X)"> <img src="code to image here" alt="something nice" border="0" /> </if>

Change X to whatever the usergroup id is and add that to the postbit template whereever you want it to display. Do you only need it displayed to you?

AM Guvnor 05-07-2006 04:17 PM

Hi Zach, thanks again

I need to have it viewable to the other members as well (to highlight those who have bothered to contribute to the forum!)

Where does that code need to go?! Aaah! LOL Is there not a simple plugin/product for this? Although I can probably cope with placing that code in (so long as I know where it goes)

Zachery 05-07-2006 04:29 PM

This is the easiest way to do it.

AdminCP > Styles & Templates > Style Manager >

If your postbit looks more like vbulletin.orgs edit the postbit_legacy template
If your postbit looks more like vBulletin.coms edit the postbit template

find
$post[posts]
Around there you should add my code;

AM Guvnor 05-08-2006 10:14 AM

Hey Zack, I whacked the code in but nothing displayed apart from the code in the usernames postbit

Here is the code I inserted

<if condition="is_member_of($post, 10)">img src="http://www.alphamen.co.uk/forum/images/alphamensupporter.gif" alt="something nice" border="0" /> </if>

Any ideas why its not showing? I expect its something Ive done wrong! LOL

Zachery 05-08-2006 04:01 PM

Theres the whole missing < on your img tag :)

AM Guvnor 05-08-2006 09:06 PM

Zach, fixed it :) Thanks very much for your help. It is greatly appreciated :)


All times are GMT. The time now is 12:13 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.01305 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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