Blog literacki, portal erotyczny - seks i humor nie z tej ziemi


mod translate by viperfxp and edit by viperfxp
viperfxp@hotpop.com

the area between [hide] [/ hide] is visible first after one answered the post, however, users with moderator rights and the posters also already see it so

Tested with Burning Board 1.1.1



>> _functions.php:

function editPost($out,$disable_smilies=0) {

>> Replace it with:

function editPost($out,$disable_smilies=0,$boardid=0,$threadid=0,$user_id=0) {

----------------------------------------------------------
>> _functions.php:

global $bbcode,$html,$smilies,$badwords;

>> Replace it with::

global $bbcode,$html,$smilies,$badwords,$n,$db_zugriff;

----------------------------------------------------------
>> _functions.php:

$out = nl2br($out);

>> ADD Under It:

$posts = $db_zugriff->query_first("SELECT message FROM bb".$n."_posts WHERE boardparentid='$boardid' AND threadparentid='$threadid' AND userid='$user_id'");
$users = $db_zugriff->query_first("SELECT groupid FROM bb".$n."_user_table WHERE userid='$user_id'");
$groups = $db_zugriff->query_first("SELECT ismod FROM bb".$n."_groups WHERE id='$users[groupid]'");

if ( $user_id != "0" && $posts[message] || $groups[ismod]) {
$search="/\[hide](.*)\[\/hide\]/siU";
$replace="$1";
$out = preg_replace($search, $replace, $out);
$out = str_replace("\'", "'", $out);
} else {
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="";
$out = preg_replace($searcharray, $replacearray, $out);
$out = str_replace("\'", "'", $out);
}

----------------------------------------------------------
>> _functions.php:

global $zensur;

>> ADD Under It:

$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="";
$out = preg_replace($searcharray, $replacearray, $out);
$out = str_replace("\\'", "'", $out);

----------------------------------------------------------
>> _functions.php:

$replacearray[]="";

>> Replace it with:

$$replacearray[]="

add your ulr to it

----------------------------------------------------------
>> thread.php:

$post = editPost($posts[message],$posts[disable_smilies]);

>> Replace it with:

$post = editPost($posts[message],$posts[disable_smilies],$boardid,$threadid,$user_id);

----------------------------------------------------------
>> bbcode_language.js:


code_text = "Insert monospace text into your message";

>> ADD Under It:

hide_text = "hid Text into your message";

----------------------------------------------------------
>> templates\bbcode_buttons.htm:

> onclick="bbcode(this.form,'CODE','')" onmouseover="stat('code')"

>> ADD Under It:


>onclick="bbcode(this.form,'HIDE','')" onmouseover="stat('hide')"

----------------------------------------------------------
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • qualintaka.pev.pl
  •