/templates/**/images/lang_turkish
[ resmi görüntülemek için tıklayın ]
demolar :
viewtopic : http://img99.imageshack.us/img99/142/vi ... emotu0.jpg
profil : http://img136.imageshack.us/img136/3412 ... emotb2.jpg
Kod: Tümünü seç
##############################################################
## MOD Title: Blog in Viewtopic
## MOD Author: Lapinox (mail@lapinox.net) of phpbb-fr.com
## [original mod of reddog (n/a) http://www.reddevboard.com/]
## MOD Description: This mod adds the function Blog on the board,
## as for already present MSN Messenger for example
## MOD Version: 1.0.1
## MOD Compatibility: 2.0.15
##
## Installation Level: Intermediate
## Installation Time: 15 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit: 11
## viewtopic.php
## admin/admin_users.php
## includes/functions_validate.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_main.php
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/profile_view_body.tpl
## templates/subSilver/subSilver.cfg
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/admin/user_edit_body.tpl
##
## Included Files: 1
##
## root/templates/subSilver/images/lang_english/icon_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/
##############################################################
## Before Adding This MOD To Your Forum, You Should
## Back Up All Files Related To This MOD
##############################################################
##############################################################
## Pour des raisons de sécurité, vous êtes prier de consulter régulièrement:
## http://www.phpbb-fr.com/ afin d'obtenir la dernière version de ce MOD.
## Télécharger ce MOD à partir de sites autres que phpBB-fr.com
## peut être dangereux pour votre forum.
## Par conséquent, phpBB-fr.com n'assurera aucun support pour les MODs absents
## de leur base de données, consultable sur:
## http://www.phpbb-fr.com en aucun cas ce mod ne peut ni ne doit se
## trouver ailleurs que sur phpbb-fr.com
##############################################################
## Avant d'ajouter ce MOD à votre forum, il vous est fortement conseillé
## d'effectuer une sauvegarde des éléments que vous allez modifier.
##############################################################
## MOD History :
##
##
## 09-06-2005 - Version 1.0.1
## - Direct Link >> Blog
##
##
## 01-01-2005 - Version 1.0.0
## - 1.0.3 of skype Messenger
## - EasyMOD compliant
##
##############################################################
#
#-----[ SQL ]------------------------------------------------
#
ALTER TABLE `phpbb_users` ADD `user_blog` VARCHAR( 255 ) AFTER `user_msnm` ;
#
#-----[ COPY ]------------------------------------------------
#
copy img/icon_blog.gif to templates/subSilver/images/lang_english/icon_blog.gif
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
$sql = "SELECT u.username, u.user_id,
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, u.user_aim
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, u.user_blog
#
#-----[ FIND ]------------------------------------------------
#
$msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$blog_img = ( $postrow[$i]['user_blog'] ) ? '<a href="' . $postrow[$i]['user_blog'] . '" target="_userwww"><img src="' . $images['icon_blog'] . '" alt="' . $lang['Visit_blog'] . '" title="' . $lang['Visit_blog'] . '" border="0" /></a>' : '';
$blog = ( $postrow[$i]['user_blog'] ) ? '<a href="' . $postrow[$i]['user_blog'] . '" target="_userwww">' . $lang['Visit_blog'] . '</a>' : '';
#
#-----[ FIND ]------------------------------------------------
#
$aim_img = '';
$aim = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$blog_img = '';
$blog = '';
#
#-----[ FIND ]------------------------------------------------
#
'AIM_IMG' => $aim_img,
'AIM' => $aim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'BLOG_IMG' => $blog_img,
'BLOG' => $blog,
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------------
#
$aim = ( !empty($HTTP_POST_VARS['aim']) ) ? trim(strip_tags( $HTTP_POST_VARS['aim'] ) ) : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$blog = ( !empty($HTTP_POST_VARS['blog']) ) ? trim(strip_tags( $HTTP_POST_VARS['blog'] ) ) : '';
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
validate_optional_fields($icq, $aim, $msn,
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, $signature
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, $blog
#
#-----[ FIND ]------------------------------------------------
#
$aim = htmlspecialchars(stripslashes($aim));
#
#-----[ AFTER, ADD ]------------------------------------------
#
$blog = htmlspecialchars(stripslashes($blog));
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "',
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, user_msnm = '" . str_replace("\'", "''", $msn) . "'
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, user_blog = '" . str_replace("\'", "''", $blog) . "'
#
#-----[ FIND ]------------------------------------------------
#
$yim = htmlspecialchars(stripslashes($yim));
#
#-----[ AFTER, ADD ]------------------------------------------
#
$blog= htmlspecialchars(stripslashes($blog));
#
#-----[ FIND ]------------------------------------------------
#
$yim = htmlspecialchars($this_userdata['user_yim']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$blog = htmlspecialchars($this_userdata['user_blog']);
#
#-----[ FIND ]------------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="msn" value="' . str_replace("\"", """, $msn) . '" />';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="blog" value="' . str_replace("\"", """, $blog) . '" />';
#
#-----[ FIND ]------------------------------------------------
#
'AIM' => $aim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'BLOG' => $blog,
#
#-----[ FIND ]------------------------------------------------
#
'L_AIM' => $lang['AIM'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BLOG' => $lang['BLOG'],
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_validate.php
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim,
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, &$sig
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, &$blog
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
$check_var_length = array('aim', 'msnm', 'yim',
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, 'sig'
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, 'blog'
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq',
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, 'yim' => 'yim'
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, 'blog' => 'blog'
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
validate_optional_fields($icq, $aim, $msn, $yim,
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, $signature
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, $blog
#
#-----[ FIND ]------------------------------------------------
#
$aim = stripslashes($aim);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$blog = stripslashes($blog);
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "',
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, user_icq = '" . str_replace("\'", "''", $icq) . "'
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, user_blog = '" . str_replace("\'", "''", str_replace(' ', '+', $blog)) . "'
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate,
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, user_msnm
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, user_blog
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "',
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, '" . str_replace("\'", "''", $msn) . "'
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, '" . str_replace("\'", "''", $blog) . "'
#
#-----[ FIND ]------------------------------------------------
#
'MSN' => $msn,
#
#-----[ AFTER, ADD ]-----------------------------------------
#
'BLOG' => $blog,
#
#-----[ FIND ]------------------------------------------------
#
$yim = stripslashes($yim);
#
#-----[ AFTER, ADD ]-----------------------------------------
#
$blog = stripslashes($blog);
#
#-----[ FIND ]------------------------------------------------
#
$yim = $userdata['user_yim'];
#
#-----[ AFTER, ADD ]-----------------------------------------
#
$blog = $userdata['user_blog'];
#
#-----[ FIND ]------------------------------------------------
#
'AIM' => $aim,
#
#-----[ AFTER, ADD ]-----------------------------------------
#
'BLOG' => $blog,
#
#-----[ FIND ]------------------------------------------------
#
'L_AIM' => $lang['AIM'],
#
#-----[ AFTER, ADD ]-----------------------------------------
#
'L_BLOG' => $lang['BLOG'],
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------------
#
$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
$yim = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg">' . $lang['YIM'] . '</a>' : '';
#
#-----[ AFTER, ADD ]-----------------------------------------
#
$blog_img = ( $profiledata['user_blog'] ) ? '<a href="' . $profiledata['user_blog'] . '" target="_userwww"><img src="' . $images['icon_blog'] . '" alt="' . $lang['Visit_blog'] . '" title="' . $lang['Visit_blog'] . '" border="0" /></a>' : ' ';
$blog = ( $profiledata['user_blog'] ) ? '<a href="' . $temp_url . '" target="_userwww">' . $profiledata['user_blog'] . '</a>' : ' ';
#
#-----[ FIND ]------------------------------------------------
#
'YIM' => $yim,
#
#-----[ AFTER, ADD ]-----------------------------------------
#
'BLOG_IMG' => $blog_img,
'BLOG' => $blog,
#
#-----[ FIND ]------------------------------------------------
#
'L_YAHOO' => $lang['YIM'],
#
#-----[ AFTER, ADD ]-----------------------------------------
#
'L_BLOG' => $lang['BLOG'],
'L_VISIT_BLOG' => $lang['Visit_blog'],
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
$lang['YIM'] = 'Yahoo Messenger';
#
#-----[ AFTER, ADD ]-----------------------------------------
#
$lang['BLOG'] = 'Blog';
$lang['Visit_blog'] = 'Visit poster\'s Blog';
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<td class="row2">
<input type="text" class="post"style="width: 150px" name="yim" size="20" maxlength="255" value="{YIM}" />
</td>
</tr>
#
#-----[ AFTER, ADD ]-----------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_BLOG}:</span></td>
<td class="row2">
<input type="text" class="post"style="width: 200px" name="blog" size="25" maxlength="255" value="{BLOG}" />
</td>
</tr>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_MESSENGER}:</span></td>
<td class="row1" valign="middle"><span class="gen">{MSN}</span></td>
</tr>
#
#-----[ AFTER, ADD ]-----------------------------------------
#
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_BLOG}:</span></td>
<td class="row1" valign="middle"><span class="gen">{BLOG_IMG}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/subSilver.cfg
#
#-----[ FIND ]------------------------------------------------
#
$images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif";
#
#-----[ AFTER, ADD ]-----------------------------------------
#
$images['icon_blog'] = "$current_template_images/{LANG}/icon_blog.gif";
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer
<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG}
#
#-----[ IN-LINE FIND ]----------------------------------------
#
{postrow.MSN_IMG}
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
{postrow.BLOG_IMG}
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<tr>
<td class="row2" colspan="2"><span class="gensmall">{L_PROFILE_INFO_NOTICE}</span></td>
</tr>
#
#-----[ AFTER, ADD ]-----------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_BLOG}</span></td>
<td class="row2">
<input class="post" type="text" name="blog" size="35" maxlength="255" value="{BLOG}" />
</td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM