Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2009, 09:18 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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....


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...




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>
Reply With Quote
  #2  
Old 04-28-2009, 01:38 AM
sheppardzwc sheppardzwc is offline
 
Join Date: Dec 2008
Location: South Carolina
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by princeedward View Post
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....


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...




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.
Reply With Quote
  #3  
Old 04-28-2009, 01:39 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...

Reply With Quote
  #4  
Old 04-28-2009, 01:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't use $post in the member profile page. You'll need to try $prepared or $userinfo instead.
Reply With Quote
  #5  
Old 04-30-2009, 11:19 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #6  
Old 04-30-2009, 02:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-04-2009, 06:02 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:28 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.04098 seconds
  • Memory Usage 2,226KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete