Log in

View Full Version : Username Plugin for support acknowledgement?


AM Guvnor
05-07-2006, 01:46 PM
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 :)