############################################################## ## MOD Title: WP-UNITED Latest WordPress posts on ezPortal page ## MOD Author: Jhong < admin@wp-united.com > (John) www.wp-united.com ## MOD Description: This very easy Mod puts the latest WordPress posts on Smartor's ezPortal page. ## MOD Version: v0.9.2-beta ## ## Installation Level: (Easy) ## Installation Time: 2 Minutes ## Files To Edit: portal.php ## templates/subSilver/portal_body.php ## ## ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## ############################################################## ## Last updated: 5 Feb 2007 ## ## MOD History: Public releases: ## ## v8.9.0 BETA ## -- Released with WP-United v0.8.9.0 ## ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ DIY INSTRUCTIONS ]------------------------------------------ # This mod adds a "Latest blog posts" block to your ezPortal page. The mod requires CURL to work -- libCurl is enabled by default on most shared hosts. On home servers, you will probably need to enable the libCurl package. You can set the number of posts to show by adjusting the line in portal.php . The number defaults to 3. # #-----[ OPEN ]------------------------------------------ # portal.php # #-----[ FIND ]-------------------------------------------- # $lang['Search_new'] = $lang['Search_new'] . " (" . $row['total'] . ")"; } } # #-----[ AFTER, ADD ]------------------------------------- # // // WP-United -- WordPress Integration Mod // Latest blog posts on portal // define ('GET_PORTAL_CONTENT', TRUE); // The following line sets the number of posts to show on the portal page. It can be anything between 1 and 10. It defaults to 3. define ('GET_NUM_POSTS', 3); include($phpbb_root_path . 'wp-united/wpu-latest-posts.' . $phpEx); # #-----[ OPEN ]------------------------------------------ # templates/subSilver/portal_body.tpl # #-----[ FIND ]-------------------------------------------- # # #-----[ AFTER, ADD ]------------------------------------- #
| {LATEST_BLOG_POSTS} |
|
{latest_blog_posts.BLOGPOST_TITLE}, {ARTICLE_BY} {latest_blog_posts.BLOGPOST_AUTHOR} {latest_blog_posts.BLOGPOST_EXCERPT}{WP_CATEGORY}: {latest_blog_posts.BLOGPOST_CAT} | {WP_POSTED_ON}: {latest_blog_posts.BLOGPOST_TIME} |