vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   ok whats with this code (https://vborg.vbsupport.ru/showthread.php?t=42601)

Gaffer 08-22-2002 05:24 AM

ok whats with this code
 
i have been trying to get this working so i can set up some glow and other stuff for members but for some reason the below coding won't work

this one is set to change there member title to what ever is hard coded whats wrong with this code

################################
#File to edit admin/funtion.php#
################################

############
#Find this:#
############

right below this

if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
if ($post[customtitle]==2) {
$post[usertitle] = htmlspecialchars($post[usertitle]);
}

########################
#And add this below it:#
########################

// begin hard coding member stuff

$post[specialusertitle] = $post[usertitle];

if ($post[userid] == 21) { $post[specialusertitle] = "something here"; }

// end Hard Coding member Stuff

################################################## ###
#Then go edit your postbit template and change this:#
################################################## ###

[usertitle]

to this:

[specialusertitle]

________________________________________________

g-force2k2 08-22-2002 02:23 PM

try this code...

PHP Code:

if($post[userid] == 21) {
  
$post[speciausertitle] = "[ insert data here ]";
} else {
  
$post[specialusertitle] = "$post[usertitle]";


that should do the trick ;) regards...

g-force2k2

eXtremeTim 08-22-2002 10:51 PM

Either one should work. I think he was just asking why you convert it like that. from [usertitle] to [specialusertitle]

Chruser 08-23-2002 05:40 PM

Just a minor thing:
Change "funtion.php" to "functions.php"

Gaffer 08-25-2002 05:55 AM

well looks like that don't want to work either

i'll play around with this and get it working cause i need this badly

the head admin at one of the message boards likes editing peoples stuff for them without there permission so i need to hard code some information in

Warlord 09-01-2002 06:20 AM

Quote:

Originally posted by Gaffer
i have been trying to get this working so i can set up some glow and other stuff for members but for some reason the below coding won't work


this one is set to change there member title to what ever is hard coded whats wrong with this code

################################
#File to edit admin/funtion.php#
################################

############
#Find this:#
############

right below this

if ($avatarurl=="" or ($bbuserinfo[userid]>0 and !($bbuserinfo[showavatars]))) {
$post[avatar]="";
} else {
eval("\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
}
if ($post[customtitle]==2) {
$post[usertitle] = htmlspecialchars($post[usertitle]);
}




########################
#And add this below it:#
########################

// begin hard coding member stuff

$post[specialusertitle] = $post[usertitle];

if ($post[userid] == 21) { $post[specialusertitle] = "something here"; }

// end Hard Coding member Stuff


################################################## ###
#Then go edit your postbit template and change this:#
################################################## ###

[usertitle]

to this:

[specialusertitle]

________________________________________________

Gaf.. you can either send me the file and I'll fix it for you or you can give me temp access and I'll hack it there...

g-force2k2 09-01-2002 04:31 PM

Gaffer try this coding ;)

PHP Code:

if($post[userid] == 21) {
  
$post[specialusertitle] = "[ insert data here ]";
} else {
  
$post[specialusertitle] = "$post[usertitle]";


my bad spelling errors ;) regards...

g-force2k2


All times are GMT. The time now is 08:31 AM.

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.01022 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete