vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Anyway to disable BB code for user's sig but not the Admin's sig? (https://vborg.vbsupport.ru/showthread.php?t=82653)

jojo77 06-07-2005 10:33 PM

Anyway to disable BB code for user's sig but not the Admin's sig?
 
Anyway to disable BB code for user's sig but not the Admin's sig?

Andreas 06-07-2005 10:59 PM

Yes.

*** Untested ***

In functions_showthread.php
FIND
PHP Code:

if (!isset($sigcache["$post[userid]"]))
{
    
$parsed_postcache['skip'] = true;
    
$post['signature'] = parse_bbcode($post['signature'], 'nonforum'$vboptions['allowsmilies']); 

REPLACE that WITH
PHP Code:

if (!isset($sigcache["$post[userid]"]))
{
    
$parsed_postcache['skip'] = true;
    
$post['signature'] = parse_bbcode2($post['signature'], $vboptions['allowbbimagecode'], $vboptions['allowsmilies'], $vboptions['allowbbcode'] AND ($post['permissions']['adminpermissions'] & CANCONTROLPANEL)); 

In profile.php
FIND
PHP Code:

$bbcodeon iif($vboptions['allowbbcode'], $vbphrase['on'], $vbphrase['off']); 

REPLACE that with
PHP Code:

$bbcodeon iif($vboptions['allowbbcode'] AND ($permissions['adminpermissions'] & CANCONTROLPANEL), $vbphrase['on'], $vbphrase['off']); 


FIND
PHP Code:

$previewmessage parse_bbcode2($signature$vboptions['allowhtml'], $vboptions['allowbbimagecode'], $vboptions['allowsmilies'], $vboptions['allowbbcode']); 

REPLACE that with
PHP Code:

$previewmessage parse_bbcode2($signature$vboptions['allowhtml'], $vboptions['allowbbimagecode'], $vboptions['allowsmilies'], $vboptions['allowbbcode'] AND ($permissions['adminpermissions'] & CANCONTROLPANEL)); 


jojo77 06-09-2005 03:49 PM

hmm didn't work, said parse_bbcode2 not found on the top of the page

Andreas 06-09-2005 03:56 PM

W00t?
Normally that can't be, parse_bbcode2() is defined in functions_bbcodeprase.php as well as parse_bbcode().
Please check the file edits you made.

Any1 else willing to try?


All times are GMT. The time now is 08:22 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.00972 seconds
  • Memory Usage 1,731KB
  • 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
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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