MyBB Community Forums

Full Version: Hide until reply plugin?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a hide until reply plugin? The one I downloaded is in spanish and I removed the spanish language file but its still in spanish.
http://mods.mybb.com/view/hideuntilpost

Ensure reading the reviews as well.
Is there anyway to change the tags from lock to hide?
(2013-01-19, 07:27 PM)vEconomy Wrote: [ -> ]Is there anyway to change the tags from lock to hide?

Yes there is a way indeed.

Find (Line # 61):

Enable hide bbcode? (Everything inside [lock]...[/lock] will be hiden until post is made)

Replace with:

Enable hide bbcode? (Everything inside [hide]...[/hide] will be hidden until post is made)

Find (Line # 174):

$msg = preg_replace("#\[lock\](.*)\[/lock\]#is",'',$msg);

Replace with:

$msg = preg_replace("#\[hide\](.*)\[/hide\]#is",'',$msg);

Find (Line #199)

$message = preg_replace("#\[lock\](.*)\[/lock\]#is",$box,$message);

Replace with

$message = preg_replace("#\[hide\](.*)\[/hide\]#is",$box,$message);

Find (Line # 207)

("#\[lock\](.*)\[/lock\]#is",'$1',$message)

Replace with

("#\[hide\](.*)\[/hide\]#is",'$1',$message)

Find (Line # 255)

[lock\](.*)\[/lock\]

Replace with

[hide\](.*)\[/hide\]

TroubleShooting
If it doesn't work then try doing this. DO NOT REVERT TO OLD SETTINGS, Just carry on with the stuff below.

Find (line # 253)

['hideUntilPost_lock_enabled']

Replace with

['hideUntilPost_hide_enabled']

Find (Line #194)

if($mybb->settings['hideUntilPost_lock_enabled'])

Replace with

if($mybb->settings['hideUntilPost_hide_enabled'])

Find (Line # 128)

['hideUntilPost_lock_enabled'])

Replace

['hideUntilPost_hide_enabled'])

P.S: I also use this plugin would always used the lock(default) because I never got the time to change it it and now it's kind of late for me to change but I would recommend the hide word as it's more reasonable.

Hopefully it works Big Grin Took me quiet some time to write this one lol.