Quote:
Originally posted by Craig Antill
I would have liked to install this hack, but the instructions don't make any sense. Step 2 - those lines do not exist in global.php in 1.1.2! grrr...
I think i'll wait for John to include it in the official release. Thanks anyway.
|
Craig:
here is the fix for this (it works perfectly, relax):
where the instructions now say:
Code:
-------------
2. global.php
-------------
Find:
~~~~~
function bbcodeparse($bbcode,$forumid=0,$allowsmilie=1) {
global $DB_site,$enablecensor,$censorwords,$censorchar;
global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsmilies;
if ($forumid!=0) {
~~~~~
Under, add:
~~~~~
// PRIVATE MESSAGING
if ($forumid=="-1") {
global $privallowhtml, $privbbimagecode, $privallowsmilies, $privallowbbcode;
$allowhtml = $privallowhtml;
$allowbbimagecode = $privbbimagecode;
$allowsmilies = $privallowsmilies;
$allowbbcode = $privallowbbcode;
} else {
// END PRIVATE MESSAGING
~~~~~
Just below that, find:
~~~~~
$allowbbcode=$forum[allowbbcode];
~~~~~
Under, add:
~~~~~
// PRIVATE MESSAGING
}
// END PRIVATE MESSAGING
~~~~
-------------
replace it with:
Code:
-------------
2. global.php
-------------
Find:
~~~~~
// parses text for vB code, smilies and censoring
global $DB_site,$bbcode2;
global $allowhtml,$allowbbcode,$allowbbimagecode,$allowsmilies,$wordwrap;
if ($wordwrap!=0) {
$bbcode=eregi_replace("([^ <>\"\\-]{$wordwrap})"," \\1 ",$bbcode);
}
if ($forumid!=0) {
~~~~~
Under, add:
~~~~~
// PRIVATE MESSAGING
if ($forumid=="-1") {
global $privallowhtml, $privbbimagecode, $privallowsmilies, $privallowbbcode;
$dohtml = $privallowhtml;
$dobbimagecode = $privbbimagecode;
$dosmilies = $privallowsmilies;
$dobbcode = $privallowbbcode;
} else {
// END PRIVATE MESSAGING
~~~~~
Just below that, find:
~~~~~
$dobbcode=$forum[allowbbcode];
~~~~~
Under, add:
~~~~~
// PRIVATE MESSAGING
}
// END PRIVATE MESSAGING
~~~~
-------------
cheers