[分享] [mod] The Blog Mod 0.2.4b for plus 1.53

phpBB Plus Support
本區是討論關於 phpBB 2 plus 使用上的問題討論!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
hanson.hung
星球公民
星球公民
文章: 48
註冊時間: 2006-05-07 16:15

[分享] [mod] The Blog Mod 0.2.4b for plus 1.53

文章 hanson.hung »

##############################################################
## MOD Title: The Blog Mod for plus 1.53 with 20060801 security update
## MOD Author: hardworking < Support [at] TheBlogMod.com > (n/a) http://www.TheBlogMod.com
## MOD Author: aboyd < n/a > (Tony Boyd) http://www.outshine.com/
## MOD Author: hyperion < n/a > (n/a) n/a
## MOD Description: Adds an entire weblog system to a phpBB forum. Allows the
## members of the forum to create a weblog, complete with entry permissions,
## style customization, weblog templates, a friends system and the ability
## for weblog owners to block users from their weblog.
## MOD Version: 0.2.4b for plus 1.53 with 20060801 security update
##
## Installation Level: (Intermediate)
## Installation Time: 20 Minutes
## Files To Edit: index.php,
## viewtopic.php,
## admin/admin_groups.php,
## includes/constants.php,
## includes/page_header.php,
## includes/usercp_viewprofile.php,
## language/lang_english/lang_admin.php,
## templates/fisubsilversh/index_body.tpl,
## templates/fisubsilversh/overall_header.tpl,
## templates/fisubsilversh/profile_view_body.tpl,
## templates/fisubsilversh/fisubsilversh.cfg,
## templates/fisubsilversh/viewtopic_body.tpl,
## templates/fisubsilversh/admin/group_edit_body.tpl
## Included Files: included_files/*.*
## 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/
##############################################################
## Author Notes:
## - Advanced Blogs are fully customizable weblogs. They allow the owner to be able to modify the HTML of their
## main weblog page. Administrators must explicitly give rights to users in order to allow them to have an Avanced Blog.
## Only allow people you TRULY trust to have an Advanced Weblog, since there is potential for attacks against other users.
##
## -----------------------------------------------
##
## IMPORTANT
## - If you have CyberAlien's eXtreme Styles Mod (any version), be extremely cautious as to who you grant permissions to (for
## creating an advanced blog). This is because the eXtreme Styles Mod allows php execution within the template, which could
## lead to some serious breaches in security. On the plus side, if your users behave, php code that is included could make the
## weblogs extremely useful!
##
## -----------------------------------------------
##
## - Don't forget to install the weblog templates! You can't create a weblog without one, so you'll need to
## download weblog template packages, unzip them to the weblogs/templates/ folder. (This is similar to phpBB style system).
## Lastly, go to the Administration Panel and go to Weblog Templates, then add the template there.
##
##############################################################
## MOD History:
##
## 2004-10-16 - Version 0.1.0
## - First beta release. Contained pretty much all of the base features needed.
##
## 2005-01-23 - Version 0.2.0
## - Revamped weblog fetching. Now it gets the weblogs-by-latest-entries perfectly
## - Trackbacks deleteable
## - Post/pre dated entries added
## - Numerous small changes and improvements, as well as bugfixes.
##
## 2005-04-10 - Version 0.2.1
## - Two new template files for message and confirmation pages
## - Added small messages shown when users get Advanced mode privileges
## - Added small message telling how much a template can be changed in Easy mode.
## - Added ability to access weblogs by username (weblog.php?u=(username))
## - Added [cut] feature to allow weblog owners to shorten the entry on the main page but allow it to be viewed in full.
## - Added icons to replace the "[ Edit ]" and "[ Delete ]" on the main weblog page.
## - Added "Users browsing this blog" feature
## - Changed Trackbacks and Entry Viewing so that replies and trackbacks are interweaved
## - Bug Fixes:
## Fixed "hidden" emails not being hidden
## Fixed timezone bug
## Fixed special characters not properly being displayed (due to usage of iso-8859-1 instead of utf-8)
## Fixed calendar defaulting to January
## Added weblog censoring to places where it was missing
## Fixed weblog censoring that removed currently text
## Fixed slashes being added to quotes when previewing
## Fixed avatars not being shown on the friends page.
## Fixed RSS Link
## Fixed "Deleted Weblogs being assigned to new users" bug
##
## 2005-05-06 - Version 0.2.2
## - Improved SQL in several places, combining some queries together
## - Improved file handling
## - Numerous small tweaks
## - Administrators now have automatic auth level equal to friends, so they can see ALL non-personal entries
## - Fixed entry reply and trackback "interweaving"
## - Bug Fixes
## Fixed timezone bug (again, hopefully last time)
## Fixed "Users browsing this blog" feature and modified it so it will work with other dbms
## Fixed Admins not being able to edit entries (It was using "!=" instead of "==" !)
## Updated to use the same fixes from phpBB 2.0.14 (since parts of the mod were copied from phpBB)
## Fixed some possible SQL Injection vulnerabilities in friends and blocked user pages
##
## 2005-05-18 - Version 0.2.3
## - Fixed usernames not being showed for latest post link when viewing all entries
## - Fixed Contributors not being able to edit/add a new entry
## - Contributors now get same access as Admins - all entries viewable and editable except for weblog owner only entries.
## - Fixed friends and blocked pages not being able to block or add users (while letting Admin be able to do so)
## - Changed orangeBlue faceplate so that it also uses BlogCP settings
## - Fixed "Friends Only" authentication problem introduced in 0.2.2
## - Added a new style "Infinity". Mozilla/Firefox users get a special treat :)
##
## 2005-12-02 - version 0.2.3c
## - Upgrade support to phpbb 2.0.18 released
## - Fixed to reduce sql query and loading of weblogs.php Submitted by Siava
## - Fixed bugs installation when using easymod
## - Update Installation guide.
##
## 2006-03-01 - version 0.2.4
## - Currently testing SEO and short URL ... pending released!
## - Category Addon courtesy by Willow
## - Fixed some dead links
##
## 2006-04-09 - version 0.2.4
## - Added weblogs_news.php
## - updated database table for new install
## - Fixed minor bugs
##
## 2006-04-10 - version 0.2.4a
## - Unofficial version by aboyd
## - No longer overwrites your existing files with unmodded 2.0.20 files!
## - Backup files removed (never should have been included, they're unnecessary)
## - "WS_FTP.log" files removed (never should have been included, they're unnecessary)
## - Hardworking's personal files removed (never should have been included, they're unnecessary)
## - File organization cleaned up (prep work for EasyMod compliance)
## - Removed .htaccess files (Hardworking wrote: "it is not active yet you may delete this file.")
## - Removed text referring to a db_update.php file, as such a file does not exist
## - Removed some redundant instructions in this file
## - Fixed SQL error for the entry_last_post_userid field
## - Fixed SQL error for the phpbb_weblog_entries table
## - Some instructions required you to find text that does not appear in phpBB 2.0.20. Fixed.
## - Added DIY INSTRUCTIONS section for the file permissions
## - The file weblog_header.htm broke all the navigation links & avatars in each blog. Fixed.
## - The simpleGray style is gone, but was still set in the database. Fixed.
## - weblog_entry_body.htm had broken images. Fixed.
## - weblog_body.htm, weblog_s_body.htm, weblog_allentries_body.htm had broken images. Fixed.
## - weblog.php needed POST_ENTRY_IMG. Fixed.
## - Revised the COPY section of this file for EasyMod compliance
## - Revised header section of this file for EasyMod compliance
## - EasyMod compliant
##
## 2006-04-10 - version 0.2.4b
## - Unofficial version by aboyd
## - When viewing an entry, comments might be squished in Firefox. Fixed.
## - When viewing all entries, the table might be squished in Firefox. Fixed.
## - Added comment to DIY INSTRUCTIONS for those having problems with image uploads.
## - Since phpBB 2.0.20 has known bugs, I tested this on 2.0.19. Certified to work!
## - On main blog page, the right sidebar disappeared if you had a long entry title. Fixed.
## - Trackbacks were being lost due to an SQL error. Fixed.
## - Trackbacks wouldn't display if there were also replies. Fixed, thanks to Willow.
## - Comment popup had a doubled masthead & broken div. Fixed.
## - Tiny change so this would install on forums that use the reputation mod.
## - Made smilies have absolute URLs in RSS feed. Might result in fewer broken images.
## - Added db_update.php, courtesy of Dragonsys. Added explanation to the SQL section.
## - The default for "Blog Accessibility" wasn't being honored during blog setup. Fixed.
## - The default for "Reply Privileges" wasn't being honored during blog setup. Fixed.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#-----[ COPY ]-------------------------------------
#
Copy phpbb_root_path/*.* to /*.*
#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
Ensure that the following have the appropriate permissions:
weblogs/ - 777
weblogs/upload/ - 755
weblogs/templates/ - 755
weblogs/templates/(any template folder) - 755
any .htm and .cfg file that comes in the zip file - 755
all else - 644

(note from aboyd: I was unable to upload images until I changed weblogs/upload to be 777, but try 755 first, it's more secure)
#
#-----[ SQL ]-------------------------------------
# Run this file once as an administrator and then delete it immediately
#
the_blog_db_update.php
#
#-----[ OPEN ]------------------------------------------
# OPTIONAL - Adds Recent Weblogs to your index.php page (Make sure to do the template changes as well)
#
index.php
#
#-----[ FIND ]------------------------------------------
#
//
// Start output of page
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// Begin - "The Blog Mod" changes
//
include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_weblog.'.$phpEx);

//
// Get Weblog Data
//
$weblog_data = fetch_visible_weblogs ();

for ($i = 0; $i < count($weblog_data) && $i < 10; $i++)
{
if ( !empty($recent_weblogs) )
{
$recent_weblogs .= ', <a href="' . append_sid ("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data[$i]['weblog_id']) . '"';
}
else
{
$recent_weblogs = '<a href="' . append_sid ("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data[$i]['weblog_id']) . '"';
}

if ( $weblog_data[$i]['user_level'] == ADMIN )
{
$recent_weblogs .= ' style="color:#' . $theme['fontcolor3'] . '">';
}
else if ( $weblog_data[$i]['user_level'] == MOD )
{
$recent_weblogs .= ' style="color:#' . $theme['fontcolor2'] . '">';
}
else
{
$recent_weblogs .= '>';
}

if ( $weblog_config['index_list_by_username'] )
{
$recent_weblogs .= $weblog_data[$i]['username'] . '</a>';
}
else
{
$recent_weblogs .= $weblog_data[$i]['weblog_name'] . '</a>';
}
}
//
// End - "The Blog Mod" changes
//
#
#-----[ FIND ]------------------------------------------
#
'NEWEST_USER' => sprintf($lang['Newest_user_plus'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
// The Blog Entry by support [at] TheBlogMod.com
'MOST_RECENT_WEBLOGS' => sprintf( (( $weblog_config['index_list_by_username'] ) ? $lang['Most_recent_weblogs_user'] : $lang['Most_recent_weblogs']) , $recent_weblogs),
#
#
#-----[ FIND ]------------------------------------------
#
'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
// The Blog Entry by support [at] TheBlogMod.com
'MOST_RECENT_WEBLOGS' => sprintf( (( $weblog_config['index_list_by_username'] ) ? $lang['Most_recent_weblogs_user'] : $lang['Most_recent_weblogs']) , $recent_weblogs),
#
#-----[ OPEN ]------------------------------------------
# OPTIONAL - places a "Blog" button in viewtopic.php, next to their AIM, MSN, etc. icons (Make sure to do the template changes as well)
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
# Some mods replace "u.username, u.user_id, u.user_posts, u.user_from," with u.*.
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_absence, u.user_absence_mode, u.user_id, u.user_posts, u.user_from, u.user_from_flag, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_warnings, u.user_level, u.user_allow_viewonline, u.user_session_time, u.user_birthday, u.user_next_birthday_greeting, u.user_gender".$profile_data_sql.", p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_posts, u.user_from,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
u.user_weblog,
#
#-----[ FIND ]------------------------------------------
#
$yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$weblog_img = ( $postrow[$i]['user_weblog'] ) ? '<a href="' . append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=".$postrow[$i]['user_weblog']) . '"><img src="' . $images['icon_weblog'] . '" alt="' . $lang['Weblog'] . '" title="' . $lang['Weblog'] . '" border="0" /></a>' : '';
$weblog = ( $postrow[$i]['user_weblog'] ) ? '<a href="' . append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=".$postrow[$i]['user_weblog']) . '">' . $lang['Weblog'] . '</a>' : '';
#
#-----[ FIND ]------------------------------------------
#
$yim_img = '';
$yim = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$weblog_img = '';
$weblog = '';
#
#-----[ FIND ]------------------------------------------
#
'YIM_IMG' => $yim_img,
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'WEBLOG_IMG' => $weblog_img,
'WEBLOG' => $weblog,
#
#-----[ OPEN ]------------------------------------------
# REQUIRED - Adds the option to allow/disallow a group to be able to create a blog
#
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"' : '',
'S_GROUP_ALLOW_WEBLOGS_NO' => ( !$group_info['group_allow_weblogs'] ) ? ' checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
$group_moderator = isset($_POST['username']) ? $_POST['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_moderator, '0'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $group_allow_weblogs
#
#-----[ OPEN ]------------------------------------------
# REQUIRED - Used throughout the mod. It WILL NOT work if you don't do these changes!
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('POST_POST_URL', 'p');
define('POST_GROUPS_URL', 'g');
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('POST_WEBLOG_URL', 'w');
define('POST_ENTRY_URL', 'e');
define('POST_REPLY_URL', 'r');
define('POST_TRACKBACK_URL', 't');
#
#-----[ FIND ]------------------------------------------
#
define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('WEBLOG_BLOCKED_TABLE', $table_prefix.'weblog_blocked');
define('WEBLOG_CONFIG_TABLE', $table_prefix.'weblog_config');
define('WEBLOG_ACTIONS_TABLE', $table_prefix.'weblog_actions');
define('WEBLOG_ENTRIES_TABLE', $table_prefix.'weblog_entries');
define('WEBLOG_FRIENDS_TABLE', $table_prefix.'weblog_friends');
define('WEBLOG_MOODS_TABLE', $table_prefix.'weblog_moods');
define('WEBLOG_MOOD_SETS_TABLE', $table_prefix.'weblog_mood_sets');
define('WEBLOG_CONTRIBUTORS_TABLE', $table_prefix.'weblog_contributors');
define('WEBLOG_REPLIES_TABLE', $table_prefix.'weblog_replies');
define('WEBLOG_SHOUTBOX_TABLE', $table_prefix.'weblog_shoutbox');
define('WEBLOG_TEMPLATES_TABLE', $table_prefix.'weblog_templates');
define('WEBLOG_TRACKBACKS_TABLE', $table_prefix.'weblog_trackbacks');
define('WEBLOGS_TABLE', $table_prefix.'weblogs');
#
#-----[ OPEN ]------------------------------------------
# REQUIRED
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// include the weblog lang file
$use_lang = ( !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang'];
include($phpbb_root_path . 'language/lang_' . $use_lang . '/lang_weblog_main.' . $phpEx);
#
#-----[ FIND ]------------------------------------------
#
'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_WEBLOGS' => $lang['Weblogs'],
'L_WEBLOG_CONFIG' => $lang['Weblog_CP'],
'L_MYWEBLOG' => $lang['Weblog_MyWeblog'],
'L_WEBLOGS_NEWS' => $lang['Weblogs_news'],
'U_WEBLOGS' => append_sid("weblogs.$phpEx"),
'U_MYWEBLOG' => append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $userdata['user_weblog']),
'U_WEBLOG_CONFIG' => append_sid("weblog_config.$phpEx"),
'U_WEBLOGS_NEWS' => append_sid("weblogs_news.$phpEx"),
#
#-----[ OPEN ]------------------------------------------
# OPTIONAL - Puts a link to a user's blog in the profile (Make sure to do the template changes as well)
#If you have the Profile Control Panel (PCP) mod, you won't be able to complete this portion of the instructions
# Move on to the next file if you have the PCP mod installed.
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
//
// Generate page
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $profiledata['user_weblog'] )
{
$sql = "SELECT weblog_name FROM " . WEBLOGS_TABLE . " WHERE weblog_id = " . $profiledata['user_weblog'];
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't obtain weblogs information.", "", __LINE__, __FILE__, $sql);
}

if( $row = $db->sql_fetchrow($result) )
{
$weblog = '<a href="' . append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $profiledata['user_weblog']) . '">' . $row['weblog_name'] . '</a>';
}
}
#
#-----[ FIND ]------------------------------------------
#
'YIM_IMG' => $yim_img,
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'WEBLOG' => $weblog,
'L_WEBLOG' => $lang['Weblog'],
#
#-----[ OPEN ]------------------------------------------
# REQUIRED
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Blog_admin'] = 'Weblog 管理';
$lang['Action_choices'] = '動作選擇';
$lang['Mood_choices'] = '心情選擇';
$lang['Templates'] = 'blog風格';
$lang['Weblog_tools'] = '工具 & 管理';
$lang['Group_allow_weblogs'] = '允許群組擁有WebBlog';
#
#-----[ OPEN ]------------------------------------------
# OPTIONAL - Part 2 of the procedure for adding Recent Weblogs to the index.php
#
templates/fisubsilversh/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
rowspan="5"
#
#-----[ REPLACE WITH ]------------------------------------------
#
rowspan="7"
#
#-----[ FIND ]------------------------------------------
#
{LOGGED_IN_USER_LIST}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1" align="left"><span class="gensmall">{MOST_RECENT_WEBLOGS}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
# OPTIONAL - Part 2 of the procedure for adding Recent Weblogs to the index.php
#
templates/fisubsilversh/index_body_plus.tpl
#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="nav"><a href="{U_INDEX}">{L_INDEX}</a></td>
</tr>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" width="100%" height="22"><span class="cattitle"><a href="weblogs.php" class="cattitle">最熱門網誌</a></span></td>
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{MOST_RECENT_WEBLOGS}</span></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<br />
#
#-----[ OPEN ]------------------------------------------
# REQUIRED - Adds links to the top of your forum for accessing the Blogs
#
templates/fisubsilversh/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
<a href="{U_WEBLOGS}" class="mainmenu"><img src="templates/fisubsilversh/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{L_WEBLOGS}" hspace="3" />{L_WEBLOGS}</a>&nbsp; &nbsp;
<!-- BEGIN switch_user_logged_in -->
<a href="{U_WEBLOG_CONFIG}" class="mainmenu"><img src="templates/fisubsilversh/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_WEBLOG_CONFIG}" hspace="3" />{L_WEBLOG_CONFIG}</a>&nbsp; &nbsp;
<a href="{U_MYWEBLOG}" class="mainmenu"><img src="templates/fisubsilversh/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MYWEBLOG}" hspace="3" />{L_MYWEBLOG}</a>&nbsp; &nbsp;
<!-- END switch_user_logged_in -->
<a href="{U_WEBLOGS_NEWS}" class="mainmenu"><img src="templates/fisubsilversh/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MYWEBLOG}" hspace="3" />{L_WEBLOGS_NEWS}</a>
</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
# OPTIONAL - Adds a link to a user's blog
#
templates/fisubsilversh/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td align="right" valign="top" nowrap="nowrap" class="explaintitle">{L_INTERESTS}:</td>
<td>{INTERESTS}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_WEBLOG}:</span></td>
<td> <b><span class="gen">{WEBLOG}</span></b></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
# OPTIONAL - Required for the image in viewtopic.php to be shown
#
templates/fisubsilversh/fisubsilversh.cfg
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$images['icon_weblog'] = "$current_template_images/{LANG}/icon_weblog.gif";
#
#-----[ OPEN ]------------------------------------------
#
templates/fisubsilversh/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td valign="bottom" nowrap="nowrap" class="{postrow.ROW_CLASS}">{postrow.POSTER_ONLINE}{postrow.GALLERY_IMG}{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}</td>#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.EMAIL_IMG}
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
{postrow.WEBLOG_IMG}
#
#-----[ OPEN ]------------------------------------------
# REQUIRED - Adds the ability to allow/disallow groups the ability to have blogs
#
templates/fisubsilversh/admin/group_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{L_GROUP_HIDDEN}</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1" width="38%"><span class="gen">{L_WEBLOG_GROUP}:</span></td>
<td class="row2" width="62%">
<input type="radio" name="group_allow_weblogs" value="1" {S_GROUP_ALLOW_WEBLOGS_YES} /> {L_YES} &nbsp;&nbsp;<input type="radio" name="group_allow_weblogs" value="0" {S_GROUP_ALLOW_WEBLOGS_NO} /> {L_NO}</td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

檔案下載處:請點我下載
傳說中的ET
星球公民
星球公民
文章: 61
註冊時間: 2003-09-28 14:04
來自: 宇宙
聯繫:

文章 傳說中的ET »

非常感謝hanson.hung大提供這個Mod for 1.53
我最近發現有這個Blog Mod,還在想說能不能跟Plus 1.53相容
好在看到這個說明
真是非常感謝! :-D

目前正在測試中...
上方進入Blog的連結怪怪的(在Firefox底下顯示有問題)
不過沒什麼大礙,我想我有辦法自己試著修復 :-P

另外想請問一下,這是您自己做的嗎?如果不是,原始作者跟網站是?
傳說中的ET=傳說中的傳說
hanson.hung
星球公民
星球公民
文章: 48
註冊時間: 2006-05-07 16:15

文章 hanson.hung »

Hello 傳說中的ET,
請參閱:
##############################################################
## MOD Title: The Blog Mod for plus 1.53 with 20060801 security update
## MOD Author: hardworking < Support [at] TheBlogMod.com > (n/a) http://www.TheBlogMod.com
## MOD Author: aboyd < n/a > (Tony Boyd) http://www.outshine.com/

及參考
[外掛] The Blog Mod (網誌) (Update 0.2.4b)
主題已鎖定

回到「phpBB 2 plus 綜合討論」