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 7
(2024-01-09, 04:10 PM)eso2k Wrote: [ -> ]hi, do you have any plans to make similiar plugin, example hiding via [hide]example[/hide] until reply?

I do not, this was a on-request update of a third party plugin. I'm not the original author.

It should be relatively easy to update this plugin to work with replies instead of (new)points though.

(2024-01-09, 05:08 PM)bv64 Wrote: [ -> ]he did...

https://community.mybb.com/thread-221332.html

This is a Spoiler tag, it does not hide content based on replies.
then I missunderstood what he wants, sorry
(2024-01-09, 09:43 PM)Omar G. Wrote: [ -> ]
(2024-01-09, 04:10 PM)eso2k Wrote: [ -> ]hi, do you have any plans to make similiar plugin, example hiding via [hide]example[/hide] until reply?

I do not, this was a on-request update of a third party plugin. I'm not the original author.

It should be relatively easy to update this plugin to work with replies instead of (new)points though.

(2024-01-09, 05:08 PM)bv64 Wrote: [ -> ]he did...

https://community.mybb.com/thread-221332.html

This is a Spoiler tag, it does not hide content based on replies.

Hmm, I'll try to update your plugin to work with Hide until Reply probably... (as a second option within the plugin).
You could submit a Pull Request to the GitHub repository for me to review and probably add to the plugin :
https://github.com/Sama34/MyBB-Lock-Content/pulls

I'm unsure if the original author maintains its version of this plugin.
Hi omar

i got this error when other members want to see my thread

my thread:

Buying test

[lock=65]
testing
[/lock]


the error:
Fatal error: Uncaught Error: Call to a member function _encrypt() on null in C:\xampp\htdocs\mybb\inc\plugins\lock\pcrypt.php:209 Stack trace: #0 C:\xampp\htdocs\mybb\inc\plugins\lock\pcrypt.php(139): pcrypt->_ecb_encrypt('{"pid":"10","co...') #1 C:\xampp\htdocs\mybb\inc\plugins\lock\core\shortcode.php(153): pcrypt->encrypt('{"pid":"10","co...') #2 C:\xampp\htdocs\mybb\inc\plugins\lock\shortcodes.class.php(137): lock_hide(Array, '\ntesting\n', 'lock') #3 [internal function]: Shortcodes::run_shortcode(Array) #4 C:\xampp\htdocs\mybb\inc\plugins\lock\shortcodes.class.php(119): preg_replace_callback('/\\[(\\[?)(lock)(...', 'self::run_short...', 'Buying test\n\n[l...') #5 C:\xampp\htdocs\mybb\inc\plugins\lock.php(157): Shortcodes::parse('Buying test\n\n[l...') #6 C:\xampp\htdocs\mybb\inc\class_plugins.php(86): lock_highlight_end('Buying test\n\n[l...') #7 C:\xampp\htdocs\mybb\inc\class_parser.php(244): PluginSystem->run_hooks(Array, 'Buying test\n\n[l...') #8 C:\xampp\htdocs\mybb\inc\functions_post.php(830): postParser->parse_message('Buying test\n\n[l...', Array) #9 C:\xampp\htdocs\mybb\showthread.php(1121): build_postbit(Array) #10 {main} thrown in C:\xampp\htdocs\mybb\inc\plugins\lock\pcrypt.php on line 209
From a quick look into the code, it seems your setup is missing the the Blowfish Crypt Algorithm. I'm unsure exactly which library this is, so I did a quick search for you and hope it helps you with your issue :
https://stackoverflow.com/questions/8346...on-windows
https://pear.php.net/package/crypt_blowfish
Pages: 1 2 3 4 5 6 7