View Full Version : Add Reputation Link/Button To Member Info Bar
princeedward
04-27-2009, 09:18 AM
hi guys... i wonder if i can add or is it possible to make it/add the add reputation link or button to the far right of the MemberInfo Templates or Members Profile Page.....after/beside Give Infraction or we can create such small mod for it... but it must be admin or all staff viewable.... :confused:
hope it does...so i'll be needing your help here guys....appreciate any help from anyone....thanks in advance...please view my code...and correct it please...
:p
<if condition="$show['reputationlink']">
<td class="vbmenu_control"><a href="reputation.php?$session[sessionurl]do=reputation&u=$userinfo[userid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></td>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if></if>
sheppardzwc
04-28-2009, 01:38 AM
hi guys... i wonder if i can add or is it possible to make it/add the add reputation link or button to the far right of the MemberInfo Templates or Members Profile Page.....after/beside Give Infraction or we can create such small mod for it... but it must be admin or all staff viewable.... :confused:
hope it does...so i'll be needing your help here guys....appreciate any help from anyone....thanks in advance...please view my code...and correct it please...
:p
<if condition="$show['reputationlink']">
<td class="vbmenu_control"><a href="reputation.php?$session[sessionurl]do=reputation&u=$userinfo[userid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></td>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if></if>
If you want it to be all staff viewable, add below $show[rep]:
<if condition="is_member_of($vbulletin->userinfo, x, x, x, x)">
blabla
</if>
Change the x's to your staff usergroup numbers.
princeedward
04-28-2009, 01:39 PM
thanks sheppardzwc'
actually i need help on this....my code desn't work....i can't make it work...so i need someone to check or correct it please...
appreciate any help from all of you guys....
thanks and best regards...
;)
Lynne
04-28-2009, 01:55 PM
You can't use $post in the member profile page. You'll need to try $prepared or $userinfo instead.
princeedward
04-30-2009, 11:19 AM
thanks lynne...as always ...always there to help anyone...;)
no it won't work...i don't know....how can i make this happen i really like to have at least any ways to have a chance to give reputation via Members Profile Page....
at the right side of View Profile bar where we can see the
Add JUDAS to Your Ignore List > User Options > Give Infraction > Add Reputation
or somewhere below, inside Forum Info box
Might the others genious coder create one mod like this pls...my reason is...why we can also add reputation to any members without going each time to their post right? like...our staff members...if they are really working good...why adding some reputation to any of them via Profile Page....right?
thanks and best regards...
Lynne
04-30-2009, 02:37 PM
Ah, I see why it isn't working - reputation is given on a post, not just in general. So, you'll have to actually modify the code to allow a post not to be involved in giving reputation. I've never used reputation before, so I don't really have any suggestions on how to go about this.
princeedward
05-04-2009, 06:02 AM
thanks lynne for the support
....is there any chance to make this happen by any means or ways...maybe some of our genious coder can try this as modification....
thanks and best regards to all
;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.