vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Always allow HTML for Admins (SMods / Mods) (https://vborg.vbsupport.ru/showthread.php?t=43207)

Entourage 09-04-2002 09:00 PM

Always allow HTML for Admins (SMods / Mods)
 
The most easy to use hack ever :P

Just follow the instructions and enjoy!

Entourage

Ian 09-05-2002 10:32 PM

I just installed it and it works pretty good. I did find 2 minor bugs:[list=1][*]If you preview a post with HTML code it'll show the actual <B>whatever...</B> code instead of doing the effect of the tag.[*]It still shows "HTML code is OFF" in the "Forum Rules:" box for users who are now allowed to post HTML code.[/list=1]Also, does this work with signatures?

Erwin 09-05-2002 11:38 PM

There's a hack like this that was released a loooooong time ago, which works well. :)

Ian 09-06-2002 12:00 AM

Quote:

Originally posted by Erwin
There's a hack like this that was released a loooooong time ago, which works well. :)
Link pls. :)

mewgood 09-06-2002 12:53 AM

hm..
can anyone fix it?

Velocd 09-06-2002 01:30 AM

I saw the hack Erwin speaks of also awhile back, if you want it that badly search for it...

Interesting idea I might add.

Mr. X 09-06-2002 05:44 AM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=32015&highlight=html" target="_blank">https://vborg.vbsupport.ru/showt...highlight=html</a>

Entourage 09-06-2002 12:01 PM

Quote:

Originally posted by Ian
I just installed it and it works pretty good. I did find 2 minor bugs:[list=1][*]If you preview a post with HTML code it'll show the actual <B>whatever...</B> code instead of doing the effect of the tag.[*]It still shows "HTML code is OFF" in the "Forum Rules:" box for users who are now allowed to post HTML code.[/list=1]Also, does this work with signatures?
1st It's only parsed using showthread.php
2nd The HTML is turned off on most forums, this is the way to bypass it.

And no it does not work with signatures

lichtflits 09-06-2002 04:06 PM

is it posibel to do this same witch the image option?

Link14716 09-06-2002 05:57 PM

Very simple hack, but it gets the job done. I might expand it to more than showthread, into private.php, and also post previews (and signatures ;))

Entourage 09-06-2002 07:14 PM

Quote:

Originally posted by lichtflits
is it posibel to do this same witch the image option?
Yes offcourse just a bit rewriting :)
(I even think it allreafy includes the img tag bypass :))

NuclioN 09-06-2002 07:53 PM

This hack conflicts with the / me hack (irc kind of display) from firefly. How can they work together?

Entourage 09-06-2002 08:37 PM

NuclioN > let the replacements parse in the bbcodeparse2 not only in the normal :)

NuclioN 09-06-2002 08:53 PM

How does the code looks if you want to do that? I'm getting or the / me working or the html without / me etc.

Entourage 09-09-2002 08:40 AM

PHP Code:

function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode$dome 0)






  if (
$dome == 0) {
      global 
$post;
      
$bbcode preg_replace('#^/me (.*)$#im'"<font color=\"#9C009C\">* $post[username] \\1</font>"$bbcode);
  } 


NuclioN 09-09-2002 09:59 AM

I'm sorry Entourage, what to replace with this code? I found the line and replaced it and after it there was a parse error.

function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmi lies,$dobbcode, $dome = 0)
if ($dome == 0) {
global $post;
$bbcode = preg_replace('#^/me (.*)$#im', "<font color=\"#9C009C\">* $post[username] \1</font>", $bbcode);
}
{ // parses text for vB code, smilies and censoring


All times are GMT. The time now is 11:23 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.01688 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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