MyBB Community Forums

Full Version: WordPress Blog Posts on Forum Portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
WordPress Posts on Forum Portal
Get and display the latest WordPress Blog Post on your forum. Also works with most RSS feeds.

[Image: cover_preview_121762_1580748947_a582ec68...e1356b.png]
click image for larger view

If you are a WordPress blog user, this modification makes it possible to dynamically display your blog posts on your MyBB forum portal.  This plugin adds a section (category matching) on the portal page to display the items within. Note: this plugin will also work with most RSS feeds as well!  

After activating the plugin, go to the Configuration > Settings page.  At the bottom of this page, Plugin Settings, look for "WordPress Blog Posts on Portal".
click image for larger view

There are three settings available.

1. Turn plugin on/off
2. Set the URL (address) of your WordPress Blog Feed (RSS Feed)
3. Set number of posts to be displayed

If the post has a featured image then it will be shown next to the post title.  If there is no featured image, the plugin will look in the description for the first image to display it next to the post title.  If all else fails, a "new posts" image will be displayed next to the post title.


Plugin Modification Page: https://community.mybb.com/mods.php?acti...w&pid=1335



Looking to display WordPress Blog Posts on your Forum Index?  Visit https://community.mybb.com/thread-225479.html for this plugin release!
As a suggestion I would suggest to look into caching the entries instead of fetching them on every page load as well as to jump from hard coded HTML to templates on both plugins.

Thank you for your contribution.
Thanks for your contribution, pretty nice plugin. I agree with Omar, the plugin will add unnecessary query on page load in the current condition.
Hi, Pros, I have a problem, I uploaded this plug in but on activation sl error appears, please help
I experienced issues with this as well. I patched it up for my board (useful plugin BTW), wanted to share the fixes. I won't attach the fixed file here because I won't share edited versions of the author's work, but the following edits should get it working:

Remove the full line at line 36:
"gid" => "",

Near line 46, remove:
"sid" => "",
Leave this line otherwise the same, and only remove the part above. Make sure to remove the comma as well.

Near line 50, remove the following:
"sid" => "",
Leave this line otherwise unchanged, remove only what's above (including the comma)

Near line 48, remove the following from the line:
"sid" => "", 
Remove only the part above (including the comma), leaving all else intact

Near line 61, remove the following line:
"tid" => "",
Remove only this line (including the comma), leaving everything nearby the same.

On line 104, replace:
$portalblogurl = $mybb->settings['blogpostsurl'];


With:

$portalblogurl = $mybb->settings['portalblogpostsurl'];

This should get it working! Tested on my board and it works as it should. Make sure that on all edits, the trailing comma is removed as well. If you leave the comma, there will be PHP errors.

The SQL errors are a result of MySQL running in strict mode. Not all forums will have this issue (most probably won't), but some server setups are incompatible. Hope this is helpful for those running MySQL in strict mode. Smile

Thanks to the author for this plugin.
(2020-04-20, 04:58 AM)Darth Apple Wrote: [ -> ]I experienced issues with this as well. I patched it up for my board (useful plugin BTW), wanted to share the fixes. I won't attach the fixed file here because I won't share edited versions of the author's work, but the following edits should get it working:

Remove the full line at line 36:
"gid" => "",

Near line 46, remove:
"sid" => "",
Leave this line otherwise the same, and only remove the part above. Make sure to remove the comma as well.

Near line 50, remove the following:
"sid" => "",
Leave this line otherwise unchanged, remove only what's above (including the comma)

Near line 48, remove the following from the line:
"sid" => "", 
Remove only the part above (including the comma), leaving all else intact

Near line 61, remove the following line:
"tid" => "",
Remove only this line (including the comma), leaving everything nearby the same.

On line 104, replace:
$portalblogurl = $mybb->settings['blogpostsurl'];


With:

$portalblogurl = $mybb->settings['portalblogpostsurl'];

This should get it working! Tested on my board and it works as it should. Make sure that on all edits, the trailing comma is removed as well. If you leave the comma, there will be PHP errors.

The SQL errors are a result of MySQL running in strict mode. Not all forums will have this issue (most probably won't), but some server setups are incompatible. Hope this is helpful for those running MySQL in strict mode. Smile

Thanks to the author for this plugin.

Good work Darth, maybe you can ask OP to submit the edits to the MyBB Extend or Collaborate on Extend?

Regards
WallBB