vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Add Reputation Link/Button To Member Info Bar (https://vborg.vbsupport.ru/showthread.php?t=212265)

princeedward 04-27-2009 08:18 AM

Add Reputation Link/Button To Member Info Bar
 
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


Code:

<if condition="$show['reputationlink']">
          <td class="vbmenu_control"><a href="reputation.php?$session[sessionurl]do=reputation&amp;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 12:38 AM

Quote:

Originally Posted by princeedward (Post 1799806)
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


Code:

<if condition="$show['reputationlink']">
          <td class="vbmenu_control"><a href="reputation.php?$session[sessionurl]do=reputation&amp;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]:

HTML Code:

<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 12: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 12: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 10: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 01: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 05: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

;)


All times are GMT. The time now is 10:38 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.02647 seconds
  • Memory Usage 1,730KB
  • 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_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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