2019-11-25, 04:16 PM
2020-01-19, 07:33 PM
(2015-09-21, 01:27 AM)Nekomimi Wrote: [ -> ]Pay to view:
[hide cost="1337"] Pay to view this content. [/hide]
[hide cost="1337" title="super secret content"] Pay to view this content. [/hide]
This is my code [hide]Reply to view this content.[/hide]
$.sceditor.command.set("hider", {
_dropDown: function (editor, caller) {
var $content;
$content = $(
'<div>' +
'<div>' +
'<label for="hider">' + editor._('Hide content until replay') + '</label> ' +
'<textarea type="text" id="hider" />' +
'</div>' +
'<div><input type="button" class="button" value="' + editor._('Insert') + '" /></div>' +
'</div>'
);
setTimeout(function () {
$content.find('#hider').trigger('focus');
}, 100);
$content.find('.button').on('click', function (e) {
var val = $content.find('#hider').val(),
before = '[hide]',
end = '[/hide]';
if (val) {
before = before + val + end;
end = null;
}
editor.insert(before, end);
editor.closeDropDown(true);
e.preventDefault();
});
editor.createDropDown(caller, 'insertcode', $content.get(0));
},
exec: function (caller) {
if ($.trim(this.getRangeHelper().selectedRange())) {
this.insert('[hide]', '[/hide]');
return;
}
$.sceditor.command.get('hider')._dropDown(this, caller);
},
txtExec: ['[hide]', '[/hide]'],
tooltip: 'Hide Until Replay'
});
How make this for also
[hide cost="1337"]Pay to view this content.[/hide] and
[hide cost="1337" title="super secret content"]Pay to view this content.[/hide]
2020-02-04, 09:13 PM
I know this has been abandoned, but maybe I am missing it. When using the plugin is there a button put into the editor somewhere to easily access this?
I guess my question is more geared towards allowing people to use it. How do they find the functions they need for this plugin? I don't have anything in my editor. But the codes I happened to come across in this thread work...
I guess my question is more geared towards allowing people to use it. How do they find the functions they need for this plugin? I don't have anything in my editor. But the codes I happened to come across in this thread work...
2020-03-05, 04:26 PM
could you make it just give a popup like hey you dont have enough coins insted of opening a new page?
2020-03-19, 03:09 AM
any help with this error
MyBB has experienced an internal SQL error and cannot continue.
SQL Error: 1364 - Field 'description' doesn't have a default value Query: INSERT INTO mybbvf_settinggroups (
Please contact the MyBB Group for technical support.
MyBB has experienced an internal SQL error and cannot continue.
SQL Error: 1364 - Field 'description' doesn't have a default value Query: INSERT INTO mybbvf_settinggroups (
name
,title
,disporder
,isdefault
) VALUES ('lock','Lock Settings',1,0) Please contact the MyBB Group for technical support.
2020-03-19, 03:49 AM
^ right click this link & save the file.
upload it to
then check it ..
upload it to
inc/plugins/lock/core
folder by replacing existing file. then check it ..
2020-04-23, 03:44 PM
Any idea why the content from a post which is supposed to be hidden, isn't? Tried removing all usergroups from bypassing hide, even tried as a new user to see if an admin's hidden post would work.....nothing.
2020-04-24, 02:58 AM
Hi All
I am using Lock - Sell content in hide tags for newpoints Plugin and i have set default price for hidden content. i try to modify lock_wrapper temples to hide prices for closed thread but it dint work for me . for this modification i am using If condition in a template
Original code of lock_wrapper temples
My modified code of lock_wrapper temples
Can Some one help me to correct this code ?
I am using Lock - Sell content in hide tags for newpoints Plugin and i have set default price for hidden content. i try to modify lock_wrapper temples to hide prices for closed thread but it dint work for me . for this modification i am using If condition in a template
Original code of lock_wrapper temples
<div class="hidden-content">
<div class="hidden-content-title"><strong>{$params['title']}</strong></div>
<div class="hidden-content-body">
{$return}
</div>
</div>
NoneMy modified code of lock_wrapper temples
<div class="hidden-content">
<if $thread['closed'] != 1 then>
<div class="hidden-content-title"><strong>{$params['title']}</strong></div>
<div class="hidden-content-body">
{$return}
</div>
</if>
</div>
NoneCan Some one help me to correct this code ?
2020-04-25, 05:14 AM
i try below one but not working
<if $thread['closed'] != 1 then>
<div class="hidden-content">
<div class="hidden-content-title"><strong>{$params['title']}</strong></div>
<div class="hidden-content-body">
{$return}
</div>
</div>
</if>
<if $thread['closed'] != 1 then>
<div class="hidden-content">
<div class="hidden-content-title"><strong>{$params['title']}</strong></div>
<div class="hidden-content-body">
{$return}
</div>
</div>
</if>
2020-04-25, 05:45 AM
^ hoping that a plugin coder replies to your related thread