Moderator: Integra Moderator
<php>sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql); $recent_blogs .= "No Blogs"; } else { $recent_entries = array(); while ( $row = $db->sql_fetchrow($result) ) { $recent_entries[] = $row; } foreach ($recent_entries as $current) { $recent_blogs .= "»" . "<a><b>"; // Entry Link $recent_blogs .= $current['entry_subject']; // Subject $recent_blogs .= "</b></a><br>n "; // End and html formatting $recent_blogs .= "by <a>"; // User Link $recent_blogs .= $current['username'] . "</a> on "; // User Name $recent_blogs .= date("D M j, Y g:i a",$current['entry_time']); // Post Date $recent_blogs .= "</b></a><br><br>n "; // End and html formatting } if($portal_config['md_blogs_style']){ $style_row = 'scroll'; }else { $style_row = 'static'; } $template->assign_block_vars($style_row,""); $template->assign_vars(array( 'RECENT_BLOGS' => $recent_blogs, 'YOUR_BLOG' => $userdata['user_weblog'] ) ); } } } imp_blogs_block_func(); ?>
INSERT INTO `phpbb_portal_config` VALUES ( '', 'md_num_blogs', '10' );INSERT INTO `phpbb_portal_config` VALUES ( '', 'md_blogs_style', '0' );
<table><tr><td><span><BEGIN><marquee><BEGIN>{scroll.recent_blog_row.RECENT_BLOGS}<END></marquee><END><BEGIN><BEGIN>{static.recent_blog_row.RECENT_BLOGS}<END><END></span></td></tr><tr> <td> <hr><br><a>All Blogs</a> | <a>Your Blog</a> </td> </tr> </table>
<?php/*************************************************************************** * blocks_imp_blogs.cfg * ------------------- * copyright ]http://www.dragonsys.org[/url] * email : [url=http://www.dragonsys.org]http://www.dragonsys.org[/url] * email : <a>webmaster@dragonsys.org</a> * * note: removing the original copyright is illegal even you have modified * the code. Just append yours if you have modified it. ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); } if(!function_exists(imp_blogs_block_func)) { function imp_blogs_block_func() { global $template, $userdata, $phpbb_root_path, $phpEx, $db, $board_config, $lang, $portal_config, $_GET; // // Pugio Edit For Recent Blogs Support // // Get recent entries or print out an error $sql = "SELECT entry_subject, entry_id, entry_poster_id, entry_time, username, user_id FROM " . WEBLOG_ENTRIES_TABLE . ", " . USERS_TABLE . " WHERE " . USERS_TABLE . ".user_id" . " = " . WEBLOG_ENTRIES_TABLE . ".entry_poster_id ORDER BY entry_time DESC LIMIT " . $portal_config['md_num_blogs']; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql); $recent_blogs .= "No Blogs"; } else { $recent_entries = array(); while ( $row = $db->sql_fetchrow($result) ) { $recent_entries[] = $row; } foreach ($recent_entries as $current) { $recent_blogs .= "»" . "<a><b>"; // Entry Link $recent_blogs .= $current['entry_subject']; // Subject $recent_blogs .= "</b></a><br>n "; // End and html formatting $recent_blogs .= "by <a>"; // User Link $recent_blogs .= $current['username'] . "</a> on "; // User Name $recent_blogs .= date("D M j, Y g:i a",$current['entry_time']); // Post Date $recent_blogs .= "</b></a><br><br>n "; // End and html formatting } if($portal_config['md_blogs_style']){ $style_row = 'scroll'; }else { $style_row = 'static'; } $template->assign_block_vars($style_row,""); $template->assign_block_vars($style_row . '.recent_blog_row', array( 'RECENT_BLOGS' => $recent_blogs ) ); $template->assign_vars(array( 'RECENT_BLOGS' => $recent_blogs, 'YOUR_BLOG' => $userdata['user_weblog'] ) ); } } } imp_blogs_block_func(); ?>
Parse error]
Any help would be appreciated![/quote]
Please double check your file edits of the admin/admin_groups.php file
Here is the code for just that file:
[code]# #-----[ OPEN ]------------------------------------------ # admin/admin_groups.php # #-----[ FIND ]------------------------------------------ # $group_info = array ( 'group_name' => '', 'group_description' => '', 'group_moderator' => '', # #-----[ AFTER, ADD ]------------------------------------------ # 'group_allow_weblogs' => 0, # #-----[ FIND ]------------------------------------------ # 'U_SEARCH_USER' => append_sid("../search.$phpEx?mode=searchuser"), # #-----[ AFTER, ADD ]------------------------------------------ # 'L_WEBLOG_GROUP' => $lang['Group_allow_weblogs'], 'L_NO' => $lang['No'], 'S_GROUP_ALLOW_WEBLOGS_YES' => ( $group_info['group_allow_weblogs'] ) ? ' checked="checked"' ] ) ? ' checked="checked"' : '', # #-----[ FIND ]------------------------------------------ # $group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : ''; # #-----[ AFTER, ADD ]------------------------------------------ # $group_allow_weblogs = ( isset($HTTP_POST_VARS['group_allow_weblogs']) ) ? intval($HTTP_POST_VARS['group_allow_weblogs']) : 0; # #-----[ FIND ]------------------------------------------ # $sql = "UPDATE " . GROUPS_TABLE . " SET group_type = $group_type, group_name = '" . str_replace("'", "''", $group_name) . "', group_description = '" . str_replace("'", "''", $group_description) . "', group_moderator = $group_moderator # #-----[ IN-LINE FIND ]------------------------------------------ # , group_moderator = $group_moderator # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # , group_allow_weblogs = $group_allow_weblogs # #-----[ FIND ]------------------------------------------ # $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user) # #-----[ IN-LINE FIND ]------------------------------------------ # , group_single_user # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # , group_allow_weblogs # #-----[ FIND ]------------------------------------------ # VALUES ($group_type, '" . str_replace("'", "''", $group_name) . "', '" . str_replace("'", "''", $group_description) . "', $group_moderator, '0')"; # #-----[ IN-LINE FIND ]------------------------------------------ # $group_count_enable', '0' # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # , $group_allow_weblogs
"napukjon";p="3024" wrote:Yeah, i went over the file, and everything seems to be in the right place....
Registered users: Google [Bot], Vendethiel