vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Request: Stopping from a single member from changing his Custom User Text (https://vborg.vbsupport.ru/showthread.php?t=41962)

kenny@ecn 08-05-2002 11:00 PM

Request: Stopping from a single member from changing his Custom User Text
 
Alright, the name should be self explanatory. I have a member on my site whose user text is "Site Administrator" - (and he definetly isn't)- and he keeps changing it to something else that p*sses me off - for instance, "Site Owner". He is a friend of mine, but he is not very well accepted into the board, he has a terrible attitude, and he is not good for my site in general, however, he is my friend, so I can't ban him.

How can I have it so that I can lock his, and his only's Custom User text to "Ferrari Fan" or something of that nature. Thank you.

-Kenny
ExoticCarForums.com

Logician 08-05-2002 11:19 PM

edit member.php, find:
PHP Code:

$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); 

Before that add:

PHP Code:

if ($bbuserinfo[userid]==XX)
{
$customtitle='...........';
$customtext='...........';


replace xx with his userid and change his title for the last time from Admin CP.. Now he cant change it anymore anything but '.........' ..

kenny@ecn 08-29-2002 05:14 AM

Doesn't work :(. I keep trying.. Any advice?

g-force2k2 08-29-2002 06:12 AM

Quote:

Originally posted by kenny@ecn
Doesn't work :(. I keep trying.. Any advice?
that should work... make sure that you replaced the XX with his userid... regards... sorry to hear about your situation ;)

if in fact you're doing it correctly then try this...

PHP Code:

if($bbuserinfo[userid] == XX) {
  
$customtext "Ferrari Fan";


place that coding above the coding that Locigician had first stated you should find in member.php... regards...

g-force2k2

Logician 08-29-2002 06:58 AM

As G-force stated, I cant see a reason that it wont work.. make sure you replaced XX with his userID and it's correct..


All times are GMT. The time now is 02:45 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.01197 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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