Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2004, 04:08 PM
Shinobi's Avatar
Shinobi Shinobi is offline
 
Join Date: Aug 2004
Location: BEHIND YOU!!
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default good/bad rep change

Im talking about the rep thing that comes with 3.0.3 here:

is there any way to make the text of the rep meter change depending on whether its good or bad. For instance:

Is a users rep is 15 the postbit says Good Rep: (and then the green bars)

but if they have a negative rep of -15 the postbit says: Bad Rep: (and then the red bars)

i dont know much about php but isnt there a place where u can do and if else statement and make it write out different words depending on if the rep is below or above 0
Reply With Quote
  #2  
Old 09-01-2004, 04:15 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use and if / else statement in the postbit template. Check the documentation on vbulletin.com for the structure and syntax.
Reply With Quote
  #3  
Old 09-01-2004, 05:17 PM
Shinobi's Avatar
Shinobi Shinobi is offline
 
Join Date: Aug 2004
Location: BEHIND YOU!!
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i cant find it in the postbit_legacy. It doesnt write anything directly, its all stuff like $reppower. I lookd there, i looked in all the reputation templates, and i looked in reputation.php, but i cant find it anywhere, HELP ME!! IM CONFUSED!!

I figured out that this code is what writes it out.

$post[reputationdisplay]

but i have no idea where thats defined
Reply With Quote
  #4  
Old 09-15-2004, 05:34 AM
Shinobi's Avatar
Shinobi Shinobi is offline
 
Join Date: Aug 2004
Location: BEHIND YOU!!
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BUMP NO JUTSU!!

*thread goes back to top*
Reply With Quote
  #5  
Old 09-22-2004, 08:02 AM
Shinobi's Avatar
Shinobi Shinobi is offline
 
Join Date: Aug 2004
Location: BEHIND YOU!!
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awwww man does nobody know?? I dont know php, but this seems like a small thing right??
Reply With Quote
  #6  
Old 09-22-2004, 11:16 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the postbit_legacy template find ;
PHP Code:
<if condition="$show['reputation']">Reputation$post[reputationdisplay]</if> 
and replace with ;
PHP Code:
<if condition="$show['reputation']"><if condition="$post['reputation'] < 0">Bad Rep $post[reputationdisplay]<else />Good Rep $post[reputationdisplay]</if></if> 
Reply With Quote
  #7  
Old 09-23-2004, 05:25 AM
Shinobi's Avatar
Shinobi Shinobi is offline
 
Join Date: Aug 2004
Location: BEHIND YOU!!
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i wish it were that easy, this is what my legacy has:

<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
Reply With Quote
  #8  
Old 09-24-2004, 10:35 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shinobi
i wish it were that easy, this is what my legacy has:

<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
Try replacing that code with this ;
HTML Code:
<if condition="$show['reputation']">
	<div>
	<if condition="$post['reputation'] < 0">
		Bad Rep : <if condition="$show['reppower']">$vbphrase[reppower] : $post[reppower]</if>&nbsp;$post[reputationdisplay]
	<else />
		Good Rep : <if condition="$show['reppower']">$vbphrase[reppower] : $post[reppower]</if>&nbsp;$post[reputationdisplay]
	</if>
	</div>
</if> 
Reply With Quote
  #9  
Old 09-25-2004, 06:07 AM
Shinobi's Avatar
Shinobi Shinobi is offline
 
Join Date: Aug 2004
Location: BEHIND YOU!!
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually thats the rep that came with my 3.0.3 i just turned it on., also heres what happened when i replaced my code with urs:

http://www.shinobi-online.com/showth...hp?p=19#post19
Reply With Quote
  #10  
Old 06-27-2005, 02:46 AM
rhymeline rhymeline is offline
 
Join Date: Feb 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks.. that worked for me....
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:45 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.04389 seconds
  • Memory Usage 2,256KB
  • 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
  • (1)bbcode_html
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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