[MOD]Random Smilies Display v1.0/rasgele gülücük gösterme

[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ı
pikachu
Kayıtlı Kullanıcı
Mesajlar: 3062
Kayıt: 16.07.2006, 15:32
Konum: ağandon /
İletişim:

[MOD]Random Smilies Display v1.0/rasgele gülücük gösterme

Mesaj gönderen pikachu »

bu mod yeni mesaj veya konu oluştururkewn gülücük kutucuğunda rastgele bir gülücük gösterir, bu modu yönetim panelinden açıp kapatabilirsiniz.

gerekli dosya ektedir.

Kod: Tümünü seç

##############################################################
## MOD Title: Random Smilies Display
## MOD Author: Giga4000 < webmaster@mx-forums.de > (Felix Mau) http://www.mx-forums.de
## MOD Description: This MOD will display random smilies in the smilie box when creating
##                  new threads and posts. You can turn this future on/off in your ACP.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 5
##                admin/admin_board.php
##                includes/functions_post.php
##                language/lang_english/lang_admin.php
##                language/lang_german/lang_admin.php
##                templates/subSilver/admin/board_config_body.tpl
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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 MODs not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
##  Instead of entering the given SQL-Statement, you can upload the
##  file sql.php to your phpbb root directory and run this with your
##  browser. This file will do all nessassary changes in the database
##  for you. After using this file, please delete it to avoid errors.
##
##  For further information visit http://www.mx-forums.de
##  Have fun and enjoy this MOD.
##
##############################################################
## MOD History:
##
##    2007-01-07 - Version 1.0.0
##      - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]--------------------------------------------------
#
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('random_smilies','0');

#
#-----[ OPEN ]--------------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]--------------------------------------------------
#
$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : "";
$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : "";

#
#-----[ AFTER, ADD ]--------------------------------------------
#
// Random Smilies Display
$random_smilies_yes = ( $new['random_smilies'] ) ? "checked=\"checked\"" : "";
$random_smilies_no = ( !$new['random_smilies'] ) ? "checked=\"checked\"" : "";

#
#-----[ FIND ]--------------------------------------------------
#
	"L_ALLOW_SMILIES" => $lang['Allow_smilies'],

#
#-----[ AFTER, ADD ]--------------------------------------------
#
	// Random Smilies Display
	"L_RANDOM_SMILIES" => $lang['random_smilies'],
	"L_RANDOM_SMILIES_EXPLAIN" => $lang['random_smilies_explain'],
	"L_RANDOM_SMILIES_NO" => $lang['random_smilies_no'],
	"L_RANDOM_SMILIES_YES" => $lang['random_smilies_yes'],

#
#-----[ FIND ]--------------------------------------------------
#
	"SMILE_YES" => $smile_yes,
	"SMILE_NO" => $smile_no,

#
#-----[ AFTER, ADD ]--------------------------------------------
#
	// Random Smilies Display
	"RANDOM_SMILIES_YES" => $random_smilies_yes,
	"RANDOM_SMILIES_NO" => $random_smilies_no,
	
#
#-----[ OPEN ]--------------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]--------------------------------------------------
#
	$sql = "SELECT emoticon, code, smile_url   
		FROM " . SMILIES_TABLE . " 
		ORDER BY smilies_id";

#
#-----[ REPLACE WITH ]--------------------------------------------
#
	// Random Smilies Display
	$order = ($board_config['random_smilies'] == '0') ? 'smilies_id' : 'rand()';
	
	$sql = "SELECT emoticon, code, smile_url   
			FROM " . SMILIES_TABLE . " 
			ORDER BY $order";

#
#-----[ OPEN ]--------------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]--------------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]--------------------------------------------------
#
//
// Random Smilies Display
//
$lang['random_smilies'] = 'Smilies Display';
$lang['random_smilies_explain'] = 'Here you can set the display order of your smilies.'
$lang['random_smilies_no'] = 'Normal Order';
$lang['random_smilies_yes'] = 'Random Order';

#
#-----[ OPEN ]--------------------------------------------------
#
language/lang_german/lang_admin.php

#
#-----[ FIND ]--------------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]--------------------------------------------------
#
//
// Random Smilies Display
//
$lang['random_smilies'] = 'Smilies Anzeige';
$lang['random_smilies_explain'] = 'Hiermit kann du die Reihnfolge bestimmen, in der die Smilies erscheinen.';
$lang['random_smilies_no'] = 'Normale Anzeige';
$lang['random_smilies_yes'] = 'Zufällige Anzeige';

#
#-----[ OPEN ]--------------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl

#
#-----[ FIND ]--------------------------------------------------
#
	<tr>
		<td class="row1">{L_ALLOW_SMILIES}</td>
		<td class="row2"><input type="radio" name="allow_smilies" value="1" {SMILE_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_smilies" value="0" {SMILE_NO} /> {L_NO}</td>
	</tr>

#
#-----[ AFTER, ADD ]--------------------------------------------------
#
	<tr>
		<td class="row1">{L_RANDOM_SMILIES} <br /><span class="gensmall">{L_RANDOM_SMILIES_EXPLAIN}</span></td>
		<td class="row2"><input type="radio" name="random_smilies" value="0" {RANDOM_SMILIES_NO} /> {L_RANDOM_SMILIES_NO}&nbsp;&nbsp;<input type="radio" name="random_smilies" value="1" {RANDOM_SMILIES_YES} /> {L_RANDOM_SMILIES_YES}</td>
	</tr>

#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
Dosya ekleri
3677.zip
random smile
(3.2 KiB) 133 kere indirildi
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 1 misafir