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 07-07-2002, 02:54 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default looking for a hack to allow mods and admins to change username color...

or do i even need a hack for this?
i searched this forum, but didnt find anything that would do just this

i looked thru CP and didnt see anything to do this either

any help would be appreciated
thanks
Reply With Quote
  #2  
Old 07-07-2002, 03:03 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there are some hacks out there, most of them works with custom profilefields...

do another search and you'll find em
Reply With Quote
  #3  
Old 07-07-2002, 03:50 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i found this one, Username Font Color Hack(in postbit)

which looks nice, BUT its for all members, and i only want mods and admins to ahve this ability
Reply With Quote
  #4  
Old 07-07-2002, 04:31 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just add an if-clause
PHP Code:
if(post[usergoupid]!=2) {....original code of the hack here ..... } 
Reply With Quote
  #5  
Old 07-08-2002, 08:02 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for yer help, but i coldnt get that too work

actually to make things easier, i just want to only allow this option once a certain post count it hit

would the command be?

if(post[postcount]!>=500) {....original code of the hack here ..... }
Reply With Quote
  #6  
Old 07-09-2002, 12:03 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my code should work, perhaps there is a problem with your integration...

also for posts counts:
if(post[posts]>=500) {....original code of the hack here ..... }
Reply With Quote
  #7  
Old 07-09-2002, 01:59 AM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it should go in the postbit right?

before this line

<smallfont><font color="$post[field5]">$post[usertitle]</font>

i put it there and it just displays it just like another line

perhaps im putting it in wrong place, cause i dont want the members to even see the option in thier control panel is they have less than a certain number of posts
Reply With Quote
  #8  
Old 07-09-2002, 10:21 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

php-code you can just add in php-files

you have to edit functions.php

you have done so when you installed Username Font Color Hack.

so there add the code, not in the templates..
Reply With Quote
  #9  
Old 07-09-2002, 05:09 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i understand what yer saying now, but i didnt use functions.php to allow coloring of titles, i used this. a custom profile field

Quote:
make a custom profile field which can only be 7 character long for the input...

Call it Custom Title Color

In that field they can type the hex of the color they want the title to be...

then find out what profile field it is (can't remember how to do it but its not har)

then in ure postbit template find this bit:

$post[usertitle]

then change that to:

<font color="$post[fieldx]">$post[usertitle]</font>

instead of the "x" in "fieldx" insert the number of the profile field..
so basically, i want the custom profile field to not even show up for a member if he hasnt reached a certain post count

thanks for all yer help so far
Reply With Quote
  #10  
Old 07-09-2002, 05:27 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, i see
open member.php
find:
PHP Code:
eval("\$customfields .= \"".gettemplate("register_customfields")."\";"); 
replace with:
PHP Code:
if($profilefieldname!=|| $bbuserinfo[posts]>yy) eval("\$customfields .= \"".gettemplate("register_customfields")."\";"); 
replace x with your profile id
yy with the postaamount needed to use that field
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 08:55 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.04229 seconds
  • Memory Usage 2,256KB
  • Queries Executed 11 (?)
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
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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_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