vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   AdminHTML (https://vborg.vbsupport.ru/showthread.php?t=48586)

S1R1US 02-06-2003 03:12 AM

AdminHTML
 
Description: Allows Admins to use HTML even if board is set not to use HTML.

is there already a hack for this?

Erwin 02-06-2003 05:43 AM

In newreply.php, newthread.php and editpost.php -

Find:

PHP Code:

require("./global.php"); 

Underneath add:

PHP Code:

  if ($bbuserinfo[usergroupid]==6) {
  
$foruminfo[allowhtml] = 1;
  } 


S1R1US 02-06-2003 09:20 AM

awesome, thanks. and that will let admins and admins only to use html?

Xenon 02-06-2003 05:54 PM

hmm, i don't think this will work, sorry erwin...

but new posts are preparsed when posting and again parsed when viewing a thread, so it won't show up....

@sirius: try to search around a bit, there is a hack around AFAIK

Erwin 02-07-2003 05:38 AM

Works for me, Stefan. :) I've been using that just for myself on my forums for the past year... this just changes the allowhtml permission - nothing to do with parsing. :)

Xenon 02-07-2003 11:29 AM

hmm, isn't possible erwin, at least not when you've just hacked these three files, because the html code is parsed out on showthread.php where you haven't changed the forumrules...

so you have to edit functions.php the getpostbit function,too:
PHP Code:

//line 263 unhacked vb229 functions:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); 


Erwin 02-07-2003 10:08 PM

You're right... my functions.php there is modified to pieces... :)

This is what I've got instead of the line Xenon posted:

PHP Code:

if ($post[usergroupid]==6
{
  
$post[message]=bbcodeparse2($post[pagetext],1,1,1,1,1);
  } else {
  
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie], 1);



Xenon 02-08-2003 04:28 PM

:)

so everything clears out, and give's us a nice way to let admins use html :)


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