vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   html enabled between [html][/html] (https://vborg.vbsupport.ru/showthread.php?t=39516)

afterlab 06-14-2002 08:28 PM

There is a hack in which will enable HTML for specific usergroup(s), such as Admins, Mods, and Super Mods. Look around the "Released Hacks" forum and you'll see it in there. I currently use it.

inetd 06-14-2002 08:35 PM

afterlab, read post #1.
Brokie wrote:
Quote:

When I searched for a hack to give some people the right to post HTML, I found this hack: HTML Always Enabled for Admins+Etc.

But, when I use that hack, some other hacks won't work with the users that are allowed to post html (ex. the /me hack)
You speak about "HTML Always Enabled for Admins+Etc." hack?

Velocd 06-14-2002 09:01 PM

Quote:

Originally posted by hellsatan
Lol...
@xiphoid - Force of Habit...Hard to break a near 6 year habit;)

Generally you leave your signature (ie. Regards, Satan) if the post is in the form of a request, apology, or thank you. Thats how I usually see it. Ofcourse you leave yours in every post you make, so I've been wondering it too. Maybe you could go on some type of program to get treatment of this habit? ;)
j/k

Broekie 06-17-2002 01:27 PM

Quote:

Originally posted by hellsatan
Just PM FireFly (Chen), ask him if he will help, and give him a link to this thread...
Did that, but no reply...
But hey, he must be getting lots of requests so it's not that weird he didn't reply ;)

Chris M 06-17-2002 05:57 PM

Yeh...

@Velocd...You know...You may be onto something there;)

Satan

Broekie 06-20-2002 09:20 AM

okay, then I'll make a start myself...

This is the code that (for as far as I know) should be run over the part that's specified by
HTML Code:

and
, for the users with permission.


PHP Code:

    $bbcode=str_replace("<","<",$bbcode);
    
$bbcode=str_replace(">",">",$bbcode);
    
$bbcode=str_replace("&lt;","<",$bbcode);
    
$bbcode=str_replace("&gt;",">",$bbcode); 

This should reverse the anti-html proces in the function bbcodeparse2 (admin/funcions.php)


Let's say, I want moderators and higher to be able to use this:

PHP Code:

if (!ismoderator($forumid){
    
$bbcode=str_replace("&amp;lt;","&lt;",$bbcode);
    
$bbcode=str_replace("&amp;gt;","&gt;",$bbcode);
    
$bbcode=str_replace("&lt;","<",$bbcode);
    
$bbcode=str_replace("&gt;",">",$bbcode);


Now to make it so that this only happens between the
HTML Code:

and
tag.
Could anybody please help me on this?

Logician 06-20-2002 12:13 PM

1 Attachment(s)
Now I must say that I really dont understand why you need HTML codes. IMO bbcodes do the trick in most cases.

Anyway I'm sure you have a reason so here you go: Find the code you need attached.. :)

A few points:
* This was a quicky and from the coder point of view I know there are more "elegant" ways to handle it, but this is the code I made it up in a short time.
* Not tested, so give it a try.
* One Restriction applies: you can use ONE html tag PER message only! Or you'll be messed up
* Other than these you should be fine..

Enjoy.
Logician

Broekie 06-20-2002 12:20 PM

Only 1 [html] tag per message, that shouldn't be a problem :)

I'll insert this code into my testboard, and I'll let you know the results

Thanks very much!

Broekie 06-20-2002 12:55 PM

Hmmz, is doesn't work :(
I've even de-installed some of the hacks at the testforum, but that didn't do the trick.
No errors or something, the text in the post just comes out like

test
HTML Code:

<marquee>test</marquee>
test

Logician 06-20-2002 01:28 PM

are you posting from a usergroup with usergroupid 5 or 6?


All times are GMT. The time now is 06:09 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.01573 seconds
  • Memory Usage 1,746KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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