Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] PHP code for HTML Description
#9
Not Solved
(03-06-2018, 06:39 AM)Noobly Wrote: 1. Will MyBB 2 support open graph etc out of the box (that is why I want this "hook"), I am manually adding the meta tags.
Better to ask it to MyBB's dev

(03-06-2018, 06:39 AM)Noobly Wrote: 2a. This plugin you mentioned, what other behavior does it introduce?
Originally, the purpose of the plugin is for displaying tooltips in forumdisplay.

(03-06-2018, 06:39 AM)Noobly Wrote: 2b. I do not want any modifications to my theme by the plugin, so if I can hook {$thread['postpreview']} without it adding that preview functionality elsewhere it would be perfect for now. (running Modern by some Taiwan guy who is no longer around.)
The plugin itself doesn't modify any template (there is no find_replace_templatesets function run by the plugin).
Since the basic purpose of the plugin is for displaying tooltips in forumdisplay, maybe (depends on your theme) the "description" will be displayed on the page. If you really want to prevent it, you can "disable" line #15 and #16 of the plugin.

(03-06-2018, 06:39 AM)Noobly Wrote: 3. Does this affect performance
Unfortunately, every plugins you add to your forum will affect performance.

(03-06-2018, 06:39 AM)Noobly Wrote: I understand to render {$thread['postpreview']} it would require additional database queries, are those noticeable or should it not have a visible impact on performance?
The plugin creates the preview when the user submit the thread. It is saved in your threads table. So it doesn't require additional database query when displaying it.

Alternatively, if your forum is new, you can install plugin for thread description, so your user will be forced to fill the description manually before submitting the thread. There are some methods for this. But you can search it in the Mods section:
https://community.mybb.com/mods.php?acti...ry=plugins
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply


Messages In This Thread
PHP code for HTML Description - by Noobly - 12-27-2017, 06:10 PM
RE: PHP code for HTML Description - by .m. - 12-28-2017, 02:36 AM
RE: PHP code for HTML Description - by Noobly - 12-28-2017, 02:06 PM
RE: PHP code for HTML Description - by Noobly - 12-30-2017, 12:15 PM
RE: PHP code for HTML Description - by Noobly - 03-05-2018, 06:47 AM
RE: PHP code for HTML Description - by RateU - 03-05-2018, 06:27 PM
RE: PHP code for HTML Description - by Noobly - 03-06-2018, 06:39 AM
RE: PHP code for HTML Description - by RateU - 03-06-2018, 01:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)