Come And Feel the Difference
nyoba lagi - Printable Version

+- Come And Feel the Difference (https://www.gookil.com/x2)
+-- Forum: Office (https://www.gookil.com/x2/forum-1.html)
+--- Forum: Tester Area (https://www.gookil.com/x2/forum-38.html)
+--- Thread: nyoba lagi (/thread-367.html)



nyoba lagi - Terzier - 11-29-2011

Hidden Content


RE: nyoba lagi - Terzier - 05-02-2012

Hidden Content
[attachment=29]


RE: nyoba lagi - OCKhan - 05-02-2012

unjuk-gigi ok bro, aye coba buat sekarang Applause_big


RE: nyoba lagi - Terzier - 05-02-2012

jangan lupa, pake tag Hidden Content

unjuk-gigi


RE: nyoba lagi - Terzier - 05-02-2012

[hidengo]
, $n, $mybb, $tid;
$result = $db->query("SELECT message FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND uid='{$mybb->user['uid']}'");
$selfposted = $db->num_rows($result);

// if user a guest, answered to Posting, or moderators are not the text indicated
if ( ($mybb->user[uid] != "0" && $selfposted > "0") || $mybb->usergroup[cancp] == "1") {
$pattern = "/\(.*)\[\/hide]/siU";
$replace = "<div class='hidetags_header'><b>Hidden:</b></div><div class='hidetags_body' style='display: block;'>\\1</div>";
$message = preg_replace($pattern, $replace, $message);
$message = str_replace("\'", "'", $message);
$message = $message;

$pattern = "/\(.*)\[\/hide]/siU";
$replace = "<div class='hidetags_header'><b>Hidden: \\1</b></div><div class='hidetags_body' style='display: block;'>\\2</div>";
$message = preg_replace($pattern, $replace, $message);
$message = str_replace("\'", "'", $message);
$message = $message;
} else {
// hide content
$pattern = "/\(.*)\[\/hide]/siU";
$replace = "<div class='hidetags_header'><b>Hidden:</b></div><div class='hidetags_body' style='display: block;'>Post reply to view.</div>";
$message = preg_replace($pattern, $replace, $message);
$message = str_replace("\'", "'", $message);

$pattern = "/\(.*)\[\/hide]/siU";
$replace = "<div class='hidetags_header'><b>Hidden: \\1</b></div><div class='hidetags_body' style='display: block;'>Post reply to view.</div>";
$message = preg_replace($pattern, $replace, $message);
$message = str_replace("\'", "'", $message);
}

return $message;
}
?>
[/hidengo]


RE: nyoba lagi - savana - 05-02-2012

Monkey_big test