Version: 1.01, by Tekton
Developer Last Online: Jun 2009
Version: 3.0.6
Rating:
Released: 02-01-2005
Last Update: Never
Installs: 52
No support by the author.
___________
NOTE: While the primary purpose of this hack is to allow the usergroup to use html in their sig, they may also use it in threads/posts as well. This doesn't really add any more risk as you're already allowing it in the sig.
???????????
Requested Here
Estimated Time: ~2 minutes [ Any questions? This thread only please ]
// ###### INSTALLATION ######
IN INCLUDES/FUNCTIONS_BBCODEPARSE.PHP
Find:
PHP Code:
// ###################### Start bbcodeparse2 #######################
function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1)
{
// parses text for vB code, smilies and censoring
global $DB_site, $vboptions, $bbuserinfo, $templatecache, $smiliecache;
Change to:
PHP Code:
// ###################### Start bbcodeparse2 #######################
function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1)
{
// parses text for vB code, smilies and censoring
global $DB_site, $vboptions, $bbuserinfo, $templatecache, $smiliecache, $userinfo, $post;
----
Find:
PHP Code:
// ********************* REMOVE HTML CODES ***************************
if(!$dohtml)
Change to:
PHP Code:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19)
// ********************* REMOVE HTML CODES ***************************
if(!$dohtml && !in_array($userinfo[usergroupid],$html_allowed)&& !in_array($post[usergroupid],$html_allowed))
Note: Edit the values in the "$html_allowed" array to change or add usergroups.
// ==========
DONE! This hack has been tested and does work~ Use at your own risk! (I'm not responsible, etc etc)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I'm confused as to what and doesn't work since this hack has never been updated. Can you update the instructions at the top to reflect the changes made in the thread?
Sorry oil, that should have been "!in_array" for that with the !'s before each. Check the code in the hack-posting at the top of the page for the working code for that way.
Sorry oil, that should have been "!in_array" for that with the !'s before each. Check the code in the hack-posting at the top of the page for the working code for that way.
I got a zero knowledge of php, but I can strictly do what I have been told
so find and replace is what I can do
the stuff which is on top is not for multipe usergroups, thats the one with usergroup 6 in it, which is working for me already
or may you changed it ??
YEPP you changed it on top thx didnt know that this is possible, by the way I could need such a hack / mod, where first post is always on top, and can be edited, which one is this, want to have that too
Question...I am currently running vb 3.0.1 and have this hack installed https://vborg.vbsupport.ru/showthrea...7&page=1&pp=15 now when I upgrade my vb and install this new html hack is all my previous posts made in html going to show correctly or will they be messed up?
Had to uninstall.... not very usefull for forums who deal with some HTML guidlines..
:\
Not sure what you mean... you're saying that your admin abused it? You should only allow trusted people to use html (which is why vB disables it by default).