Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 01-10-2007, 05:49 PM
yuriy yuriy is offline
 
Join Date: Oct 2006
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Reputation points in postbit

Hey everyone, ANOTHER HELP is needed lol, I'm a n00b at vB for NOW!, I was with that stupid php-nuke for couple of years, until I found vB can be better than that crap, anyways this is what I want:

When a user has 0 reps I will change this to be on register get no points, and as you can see in the image below it shows Reputation: 0 in red color and when theres a rep above 0 it shows Reputation: 15 in green color, I currently have this in my post bit:

PHP Code:
<if condition="$show['reputation']"><div><if condition="$show['reppower']"></if>
<
table width="120" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td width="48" height="20" align="left" background="images/reputation/pointrep.gif"><span class="smallfont">Reputaion$post[reputation]</span></td>
</
tr>
</
table></if> 
I have no idea how to get this to work I want it to, please help, Thank you so much guys! vBulletin's help is much faster then nukes :\ Thanks again everyone!

Almost forgot check the image below if you didn't understand what I was trying to say
Attached Images
File Type: jpg screenshot.jpg (15.9 KB, 0 views)
Reply With Quote
  #2  
Old 01-11-2007, 11:25 AM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yuriy View Post
When a user has 0 reps I will change this to be on register get no points, and as you can see in the image below it shows Reputation: 0 in red color and when theres a rep above 0 it shows Reputation: 15 in green color, I currently have this in my post bit:
AFAIK, this can be done with simple conditionals.

ie.
PHP Code:
<span style="color: <if condition="$post['reputation'] > 0">green<else />red</if>">$post[reputation]</span
Something like that should work..
Reply With Quote
  #3  
Old 01-11-2007, 01:18 PM
yuriy yuriy is offline
 
Join Date: Oct 2006
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about this, here is my code I modified yours:

PHP Code:
<span class="smallfont">Reputation: </span><span class="smallfont" style="color: <if condition="$post['reputation'] > 0">green<else />red</if>"><b>$post[reputation]</b></span
How would I go about lets say um, if 0 its red, if above 0 its green, if above 1,000 its yellow, if above 2,000 its orange, and so on.. can someone help me get this? please
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03962 seconds
  • Memory Usage 2,207KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete