1.....Now not able to activate after reinstall with the latest version updated on 16.5.2020. It gives a message to install Plugin library 13 even I installed it.
I install the version of dated 15.5.2020 and it gives no error.
2.....It shows hidden content to admin but not showing the "pay point button"
to other members. It show them a message 'Hidden content" rather than showing hidden content. It might interact with previous plugins. At present, no other hide plugins installed except this Lock. Can anyone help to sort out this? Please.
[
attachment=42897]
And after reload that same page,
Admin also not able to show hidden contents.
[
attachment=42898]
3...I need one help...
Is it possible to get only [lock*] abcdddd[/lock] in plugin files. No any [hide**] abdcd[/hide] related codes in plugin files.
Please guide what to remove to make plugin which only work with [lock*][/lock] code.
I search
'hide' word in all plugin files so please guide what to remove.
1. lock.php
function lock_highlight_start($message) {
global $mybb, $replacement;
if(!empty($mybb->input['highlight'])) {
$replacement = substr(str_shuffle(str_repeat("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYXZ", 20)), 0, 20);
$message = str_replace('hide', $replacement, $message);
}
return $message;
}
function lock_highlight_end($message) {
global $mybb, $replacement;
if(!empty($mybb->input['highlight'])) {
$message = str_replace($replacement, 'hide', $message);
}
return Shortcodes::parse($message);
}
2...shortcodes.class
public function set_tag()
{
global $mybb;
self::$tag = $mybb->settings['lock_type'] == 'hide' ? 'hide' : 'lock';
}
3...install.php
'type' => array(
'title' => $lang->setting_lock_type,
'description' => $lang->setting_lock_type_desc,
'optionscode' => 'radio
hide=Hide
lock=Lock',
'value' => 'hide',
),
4....shortcode.php
function lock_hide($params, $content)
{
global $mybb, $post, $templates, $lang, $db;
isset($lang->lock) || $lang->load('lock');
global $mybb;
switch((string)$mybb->settings['lock_type'])
{
case 'lock':
Shortcodes::add("lock", "lock_hide");
break;
default:
Shortcodes::add("hide", "lock_hide");
break;
}
Please help.