MyBB Community Forums

Full Version: Lock Content
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
[Image: cover_preview_25096_1589611293_6d63a54b6...c62ab4.png]

Description
Lock is a MyBB plugin for hiding content and selling it for your Newpoints currency.

Download
Download from the MyBB Extend page.

Check the official page for more information.
Thank you, Dear Omar G., for the update.
But I got the following error while installing.


Your today updated plugin show following error and I am not able to activate and install your plugin..

Below is the error page while activate&install plugin:
[attachment=42879]

I had changed 'Admin category' name in my public_html since long..... Is above due to this?

In 5 sec, above error message gone and on my admin panel, plugins page below message displayed.
"This plugin requires PluginLibrary version 13 or later to be uploaded to your forum. Please upload the necessary files before continuing."
^ add PluginLibrary (does not need installation)
I am using this plugin and it works flawlessly. No issues
Great work Omar Smile
(2020-05-16, 07:39 AM).m. Wrote: [ -> ]^ add PluginLibrary (does not need installation)

Thank you @.m.....Working.
Installed.

Should below codes automatically removed from global.css if I uninstall this lock plugin?
.hidden-content {
    overflow: auto;
    background: #FFD65E;
    border: 5px solid #282828;
    padding: 1px;
    border-radius: 40px;
    text-align:center;
}

.hidden-content-body {
    padding: 5px;
    color: #fff;
    text-shadow: none;
    height: 50px;
    line-height: px;
    border-radius: 2px 2px 0 0
	text-align:center;
}

.contentlock-head-locked {
    background: rgba(207, 0, 15, .5)
}

.contentlock-head-unlocked {
    background: #46842D
}

.contentlock-head-icon {
    background: rgba(0, 0, 0, .2);
    border-radius: 100%;
    padding: 4px;
    width: 20px;
    height: 20px;
    text-align: center;
    float: left;
    margin: 7px 6px 0 0
}

.contentlock-head-icon i {
    line-height: 20px
}

.hidden-content-title {
    background: #1e6365;
    padding: 5px;
    border-radius: 0 0 2px 2px;
	color:#ffffff;
}

.hidden-content-body-locked {
    border: 3px solid rgba(207, 0, 15, .5)
}

.hidden-content-body-unlocked {
    border: 3px solid #46842D
}

.contentlock-button {
    background: #303030;
    color: #a0a0a0;
    padding: 6px 12px;
    border-radius: 2px;
    border: none;
    font-size: 12px;
    margin-top: 10px
}

.contentlock-button:hover {
    background: #46842D;
    color: #fff
}

.contentlock-addbutton {
    background: #303030;
    padding: 6px 4px;
    border-radius: 2px;
    width: 175px;
    color: #a0a0a0;
    text-align: center;
    text-shadow: none;
    font-size: 12px;
    margin-top: -2px
}

.contentlock-addbutton:hover {
    background: #17687C;
    color: #fff
}

Above codes remain in global.css even after removal of this plugin.

My thread shows the message "Hidden content" even after uninstalling and removing the plugin from public_html.

Please help.
^ they should be removed manually when plugin is uninstalled.
Great plugin,
All Hidden content cost 100points or we can choose?
I'm sure you can choose
Following are issues till shown to me......

1...One error shown to me after setting point.
[attachment=42884]

2... Suppose in 1 post, I add lock code for 50 points -----> One member (e.g JACK) open that hidden content by redeem for 50 points ----> NOW I add another lock code for 1000 points in THAT SAME POST ----> Issue : Now JACK able to see another lock code of 1000 points without redemption of 1000 points. Because JACK had redeem one code before in same post. Hope you understand what is the error.

3... Issue in putting 2 code of different lock code in same post.
  A. I put below code and get below image.
 [lock=65]
testing
[/lock]

[lock=1000]
test
[/lock]

[attachment=42885]


  B. I reverse position of code and get below image.
[lock=1000]
test
[/lock]

[lock=65]
testing
[/lock]
[attachment=42886]


4... If I put one lock codes for 65 points and another lock code for 1000 points in one post . If user have 500 points than user is not able to unhide lock content for 65 points even user have 500 points. It showing "You do not have enough points to purchase this item" message. Hope you understand. It may be due to another lock code for 1000 points inside same post which is more than users total points.
[lock=65]
testing
[/lock]

[lock=1000]
test
[/lock]
Quote:1...One error shown to me after setting point.

This is because you use an image as your currency prefix or suffix. I pushed a fix over at Github but you will need to download from there.

Quote:2... [...] Because JACK had redeem one code before in same post. Hope you understand what is the error.

This isn't an error, this is how it works. Adding this feature would require a heavy rewrite of the plugin.

Quote:3... Issue in putting 2 code of different lock code in same post.

4... If I put one lock codes for 65 points and another lock code for 1000 points in one post . If user have 500 points than user is not able to unhide lock content for 65 points even user have 500 points.

This isn't an error, this is how it works. You shouldn't put more than one price within a post. The higher price will be charged to the user regardless of what the buttons say.
Pages: 1 2 3 4 5 6