MyBB Community Forums

Full Version: Massacre's Mod list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
IMPAQ Wrote:
destroyer Wrote:Do it yourself, then? Smile
I've done plenty on my own. Thanks for asking. Rolleyes

That still doesn't excuse the lack of interest on the part of the current community (not just on the part of Massacre, cause we're all busy at one time or another. I have a career and family to cater to, so, I know what it is to be busy.) and the inability to pull in new talent, but to each his own.

I do like MyBB. Great at it's core (still needs work in some areas, but it's still "young", so, all that will come in time).

Massacre is going to war in Iraq on June 1st, give him a break.
Adam Wrote:Massacre is going to war in Iraq on June 1st, give him a break.
Is he really? Ouch!

I've never been for that war (damn red-staters!), but I wish him a safe return.

Like I was saying, though... I don't blame him. We're all busy at one time or another. Massacre's arcade port was more than generous of him to put together and release. He's been a great asset to MyBB.
is this hide mod will work on the newest version too please i m looking for this mod so badly need help
My BEST Wishes go out to you Massacre. I Hope to god you return safely from Iraq. We've seen too many losses already
hey can someone please tell me if this hide mod will work for the latest version too

Thanks
vikramdhani Wrote:hey can someone please tell me if this hide mod will work for the latest version too

Thanks

It doesn't work overhere Wink
yeah i guess but i dont know why these people dont let people use hide mods and to be honest i love this forum but i guess i will be leaving it since they are implimenting there own rules that dont make no sense
hi.
me and my friend have try to fix it.
The result: it works fine for us:

#### search.php ####

Search
---
if(strlen($result['subject']) > 50)
{
$title = substr($result['subject'], 0, 50)."...";
}
else
{
$title = $result['subject'];
}
---
add after:
---
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]=" HIDDEN CONTENT ";
$result['message'] = preg_replace($searcharray, $replacearray, $result['message']);
---

#### showthread.php ####

Search:
---
// Lets get the pid's of the posts on this page
---
Add before:
--
$result = $db->query("SELECT count(message) FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND uid='$mybbuser[uid]'");
$selfposted = $db->fetch_array($result, $selfposted->db);
--

### newreply.php ###

Search:
---
$username = htmlspecialchars_uni($mybb->input['username']);
---
Add before:
--
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="";
$post[message] = preg_replace($searcharray, $replacearray, $post[message]);
---

### /inc/functions_post.php ###

Search:
---
function doquotes($message)
---

Add before:
---

function hidetags($message) {
global $db, $n, $mybbuser, $selfposted;
// if user a guest, answered to Posting, or moderators are not the text indicated
if ( ($mybbuser[uid] != "0" && $selfposted[0]) || $mybbuser[cancp]) {
$search="/\[hide](.*)\[\/hide\]/siU";
$replace="<font color=red><b><i>Hidden Text:</i></b></font> $1";
$message = preg_replace($search, $replace, $message);
$message = str_replace("\'", "'", $message);
} else {
// sonst nix anzeigen
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="<font color=red><b><i>Hidden Text (post reply to see text)</i></b></font>";
$message = preg_replace($searcharray, $replacearray, $message);
$message = str_replace("\'", "'", $message);
}
return $message;
}

---
Search:
---
$message = nl2br($message);
---

Add before:
---
$message = hidetags($message);
---

Upload edited files.

Templates:

### edit codebuttons ####

---
Search:
---
<img name="php" src="./images/codebuttons/php.gif" onclick="insertCode('php')" class="toolbar_normal" onmouseover="toolbarHover('php')" onmouseout="toolbarUnHover('php')" onMouseDown="toolbarMouseDown('php')" alt="$lang->alt_php">

---
Add after:
---
<img name="hide" src="./images/codebuttons/hide.gif" onclick="insertCode('hide')" alt="Hidden Text" border="0" class="toolbar_normal" onmouseover="toolbarHover('hide')" onmouseout="toolbarUnHover('hide')" onMouseDown="toolbarMouseDown('hide')">
---



Upload the following picture to ./images/codebuttons/
[img]http://forum.mybboard.de/attachment.php?aid=365[/img]

mfg
Hackmanno1
There was another Bug.
My friend fixxed it.
here's the result:

#### newreply.php ####

Search:
---
$quoted['subject'] = preg_replace("#RE:#i", "", stripslashes($quoted['subject']));
$subject = "RE: ".$quoted['subject'];
$quoted['message'] = preg_replace('#^/me (.*)$#im', "* $quoted[username] \\1", $quoted['message']);
---
add after:
---
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]=" HIDDEN CONTENT ";
$quoted['message'] = preg_replace($searcharray, $replacearray, $quoted['message']);
---

#### search.php ####

Search:
---
if(strlen($result['subject']) > 50)
{
$title = substr($result['subject'], 0, 50)."...";
}
else
{
$title = $result['subject'];
}
---
add after:
---
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]=" HIDDEN CONTENT ";
$result['message'] = preg_replace($searcharray, $replacearray, $result['message']);
---

#### showthread.php ####

Search:
---
// Lets get the pid's of the posts on this page
---
Add before:
--
$result = $db->query("SELECT count(message) FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND uid='$mybbuser[uid]'");
$selfposted = $db->fetch_array($result, $selfposted->db);
--

### newreply.php ###

Search:
---
$username = htmlspecialchars_uni($mybb->input['username']);
---
Add before:
--
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="";
$post[message] = preg_replace($searcharray, $replacearray, $post[message]);
---

### /inc/functions_post.php ###

Search:
---
function doquotes($message)
---

Add before:
---

function hidetags($message) {
global $db, $n, $mybbuser, $selfposted;
// if user a guest, answered to Posting, or moderators are not the text indicated
if ( ($mybbuser[uid] != "0" && $selfposted[0]) || $mybbuser[cancp]) {
$search="/\[hide](.*)\[\/hide\]/siU";
$replace="<font color=red><b><i>Hidden Text:</i></b></font> $1";
$message = preg_replace($search, $replace, $message);
$message = str_replace("\'", "'", $message);
} else {
// sonst nix anzeigen
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="<font color=red><b><i>Hidden Text (post reply to see text)</i></b></font>";
$message = preg_replace($searcharray, $replacearray, $message);
$message = str_replace("\'", "'", $message);
}
return $message;
}

---
Search:
---
$message = nl2br($message);
---

Add before:
---
$message = hidetags($message);
---

Upload edited files.

Templates:

### edit codebuttons ####

---
Search:
---
<img name="php" src="./images/codebuttons/php.gif" onclick="insertCode('php')" class="toolbar_normal" onmouseover="toolbarHover('php')" onmouseout="toolbarUnHover('php')" onMouseDown="toolbarMouseDown('php')" alt="$lang->alt_php">

---
Add after:
---
<img name="hide" src="./images/codebuttons/hide.gif" onclick="insertCode('hide')" alt="Hidden Text" border="0" class="toolbar_normal" onmouseover="toolbarHover('hide')" onmouseout="toolbarUnHover('hide')" onMouseDown="toolbarMouseDown('hide')">
---



Upload the following picture to ./images/codebuttons/
[img]http://forum.mybboard.de/attachment.php?aid=365[/img]

Aslo Administrators should be able to see hidden data, so here is changed version:

#### newreply.php ####

Search:
---
$quoted['subject'] = preg_replace("#RE:#i", "", stripslashes($quoted['subject']));
$subject = "RE: ".$quoted['subject'];
$quoted['message'] = preg_replace('#^/me (.*)$#im', "* $quoted[username] \\1", $quoted['message']);
---
add after:
---
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]=" HIDDEN CONTENT ";
$quoted['message'] = preg_replace($searcharray, $replacearray, $quoted['message']);
---

#### search.php ####

Search:
---
if(strlen($result['subject']) > 50)
{
$title = substr($result['subject'], 0, 50)."...";
}
else
{
$title = $result['subject'];
}
---
add after:
---
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]=" HIDDEN CONTENT ";
$result['message'] = preg_replace($searcharray, $replacearray, $result['message']);
---

#### showthread.php ####

Search:
---
// Lets get the pid's of the posts on this page
---
Add before:
--
$result = $db->query("SELECT count(message) FROM ".TABLE_PREFIX."posts WHERE tid='$tid' AND uid='$mybbuser[uid]'");
$selfposted = $db->fetch_array($result, $selfposted->db);
--

### newreply.php ###

Search:
---
$username = htmlspecialchars_uni($mybb->input['username']);
---
Add before:
--
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="";
$post[message] = preg_replace($searcharray, $replacearray, $post[message]);
---

### /inc/functions_post.php ###

Search:
---
function doquotes($message)
---

Add before:
---

function hidetags($message) {
global $db, $n, $mybbuser, $selfposted;
// if user a guest, answered to Posting, or moderators are not the text indicated
if ( ($mybbuser[uid] != "0" && $selfposted[0]) || $mybbuser[cancp] || $mybbuser[uid] !="4") {
$search="/\[hide](.*)\[\/hide\]/siU";
$replace="<font color=red><b><i>Hidden Text:</i></b></font> $1";
$message = preg_replace($search, $replace, $message);
$message = str_replace("\'", "'", $message);
} else {
// sonst nix anzeigen
$searcharray[]="/\[hide](.*)\[\/hide\]/siU";
$replacearray[]="<font color=red><b><i>Hidden Text (post reply to see text)</i></b></font>";
$message = preg_replace($searcharray, $replacearray, $message);
$message = str_replace("\'", "'", $message);
}
return $message;
}

---
Search:
---
$message = nl2br($message);
---

Add before:
---
$message = hidetags($message);
---

Upload edited files.

Templates:

### edit codebuttons ####

---
Search:
---
<img name="php" src="./images/codebuttons/php.gif" onclick="insertCode('php')" class="toolbar_normal" onmouseover="toolbarHover('php')" onmouseout="toolbarUnHover('php')" onMouseDown="toolbarMouseDown('php')" alt="$lang->alt_php">

---
Add after:
---
<img name="hide" src="./images/codebuttons/hide.gif" onclick="insertCode('hide')" alt="Hidden Text" border="0" class="toolbar_normal" onmouseover="toolbarHover('hide')" onmouseout="toolbarUnHover('hide')" onMouseDown="toolbarMouseDown('hide')">
---



Upload the following picture to ./images/codebuttons/
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26