Not Solved Locked Content Plugin H Issue & Questions
#1
Not Solved
First Question:
Does anyone know why "H" shows up on hidden content posts? I am not typing H & it shows on every post that contains [hide][/hide] content. I'm not sure how to remove it.

Second Question:
Is there anyway to change [hide][/hide] to <hide></hide>

Third Question:
Is there anyway to have it automatically show the hidden content when they reply? Currently, they have to refresh the page to view it after replying to the post.


Plugin Used: Lock - Sell content in hide tags for newpoints
https://community.mybb.com/mods.php?action=view&pid=591

Link to the forum thread:
https://goliathnetworks.com/showthread.php?tid=6

Posters View with hidden content unlocked & code: Random letter "H" is showing on the post however I didn't type "H".
http://prntscr.com/sfl70e
http://prntscr.com/sflakt

Members View of hidden content not unlocked: "H" is still showing.
http://prntscr.com/sfl7gi

Members View of hidden content unlocked: "H" is still showing.
http://prntscr.com/sfl7wp
Reply
#2
Not Solved
The H is probably hardcoded somewhere.

Quote:Is there anyway to change [hide][/hide] to <hide></hide>

I don't think so, < and > are parsed differently that brackets ([]).

You can try my version to be able to use [lock] instead of [hide] but I don't offer support (only bug fixes) and I won't be adding new features to it.
https://community.mybb.com/thread-180082...pid1348290

Quote:Is there anyway to have it automatically show the hidden content when they reply? Currently, they have to refresh the page to view it after replying to the post.

It could be possible somehow but not as easy as you might think. For instance you would need to refresh the full message content and not just the tags area. Secondly you would need to figure out if there are hidden tags being displayed to know if there is something to refresh, which is the hardest part.

Anyways, such feature isn't part of the plugin.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#3
Not Solved
(2020-05-12, 09:00 PM)Omar G. Wrote: The H is probably hardcoded somewhere.

Quote:Is there anyway to change [hide][/hide] to <hide></hide>

I don't think so, < and > are parsed differently that brackets ([]).

You can try my version to be able to use [lock] instead of [hide] but I don't offer support (only bug fixes) and I won't be adding new features to it.
https://community.mybb.com/thread-180082...pid1348290

Quote:Is there anyway to have it automatically show the hidden content when they reply? Currently, they have to refresh the page to view it after replying to the post.

It could be possible somehow but not as easy as you might think. For instance you would need to refresh the full message content and not just the tags area. Secondly you would need to figure out if there are hidden tags being displayed to know if there is something to refresh, which is the hardest part.

Anyways, such feature isn't part of the plugin.

Where would it be hard coded though? I'm looking everywhere and I don't see an hard coded "H". It's been like that since I installed the plugin. That's why I showed the code view.
Reply
#4
Not Solved
To be honest I have no idea. I was requested to update the plugin but frankly it has many flaws or I simply don't understand how it was meant to work properly.

Try looking at the source code. Paste everything that is inside the <div class="post_content"> tag here to see if we can figure something out.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#5
Not Solved
(2020-05-12, 10:52 PM)Omar G. Wrote: To be honest I have no idea. I was requested to update the plugin but frankly it has many flaws or I simply don't understand how it was meant to work properly.

Try looking at the source code. Paste everything that is inside the <div class="post_content"> tag here to see if we can figure something out.


Hey sorry to copy you  but I am having the same issue with it showing the letter H
seems to be related to hidden content title
this is the default lock_wrapper

<div class="hidden-content">
  <div class="hidden-content-title"><strong>{$params['title']}</strong></div>
  <div class="hidden-content-body">
    {$return}
  </div>
</div>
Im assuming this is related to {$params['title']}  Not sure where this is edited at. Any idea?

(2021-06-19, 07:40 PM)carpangler Wrote:
(2020-05-12, 10:52 PM)Omar G. Wrote: To be honest I have no idea. I was requested to update the plugin but frankly it has many flaws or I simply don't understand how it was meant to work properly.

Try looking at the source code. Paste everything that is inside the <div class="post_content"> tag here to see if we can figure something out.


Hey sorry to copy you  but I am having the same issue with it showing the letter H
seems to be related to hidden content title
this is the default lock_wrapper

<div class="hidden-content">
  <div class="hidden-content-title"><strong>{$params['title']}</strong></div>
  <div class="hidden-content-body">
    {$return}
  </div>
</div>
Im assuming this is related to {$params['title']}  Not sure where this is edited at. Any idea?

Actually i found something you updated and  installed that and its working now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)