############################################################## ## MOD Title: phpBBlog ## MOD Author: Sko22 < sko22@quellicheilpc.com > (N/A) http://www.quellicheilpc.com/ ## MOD Description: Allows the creation of a Blog inside phpBB for personal sites. ## MOD Version: 1.0.1 ## ## Installation Level: Easy ## Installation Time: 10 Minutes ## Files To Edit: ## viewonline.php ## includes/constants.php ## includes/page_header.php ## admin/index.php ## language/lang_english/lang_main.php ## templates/subSilver/overall_header.tpl ## Included Files: ## blog.php ## blog_comments.php ## templates/subSilver/blog_body.tpl ## templates/subSilver/blog_comments_body.tpl ## templates/subSilver/images/icon_mini_blog.gif ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/ ############################################################## ## Author Notes: phpBBlog allows to an Administrators to have a Blog inside phpBB and to directly ## manage it in the page. It is also possible to eliminate the comments added by the Users. ## The menu of the archives of the Blog is automatically generated ## and it is advisable not to add more than an event a day. ## ## Attention!! Only admins can add a event in the Blog, login first. ## ## I have tested this MOD whit phpBB 2.0.6/7 and MySQL ## ## Future versions can be found at http://www.quellicheilpc.com ## I've set up a support forum for my mods at http://www.quellicheilpc.com/forum/viewtopic.php?t=10612 ## ## This MOD is released under the GPL License. ## Intellectual Property is retained by the MOD Author(s) listed above ## Copyright: ©2004 phpBBlog 1.0.1 - Sko22 ############################################################## ## MOD History: ## ## 2004-03-24 - Version 1.0.1 ## - Changed the field name "comment" to "com" (in phpbb_blog_com table ) to preserve a bug ## in creation of this with phpMyAdmin (Thanks to Paky) ## - Added the name of the administrator that add the event in the blog (Thanks to DarkPepe) ## 2004-03-19 - Version 1.0.0 ## - Initial Release ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ SQL ]------------------------------------------ # # If you don't know how to execute sql queries, then copy # mysql_install.php into your phpbb directory and run it. # (assuming you use mysql) # After process delete it. # # If you don't use mysql, you'll have to edit these queries accordingly # # If you have a different table prefix then change this command accordingly. # I have used the default table prefix! # CREATE TABLE phpbb_blog ( id tinyint(5) NOT NULL auto_increment, user_id mediumint(8) NOT NULL default '0', date int(11) NOT NULL default '0', text text NOT NULL, KEY id (id) ) # #-----[ SQL ]------------------------------------------ # # If you have a different table prefix then change this command accordingly. # I have used the default table prefix! # CREATE TABLE phpbb_blog_com ( id mediumint(8) NOT NULL auto_increment, id_blog tinyint(5) NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', com varchar(255) NOT NULL default '', date int(11) NOT NULL default '0', PRIMARY KEY (id) ) # #-----[ COPY ]------------------------------------------ # copy blog.php to blog.php copy blog_comments.php to blog_comments.php copy templates/subSilver/blog_body.tpl to templates/subSilver/blog_body.tpl copy templates/subSilver/blog_comments_body.tpl to templates/subSilver/blog_comments_body.tpl copy templates/subSilver/images/icon_mini_blog.gif to templates/subSilver/images/icon_mini_blog.gif # #-----[ OPEN ]------------------------------------------ # viewonline.php # #-----[ FIND ]------------------------------------------ # case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "faq.$phpEx"; break; # #-----[ AFTER, ADD ]------------------------------------------ # case PAGE_BLOG: $location = $lang['Viewing_Blog']; $location_url = "blog.$phpEx"; break; # #-----[ OPEN ]------------------------------------------ # includes/constants.php # #-----[ FIND ]------------------------------------------ # define('PAGE_TOPIC_OFFSET', 5000); # #-----[ BEFORE, ADD ]------------------------------------------ # # Check the page number, in this case I have used -23 define('PAGE_BLOG', -23); # #-----[ FIND ]------------------------------------------ # ?> # #-----[ BEFORE, ADD ]------------------------------------------ # define('BLOG_TABLE', $table_prefix.'blog'); define('BLOG_COM_TABLE', $table_prefix.'blog_com'); # #-----[ OPEN ]------------------------------------------ # includes/page_header.php # #-----[ FIND ]------------------------------------------ # 'L_FAQ' => $lang['FAQ'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_BLOG' => $lang['Blog_title'], # #-----[ FIND ]------------------------------------------ # 'U_FAQ' => append_sid('faq.'.$phpEx), # #-----[ AFTER, ADD ]------------------------------------------ # 'U_BLOG' => append_sid('blog.'.$phpEx), # #-----[ OPEN ]------------------------------------------ # admin/index.php # #-----[ FIND ]------------------------------------------ # # around line 429 case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break; # #-----[ AFTER, ADD ]------------------------------------------ # case PAGE_BLOG: $location = $lang['Viewing_Blog']; $location_url = "index.$phpEx?pane=right"; break; # #-----[ FIND ]------------------------------------------ # # around line 525 case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break; # #-----[ AFTER, ADD ]------------------------------------------ # case PAGE_BLOG: $location = $lang['Viewing_Blog']; $location_url = "index.$phpEx?pane=right"; break; # #-----[ OPEN ]------------------------------------------ # language/lang_english/lang_main.php # #-----[ FIND ]------------------------------------------ # // // That's all, Folks! // ------------------------------------------------- # #-----[ BEFORE, ADD ]------------------------------------------ # // // Blog Start // $lang['Blog_title'] = 'Blog'; $lang['Blog_Com_title'] = 'Blog Comments'; $lang['Blog_archives'] = 'Blog archives'; $lang['Blog_Modify'] = 'modify'; $lang['Blog_Delete'] = 'delete'; $lang['Blog_Comments'] = 'comments'; $lang['Blog_Com_Comment'] = 'Comment'; $lang['Blog_Com_Chars_Rem'] = 'characters remaining'; $lang['Blog_not_Authorized'] = 'You are not authorized'; $lang['Blog_Click_return_Blog'] = 'Click %sHere%s to return to the Blog'; $lang['Blog_Click_return_Com'] = 'Click %sHere%s to return to the Blog comments'; $lang['Blog_add_text'] = 'Add text for the Blog'; $lang['Blog_Confirm_delete'] = 'Are you sure you want to delete this?'; $lang['Blog_added'] = 'The event was added in to the Blog'; // // Blog End // # #-----[ OPEN ]------------------------------------------ # templates/subSilver/overall_header.tpl # #-----[ FIND ]------------------------------------------ #  {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  # #-----[ IN-LINE FIND ]------------------------------------------ # # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ #  blog{L_BLOG} # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM