MyBB Community Forums

Full Version: Lock - Sell content in hide tags for newpoints points.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
Hey dude, where are the templates so I can edit them?
(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]
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...
could you make it just give a popup like hey you dont have enough coins insted of opening a new page?
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 (name,title,disporder,isdefault) VALUES ('lock','Lock Settings',1,0)
Please contact the MyBB Group for technical support.
^ right click this link & save the file.
upload it to inc/plugins/lock/core folder by replacing existing file.
then check it ..
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.
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

<div class="hidden-content">
  <div class="hidden-content-title"><strong>{$params['title']}</strong></div>
  <div class="hidden-content-body">
	    {$return}
	     </div>
</div>
None


My 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>
None


Can Some one help me to correct this code ?
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>
^ hoping that a plugin coder replies to your related thread
Pages: 1 2 3 4 5 6 7