Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ok whats with this code Details »»
ok whats with this code
Version: , by Gaffer Gaffer is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-22-2002 Last Update: Never Installs: 0
 
No support by the author.

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]

________________________________________________

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-22-2002, 02:23 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 08-22-2002, 10:51 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Either one should work. I think he was just asking why you convert it like that. from [usertitle] to [specialusertitle]
Reply With Quote
  #4  
Old 08-23-2002, 05:40 PM
Chruser Chruser is offline
 
Join Date: Jan 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a minor thing:
Change "funtion.php" to "functions.php"
Reply With Quote
  #5  
Old 08-25-2002, 05:55 AM
Gaffer's Avatar
Gaffer Gaffer is offline
 
Join Date: Nov 2001
Location: Australia
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 09-01-2002, 06:20 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #7  
Old 09-01-2002, 04:31 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 11:15 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.04605 seconds
  • Memory Usage 2,265KB
  • Queries Executed 20 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete