Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 01-20-2007, 11:03 PM
GPS_Flex's Avatar
GPS_Flex GPS_Flex is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Reputation Value

I managed to get the actual reputation value to post instead of the little green bars by replacing this (in postbit):

<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>

with this:

<if condition="$show['reputation']"><div>Reputation:<if condition="$post[reputation]<0"><font color='maroon'>
$post[reputation]</font></if>
<if condition="$post[reputation]>0"><font color='black'>
$post[reputation]</font></if></if>

That took care of how it's displayed in the threads but the members list still shows the green bars and the user profiles still show the green bars.

Can someone help me fix it so there are no green bars and if a user has a rep value of say "410" it shows up as 410 rather than displaying those bars?

--------------------------------------------------------------------------------
Reply With Quote
  #2  
Old 01-20-2007, 11:14 PM
Attilitus's Avatar
Attilitus Attilitus is offline
 
Join Date: Mar 2005
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it not possible to make similar edits in the relevant templates?
Reply With Quote
  #3  
Old 01-20-2007, 11:20 PM
GPS_Flex's Avatar
GPS_Flex GPS_Flex is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what to edit and where to put it. I got that edit from the admin of another forum.

You will have to forgive me, I'm fairly new to the VB thing and I'm not a programmer.
Reply With Quote
  #4  
Old 01-20-2007, 11:49 PM
Martyh Martyh is offline
 
Join Date: Jan 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was trying to do the same thing, that didn't work for me though.

Ok,

It worked when I did it in the legacy postbit, thanks a lot man, I have no idea why they would use green bars instead of numbers, should at least have a choice on it. JMO,
Reply With Quote
  #5  
Old 01-21-2007, 03:16 PM
GPS_Flex's Avatar
GPS_Flex GPS_Flex is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I changed it in the postbit and in the legacy postbit. That fixed everything but the members list page and the user’s profile page. I still get that green bar on those pages.
Reply With Quote
  #6  
Old 01-21-2007, 03:44 PM
Martyh Martyh is offline
 
Join Date: Jan 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to get rid of that also, but have no clue as to how,, probably something similar to what you have done already but I need someone with experience to let us know as I am new to this also, and have never been accused of being the sharpest knife.
Reply With Quote
  #7  
Old 01-21-2007, 06:27 PM
GPS_Flex's Avatar
GPS_Flex GPS_Flex is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It must be a tricky one. I'm not the sharpest tool in the shed either but I figured there was a simple way to fix it and that someone would have explained it to us by now.

If I get it figured out or get help with it from somewhere else, I'll post it here and maybe send you a PM telling you what the fix is Martyh.

I got us a fix Martyh.

In the memberlist_resultsbit template find this:

<if condition="$show['reputationcol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[reputationdisplay]</td></if>

and replace it with this:

<if condition="$show['reputationcol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[reputation]</td></if>

Then go to the MEMBERINFO template and find this:

<if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputationdisplay]</div></if>

and replace it with this:

<if condition="$userinfo['reputationdisplay']"><div align="center">$userinfo[reputation]</div></if>

Thanks to all those who took the time to help.
Reply With Quote
  #8  
Old 01-22-2007, 09:26 AM
Martyh Martyh is offline
 
Join Date: Jan 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice detective work there GPS,

Works great, thanks a lot.
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 07:31 AM.


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.03936 seconds
  • Memory Usage 2,222KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete