[2.0.12] Hide BBcode MOD

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
42
72%
Very Good
3
5%
Good
8
14%
Fair
0
No votes
Poor
5
9%
 
Total votes: 58

pyrofreak
Registered User
Posts: 2
Joined: Mon May 01, 2006 9:30 am

Re: My problem

Post by pyrofreak »

webgrrrl wrote: OK, I'm using PHP 2.019 -- installed the most current EasyMod version and am now trying to install the hide mod.

I'm hung up on this part:
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php


#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
$EMBB_values = array(''

I can't find any $EMBB codes in my bbcode.php file. Anyone??


Same problem here, does anyone know the solution?
pyrofreak
Registered User
Posts: 2
Joined: Mon May 01, 2006 9:30 am

Re: My problem

Post by pyrofreak »

webgrrrl wrote: OK, I'm using PHP 2.019 -- installed the most current EasyMod version and am now trying to install the hide mod.

I'm hung up on this part:
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php


#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''
$EMBB_values = array(''

I can't find any $EMBB codes in my bbcode.php file. Anyone??


Same problem here, does anyone know the solution? I also tried to install manually but i can't find the &EMBB.... part
abumslife
Registered User
Posts: 192
Joined: Thu Apr 10, 2003 8:26 pm

Post by abumslife »

does this work for .20 and easy mod
davron
Registered User
Posts: 30
Joined: Fri Jan 20, 2006 7:10 am
Location: NY, USA
Contact:

Post by davron »

I REALLY NEED the MOD for hiding the certain area for unregistered users, is it possible with this one?
daisukey
Registered User
Posts: 28
Joined: Fri Feb 17, 2006 7:35 pm

Post by daisukey »

http://www.philiweb.com/download/hide/h ... =2&lang=en

follow the tutorial in Engrish. Thanks to the author.

After installing everything, i'm getting "Call to undefined function: bbencode_third_pass() in" error though.

somebody help plz.
bonez07
Registered User
Posts: 178
Joined: Fri Oct 28, 2005 12:53 am

Post by bonez07 »

bonez07 wrote: ok all the french files are OK for the english version. the ONLY THING YOU MUST DO is as follows:

in bbcode.php in the /includes directory, in the french version files, you'll see:
function hide_in_quote($text)
{
$text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","--- phpBB : Le message protégé n'est pas recopié dans cette citation ---", $text);
return $text;
}

function bbencode_third_pass($text, $uid, $deprotect)
{
global $bbcode_tpl;

// pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
// This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
$text = " " . $text;

// First: If there isn't a "[" and a "]" in the message, don't bother.
if (! (strpos($text, "[") && strpos($text, "]")) )
{
// Remove padding, return.
$text = substr($text, 1);
return $text;
}
// Patterns and replacements for URL and email tags..
$patterns = array();
$replacements = array();

if ( $deprotect ) {
$patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
$replacements[0] = $bbcode_tpl['show'];
}
else
{
$patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
$replacements[0] = $bbcode_tpl['hide'];
}

$text = preg_replace($patterns, $replacements, $text);

// Remove our padding from the string..
$text = substr($text, 1);

return $text;
}



now where the french text is bolded, just replace it with w/e YOU want it to say in English and done.
003-leon
Registered User
Posts: 1
Joined: Wed May 10, 2006 6:41 am
Location: reno

Post by 003-leon »

bonez07 wrote: ok all those files are ok for the english version. the ONLY THING YOU MUST DO is as follows:

in bbcode.php in the /includes directory, in the french version files, you'll see:
function hide_in_quote($text)
{
$text = preg_replace("#\[hide\](.*?)\[\/hide\]#si","--- phpBB : Le message protégé n'est pas recopié dans cette citation ---", $text);
return $text;
}

function bbencode_third_pass($text, $uid, $deprotect)
{
global $bbcode_tpl;

// pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0).
// This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it.
$text = " " . $text;

// First: If there isn't a "[" and a "]" in the message, don't bother.
if (! (strpos($text, "[") && strpos($text, "]")) )
{
// Remove padding, return.
$text = substr($text, 1);
return $text;
}
// Patterns and replacements for URL and email tags..
$patterns = array();
$replacements = array();

if ( $deprotect ) {
$patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
$replacements[0] = $bbcode_tpl['show'];
}
else
{
$patterns[0] = "#\[hide:$uid\](.*?)\[/hide:$uid\]#si";
$replacements[0] = $bbcode_tpl['hide'];
}

$text = preg_replace($patterns, $replacements, $text);

// Remove our padding from the string..
$text = substr($text, 1);

return $text;
}



now where the french text is bolded, just replace it with w/e YOU want it to say in English and done.
davron
Registered User
Posts: 30
Joined: Fri Jan 20, 2006 7:10 am
Location: NY, USA
Contact:

Post by davron »

Dumb
Me-Crazy
I've Been Banned!
Posts: 142
Joined: Thu Apr 27, 2006 4:45 am

Post by Me-Crazy »

I´m installed Advanced BBCode Box V5, how can I keep this MOD all together with Advanced BBCode Box V5?
kashif19997
Registered User
Posts: 19
Joined: Sat Apr 08, 2006 7:18 pm

Post by kashif19997 »

Can any one have th e hide bbcode mode for phpbb [2.0.19] Version
Haros
I've Been Banned!
Posts: 97
Joined: Wed May 24, 2006 4:25 pm

Post by Haros »

Is Hide BBcode MOD works with Advanced BBCode MOD, instead of having Multi BBCode?

I don´t need to have it.. What should I do? :roll:
bonez07
Registered User
Posts: 178
Joined: Fri Oct 28, 2005 12:53 am

Post by bonez07 »

i use Multi so i wouldnt know..and it works on 2.0.19 so you just follow the same steps in my previous post
deny
Registered User
Posts: 565
Joined: Wed May 14, 2003 9:14 am
Contact:

Post by deny »

Any hide BB Code that works with attachment?
It will hide attachment until someone reply.
Every device on the Internet has its own IP address. Find Location of any IP with IPAddressLocation.org because everything can be located and traced.
Deco20
Registered User
Posts: 97
Joined: Sat Oct 22, 2005 2:57 pm

Post by Deco20 »

Any demo of this mod? I read all the thread but there is no demo available.
lamonatxxxx
Registered User
Posts: 5
Joined: Fri Jun 23, 2006 2:27 am

Post by lamonatxxxx »

guys i just installed this mo but whne i go to the post screen and i click ANY bbcode butons, nothing happens... but the mod works tho, like if i type [hide] whatever text here [/hide] text is hidden but juist the buttons in post screen dont work, how do i fix that guys??
Post Reply

Return to “[2.0.x] MOD Database Cleanup”