Thread Rating:
  • 3 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Thank You MyBB System 2.6.x
You got to hook to attachment_start (attachment.php), find whatever is inside the hide tag, then check if the attachment being fetched is found within such content. Ultimately block the attachment if the user has no permission to see it.

I did this in a plugin but couldn't find it for you, but probably a close reference could be the following :
https://github.com/Sama34/OUGC-Custom-Re...p.php#L790
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
(2023-12-07, 11:38 AM)Omar G. Wrote: You got to hook to attachment_start (attachment.php), find whatever is inside the hide tag, then check if the attachment being fetched is found within such content. Ultimately block the attachment if the user has no permission to see it.

I did this in a plugin but couldn't find it for you, but probably a close reference could be the following :
https://github.com/Sama34/OUGC-Custom-Re...p.php#L790

Thank you so much for your suggestion, but it appears that the plugin is a lot more complicated than I thought. I will try to make use of your suggestion and hopefully I can figure it out
Cheers! Smile

Okay,
so it appears that by default, when an attachment is inserted into a post, the attachment field will disappear, but the hide setting of this plugin does the opposite of what it's intended to do
Reply
Hello guys i have the  plugin by @whiteneo , my question with this plugin is why soon as you thank the post the button dessappear, can i modified a line of code anywhere to keep the button there at all times?
Reply
You need to change your setting about delete own thanks to yes.

Otherwise when you had tanked a post you can not thank twice, but you can remove, add thanks with those options, however i make some modifications on the past to make it works better, but i have not shared this yet.

SO just try that option and you must see remove thank button and add thank button depends the current case.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
(2024-10-07, 11:33 PM)Whiteneo Wrote: You need to change your setting about delete own thanks to yes.

Otherwise when you had tanked a post you can not thank twice, but you can remove, add thanks with those options, however i make some modifications on the past to make it works better, but i have not shared this yet.

SO just try that option and you must see remove thank button and add thank button depends the current case.

Yes i can do that, but what i was looking for in this plugin was if i could stick the button there at all times without the button dessappear after i thank for that post, is it possible modify the code anywhere? Thanks for the reply whiteneo
Reply
Yes you can do that just work into js file while jquery works to maje that possible. You may remove the hide attr and maybe make some other changes, because into postbit code you may change other parts to show it always i am not sure of what you need exactly but maybe you can try post rates where is more like social network functionallity.

But the mod whas thinked to work this way to let know where user was thanked and can see the hidden contents.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)