2013-01-19, 05:05 PM
2013-01-19, 06:09 PM
2013-01-19, 07:27 PM
Is there anyway to change the tags from lock to hide?
2013-01-20, 08:01 AM
(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 Took me quiet some time to write this one lol.