Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 07-09-2002, 05:56 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i feel like im wasting yer time, im sorry about this but

i did whats above, saved and uploaded it, logged in as a new user with zero postcount and i can still view and edit that custom profile field for changing usertext color

ive installed several wonderfull hacks from this forum, but i cant resolve this simple one
Reply With Quote
  #12  
Old 07-09-2002, 06:13 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, you have to edit the register.php in the same way

my fault, forgot to say that
Reply With Quote
  #13  
Old 07-09-2002, 06:46 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

under User Control Panel For test > Edit Profile > Additional Information i still see the custom profile field "Custom Title Color: enter in a hex code to change the color of yer usertitle"

when when im logged in as a brand new member with zero posts
and it even still shows up when im in the registration process



perhaps i went about adding colored user titles the hard way from the very beginning

is there an easier to solve method to do all this?
Reply With Quote
  #14  
Old 07-09-2002, 06:56 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hm, normally, you can add the variable in functions.php and not in the postbittemplate, so its easier for you to take out the functions for special users/usergroups
Reply With Quote
  #15  
Old 07-09-2002, 07:26 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im not sure what you mean by that

i removed the folowing cause too many new members were just abusing the privlegde

-code above that i added to the postbit template
<font color="$post[fieldx]">$post[usertitle]</font>

-deleted the custom profile field for usertext color

-and reset the member.php and register.php back to original

perhaps i really should be going about all this a different way
thanks for all yer help and patience so far, i'd love to get this solved.
Reply With Quote
  #16  
Old 07-09-2002, 07:41 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, you already have this profilefield right?

then open your functions.php find in the getpostbit section:
PHP Code:
if ($post[showsignature] and $allowsignatures and trim($post[signature])!="" and ($bbuserinfo[userid]==or $bbuserinfo[showsignatures])) {
            if (!isset(
$sigcache["$post[userid]"])) {
                
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
                eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
                
$sigcache["$post[userid]"] = $post[signature];
            } else {
                
$post[signature] = $sigcache["$post[userid]"];
            }
        } else {
            
$post[signature] = "";
        } 
just below add:
PHP Code:
if($post[posts]>yyy$post[username]="<font color=".$post[fieldx].">".$post[username]."</font>"
thats all
Reply With Quote
  #17  
Old 07-09-2002, 08:05 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i readded the custom profile field for "custom user title color", changed yyy to 500 and fieldx to field6 (which is the number of the custom profile field) and still no go

i can still view the option as a new member with zero posts and when i do edit it as an admin with 5000 posts, the title color doesnt change if using the name of a color (brown) or as a hex code when posting
Reply With Quote
  #18  
Old 07-09-2002, 08:22 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"i can still view the option as a new member with zero posts"
yes, but it has no use till the user has 500 posts

"when i do edit it as an admin with 5000 posts, the title color doesnt change if using the name of a color (brown) or as a hex code when posting"
must doing something wrong, i know it works.
Reply With Quote
  #19  
Old 07-09-2002, 08:52 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ok, we made serious progress
i misjudged my paste job and was pasting before a } and not after

but that code is for user name color which is just fine

can i do the same for user title colors, and just alter the code to

if($post[posts]>yyy) $post[usertitle]="<font color=".$post[fieldx].">".$post[usertitle]."</font>";

and paste it directly after the previous code for user name color?

THANK YOU SO MUCH!
Reply With Quote
  #20  
Old 07-09-2002, 09:26 PM
michealo michealo is offline
 
Join Date: Jun 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

welp, i threw caution to the wind and just did it and...

IT WORKS!!!!!!!!!!!!!!!!!!!!

Xenon, you are an all-star
i thank you

much respect

******************* EDIT

actually, when i do this, i makes the users show up as "guests" with "N/A postcounts" in all the threads unless they are currently logged in

it seems i have to add that second piece of code for usertitle color somepleace else

any thought?
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 09:02 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.07194 seconds
  • Memory Usage 2,264KB
  • 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
  • (2)bbcode_php
  • (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