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 10-15-2009, 09:46 PM
gnosisprod gnosisprod is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Change post count to text permanently?

I'm not sure if there's a hack out there or not but I want to change the post count for just the administrator account to actual letters and have it display that permanently. How would I go about doing that?
Reply With Quote
  #2  
Old 10-15-2009, 10:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just put a condition around it in the postbit.

HTML Code:
<if condition="$post['userid'] == x">
LETTERS
<else />
normal code from postbit
</if>
Reply With Quote
  #3  
Old 10-15-2009, 10:11 PM
doa24uk doa24uk is offline
 
Join Date: Feb 2008
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Just put a condition around it in the postbit.

HTML Code:
<if condition="$post['userid'] == x">
LETTERS
<else />
normal code from postbit
</if>

Not sure that's what he meant Lynne...


-------



There is no default way to change numbers to text in php - therefore have a look at this script -->

http://www.gregmaclellan.com/php/numbertotext.phps

Demo here --> http://www.gregmaclellan.com/php/numbertotext.php

Then you'll have to integrate that into VB

Basically, not an easy task if you're not familiar with php....

Unless of course you're simply wanting to take one value ... ie. Post Count = 1211

And PERMANENTLY display Post Count = One Thousand Two Hundred and Eleven

but if you want the text to increment with each post count then the script I provided above is your only answer.
Reply With Quote
  #4  
Old 10-15-2009, 10:33 PM
gnosisprod gnosisprod is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I meant simply like putting a word or two there with it never changing. Under post count it would say something like 'doesn't matter'.
Reply With Quote
  #5  
Old 10-15-2009, 10:34 PM
doa24uk doa24uk is offline
 
Join Date: Feb 2008
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh well Lynne's solution is what you need.

Sorry Lynne
Reply With Quote
  #6  
Old 10-15-2009, 10:40 PM
gnosisprod gnosisprod is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm fooling around in the postbit but I'm not sure exactly where to put this.

--------------- Added [DATE]1255710669[/DATE] at [TIME]1255710669[/TIME] ---------------

If someone could point me in the right direction it would be appreciated.
Reply With Quote
  #7  
Old 12-07-2009, 05:30 AM
gnosisprod gnosisprod is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still having a bit of trouble with this. I'm not sure exactly where to add lynne's code at in the postbit. Am I supposed to edit the code you posted and enter my user id in the 'userid' part and then change my postcount to letters in the vbulletin users setup?

I haven't fooled around with vbulletin too much as you can see :P
Reply With Quote
  #8  
Old 12-07-2009, 06:00 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think theres a mod here that changes it to Roman Numerals, sounds cool.
Reply With Quote
  #9  
Old 12-07-2009, 02:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find the area in the postbit (or postbit_legacy) that you want to modify, then replace with this:
HTML Code:
<if condition="$post['userid'] == x">
LETTERS
<else />
normal code from postbit that you wanted to modify
</if>
Change 'x" to the userid of the person you want to just display text for.
Reply With Quote
  #10  
Old 12-07-2009, 06:04 PM
gnosisprod gnosisprod is offline
 
Join Date: Oct 2009
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HTML Code:
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
					<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
					<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
					<div>
						$vbphrase[posts]: $post[posts]
					</div>
					$template_hook[postbit_userinfo_right_after_posts]
					<if condition="$show['infraction']">
This is the code I've found. I'm thinking that the part I want to modify is:

HTML Code:
<div>
						$vbphrase[posts]: $post[posts]
					</div>
I'm probably doing this wrong. Also I'm not sure if I'm supposed to replace LETTERS with the custom text that I want, and exactly what's supposed to go in the 'normal code from postbit' part.
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 04:49 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.02751 seconds
  • Memory Usage 2,257KB
  • 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
  • (5)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete