[MOD] Blog in viewtopic 1.0.1 / Profilde Blog Girdisi

[url=http://www.phpbbturkey.com/mods.html:34cnv4ga]phpBB 2.0.x MOD Veritabanımızda[/url:34cnv4ga] yayınlanan ve tarafınızca eklenen tüm yeni phpBB 2.0.x sürümleri için MODların duyuruları buradan yapılmaktadır. MODlar hakkında ihtiyacınız olan desteği lütfen [b:34cnv4ga]2.0.x MOD Destek[/b:34cnv4ga] forumuna başlık açarak sorunuz.
Kilitli
Kullanıcı avatarı
Mirach
Destek Ekibi Lideri
Destek Ekibi Lideri
Mesajlar: 1664
Kayıt: 27.03.2006, 01:06
Konum: İstanbul

[MOD] Blog in viewtopic 1.0.1 / Profilde Blog Girdisi

Mesaj gönderen Mirach »

Açıklama : Profilinizde blogunuzu belirtmeye ve kullanıcıların blogunuza ulaşmanızı sağlayan bir mod .. demoları inceleyebilirsiniz..

/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>' : '&nbsp;';
$blog = ( $profiledata['user_blog'] ) ? '<a href="' . $temp_url . '" target="_userwww">' . $profiledata['user_blog'] . '</a>' : '&nbsp;';

#
#-----[ 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
Profilinde phpBB forumunun adresini girmemiş üyelere ve kurallara aykırı şekilde açılmış başlıklara destek verilmez.
Resim Resim Resim
Kullanıcı avatarı
Mirach
Destek Ekibi Lideri
Destek Ekibi Lideri
Mesajlar: 1664
Kayıt: 27.03.2006, 01:06
Konum: İstanbul

Mesaj gönderen Mirach »

memberlist.php ' de görüntülenmesini isterseniz ..

demo :
memberlist : http://img136.imageshack.us/img136/7149 ... emohe3.jpg

Kod: Tümünü seç

############################################################## 
## MOD Title:		Add-on Blog in Memberlist
## MOD Author:		Lapinox (mail@lapinox.net) of phpbb-fr.com
##                      [original add-on of reddog (n/a) http://www.reddevboard.com/]
## MOD Description:	This add-on adds the profile Blog of
##			the users in the memberlist. Require the
##			installation of the mod Blog
## MOD Version:		1.0.1
## MOD Compatibility:	2.0.15
## 
## Installation Level:	easy
## Installation Time:	3 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:	2
##	memberlist.php
##	templates/subSilver/memberlist_body.tpl
## Included Files:	(n/a)
############################################################## 
## 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: (n/a)
############################################################## 
## Before Adding This MOD To Your Forum, You Should
## Back Up All Files Related To This MOD 
##############################################################
## MOD History :
##
## 2004-10-01 - Version 1.0.1
##	- enhanced EasyMOD v0.1.13 compliant
## 2004-06-18 - Version 1.0.0
##	- EasyMod Compliant
##
##############################################################

#
#-----[ OPEN ]------------------------------------------------
#

memberlist.php

#
#-----[ FIND ]------------------------------------------------
#

'L_ICQ' => $lang['ICQ'],

#
#-----[ AFTER, ADD ]------------------------------------------
#

	'L_BLOG' => $lang['BLOG'],

#
#-----[ FIND ]------------------------------------------------
#
# the lines are too longer

$sql = "SELECT username, user_id, user_viewemail,

#
#-----[ IN-LINE FIND ]---------------------------------------- 
#

, user_msnm

#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#

, user_blog

#
#-----[ FIND ]------------------------------------------------
#

$msn = ( $row['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';

#
#-----[ AFTER, ADD ]------------------------------------------
#

		$blog_img = ( $row['user_blog'] ) ? '<a href="' . $postrow[$i]['user_blog'] . '" target="_blank"><img src="' . $images['icon_blog'] . '" alt="' . $lang['BLOG'] . ': ' . $row['user_blog'] . '" title="' . $lang['BLOG'] . ': ' . $row['user_blog'] . '" border="0" /></a>' : '';
		$blog = ( $row['user_blog'] ) ? '<a href="' . $postrow[$i]['user_blog'] . '" target=_blank">' . $lang['BLOG'] . '</a>' : '';

#
#-----[ FIND ]------------------------------------------------
#

'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
#

			'BLOG_IMG' => $blog_img,
			'BLOG' => $blog,

#
#-----[ OPEN ]------------------------------------------------
#

templates/subSilver/memberlist_body.tpl

#
#-----[ FIND ]------------------------------------------------
#

<th class="thTop" nowrap="nowrap">{L_EMAIL}</th>

#
#-----[ AFTER, ADD ]------------------------------------------
#

	  <th class="thTop" nowrap="nowrap">{L_BLOG}</th>

#
#-----[ FIND ]------------------------------------------------
#

<td class="{memberrow.ROW_CLASS}" align="center" valign="middle">&nbsp;{memberrow.EMAIL_IMG}&nbsp;</td>

#
#-----[ AFTER, ADD ]------------------------------------------
#

	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle">&nbsp;{memberrow.BLOG_IMG}&nbsp;</td>

#
#-----[ FIND ]------------------------------------------------
#

<td class="catBottom" colspan="8" height="28">&nbsp;</td>

#
#-----[ IN-LINE FIND ]---------------------------------------- 
#

colspan="8"

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

colspan="9"

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
# EoM
Profilinde phpBB forumunun adresini girmemiş üyelere ve kurallara aykırı şekilde açılmış başlıklara destek verilmez.
Resim Resim Resim
webkackini
Kayıtlı Kullanıcı
Mesajlar: 1
Kayıt: 20.01.2007, 20:31
İletişim:

yardım

Mesaj gönderen webkackini »

bu kodları nereye yapıstırıoz veya yukluoz daha cok yeni oldugum için bilmiyorum yardım ederseniz sevnirim
E-mail: yasinandpc@hotmail.com
Kullanıcı avatarı
pikachu
Kayıtlı Kullanıcı
Mesajlar: 3062
Kayıt: 16.07.2006, 15:32
Konum: ağandon /
İletişim:

Mesaj gönderen pikachu »

knarff21
Kayıtlı Kullanıcı
Mesajlar: 5
Kayıt: 13.06.2007, 12:44
İletişim:

Mesaj gönderen knarff21 »

hey bu kodları nereye yazıyoz anlatırsanız sewinirim..!
HaYaL-eT
Kayıtlı Kullanıcı
Mesajlar: 311
Kayıt: 02.08.2006, 21:13
İletişim:

Mesaj gönderen HaYaL-eT »

MOD Kurulum Makalesi'nin okuyunuz. Üstte linki verilmiştir.
Lütfen MSNden ve özelden yardım istemeyin..
Kilitli

“2.0.x MOD Duyuruları” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 4 misafir