vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   IMG tag globally == OFF, but for admins == ON (https://vborg.vbsupport.ru/showthread.php?t=40356)

wooolF[RM] 06-27-2002 07:01 PM

IMG tag globally == OFF, but for admins == ON
 
]hello again :)

FireFly made once a hack so only admins can have images in their signature (cause img tag is globally off). I spent over 2.5 hours on this board right now and used search function and even looked in the hacks section... No luck... :(

Anyone can point me to the right direction please? I'm lost :(

Xenon 06-27-2002 07:03 PM

if you just want the images in the signature, just create a custom bb-code and just give it to your admins.....

wooolF[RM] 06-27-2002 07:06 PM

]welll... that's the solution too... but MODs can see other peoples profile (admin's too) so it's not the best solution :(

anyway thanx for the tip :)

and I'm still looking for the hack made by FireFly... :/

Xenon 06-27-2002 07:09 PM

oh, you allow your mods to view admins profile?
i never do that, so i can use those codes ;)

or i found this one:
https://vborg.vbsupport.ru/showthrea...ght=img+admins

wooolF[RM] 06-27-2002 07:12 PM

]Add [img] to the censored words list, and exempt admins from censor.


^^^^ not a solution... it will just confuse other users :(

wooolF[RM] 06-27-2002 07:15 PM

]
Quote:

Originally posted by Xenon
oh, you allow your mods to view admins profile?

I allow them to view all profiles... there's no limitation... only all or nothing...

Xenon 06-27-2002 07:18 PM

just hack the mod/user.php
just 1 small if clause *g*

i don't allow my mods to view my profile ;)

hmm, make an announcement, that the img-code is censored now, and the confusion is gone ;)

wooolF[RM] 06-27-2002 07:23 PM

]can u make a step by step instruction for man in need? ;) thanx I'm really not so good in php and I can't risk my forum with 7000 users...

wooolF[RM] 06-27-2002 07:30 PM

]I know only one thing... it have something to do with admin/functions.php where u have this code:
Code:

// ###################### Start bbcodeparse #######################
function bbcodeparse($bbcode,$forumid=0,$allowsmilie=1) {

  global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsmilies;

etc... but I just can't figure it out

Xenon 06-27-2002 07:30 PM

no problem ;)

find this:
PHP Code:

// ###################### Start viewuser #######################
if ($action=="viewuser") {
  
$perms=getpermissions();
  if (!
$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canviewprofile=1")) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  }

  
$userid=verifyid("user",$userid,0);

  
$user=$DB_site->query_first("SELECT userid,usergroupid,username,password,email,parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,customtitle,FROM_UNIXTIME(joindate) AS joindate,cookieuser,daysprune,FROM_UNIXTIME(lastvisit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,posts,timezoneoffset,emailnotification,emailonpm,receivepm,ipaddress FROM user WHERE userid=$userid"); 

below add:
PHP Code:

if ($user[usergroupid]==6) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  } 

thats when you don't like your mods can view your profile :)

then just make the new bbcode and just give it to your admins ;)


All times are GMT. The time now is 08:20 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.01536 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete