imzada ne dinliyorum özelligi
-
- Kayıtlı Kullanıcı
- Mesajlar: 114
- Kayıt: 14.06.2007, 14:48
- Konum: Elazığ
- İletişim:
imzada ne dinliyorum özelligi
arkadaslar bunu bır sıtede gormustum imza üzerinde ne dinliyorum ozellıgı vardı ımzada yazıodu nasıl bulabılırım onu??
-
- Kayıtlı Kullanıcı
- Mesajlar: 114
- Kayıt: 14.06.2007, 14:48
- Konum: Elazığ
- İletişim:
Re: imzada ne dinliyorum özelligi
bunun için bi mod mevcut ama şarkıyı otomatik olarak atmıyo sen her defasında manuel olarak değiştiriyosun
Kod: Tümünü seç
###############################################
## Mod Title: Now Playing
## Mod Version: 1.0.2
## Author: Michel Renaud < michelr@metalcrypt.com >
## Description: This mod will add a "Now playing" field to posts
## Web site for updates: http://metalcrypt.bravepages.com
##
## This mod is for phpBB2 ver 2.0.0 and 2.0.1
##
##
## Installation Level: Easy
## Files To Edit: 10
## phpBB2/language/lang_xx/lang_main.php
## phpBB2/includes/functions_post.php
## phpBB2/includes/topic_review.php
## phpBB2/viewtopic.php
## phpBB2/posting.php
## phpBB2/search.php
## phpBB2/templates/template_dirXX/viewtopic_body.tpl
## phpBB2/templates/template_dirXX/message_body.tpl
## phpBB2/templates/template_dirXX/posting_body.tpl
## phpBB2/templates/template_dirXX/templateXX.cfg (cfg file for the template(s))
##
## Files to add: 1
##
## phpBB2/templates/template_dirXX/images/cddisc.gif
##
##
## Revision history:
##
## 1.0.2 (June 19, 2002): Corrected a minor bug introduced in 1.0.1 (oops!)-See nowplaying_revision.txt for upgrade info
## A couple of minor changes to adhere to coding standards
##
## 1.0.1 (June 13, 2002): Corrects a problem that prevented the existing NP text from
## being displayed when editing a post
##
## 1.0.0 (May 24, 2002): Initial release
##
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
#################################################################
##
## Installation Notes:
##
## if you are using a prefix to you DB tabels then you have to add this to
## the SQL commands, e.g. "phpbb_users" instead of just "users" - ONLY
## in the initial SQL commands, not in the php code !
##
## The most important thing to keep in mind is, take your time, make
## sure you are finding the correct lines to modify, then take care to paste the new code.
## Please also keep in mind, if you are using more than one language file or theme at your
## site, you will need to edit the corresponding files for each occurrence. Good Luck!
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
## and the Database
#################################################################
#
#-----[ ADD SQL ]------------------------------------------
#
ALTER TABLE phpbb_posts_text ADD post_np VARCHAR(60);
#
#-----[ OPEN FILE: phpBB2/language/lang_XX/lang_main.php ]------------------------------------------
#
# (make sure to edit this file for every language your board uses).
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ ADD BEFORE ]------------------------------------------
#
//Add on for Now playing Mod
$lang['Post_NowPlaying'] = "<b>Now Playing</b>: What are you listening to? [optional]";
#
#-----[ SAVE FILE: phpBB2/language/lang_XX/lang_main.php ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/includes/functions_post.php ]------------------------------------------
#
#
#-----[ FIND ]------------------------------------------
#
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length)
#
#-----[ REPLACE WITH ]------------------------------------------
#
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$nowplaying, &$poll_title, &$poll_options, &$poll_length)
#
#-----[ FIND ]------------------------------------------
#
//
// Handle poll stuff
//
#
#-----[ ADD BEFORE ]------------------------------------------
#
// Check Now Playing
if ( empty($nowplaying) )
{
$nowplaying = NULL;
}
#
#-----[ FIND ]------------------------------------------
#
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length)
#
#-----[ REPLACE WITH ]------------------------------------------
#
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$post_np, &$poll_title, &$poll_options, &$poll_length)
#
#-----[ FIND ]------------------------------------------
#
$sql = ( $mode != 'editpost' ) ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = ( $mode != 'editpost' ) ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text, post_np) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message', '$post_np')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject', post_np = '$post_np' WHERE post_id = $post_id";
#
#-----[ SAVE: phpBB2/includes/functions_post.php ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/includes/topic_review.php ]------------------------------------------
#
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, pt.post_np
#
#-----[ FIND ]------------------------------------------
#
$message = $row['post_text'];
#
#-----[ ADD AFTER ]------------------------------------------
#
$nowplaying = $row['post_np'];
#
#-----[ SAVE FILE: phpBB2/includes/topic_review.php ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/viewtopic.php ]------------------------------------------
#
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, 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, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, 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, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid, pt.post_np
#
#-----[ FIND ]------------------------------------------
#
$post_alt = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic'];
#
#-----[ ADD AFTER ]------------------------------------------
#
$nowplaying_img = $images['nowplaying'];
#
#-----[ FIND ]------------------------------------------
#
'REPLY_IMG' => $reply_img,
#
#-----[ ADD AFTER ]------------------------------------------
#
'NOWPLAYING_IMG' => $nowplaying_img,
#
#-----[ FIND ]------------------------------------------
#
$message = $postrow[$i]['post_text'];
#
#-----[ ADD AFTER ]------------------------------------------
#
$nowplaying = $postrow[$i]['post_np'];
#
#-----[ FIND ]------------------------------------------
#
$message = str_replace("\n", "\n<br />\n", $message);
#
#-----[ ADD AFTER ]------------------------------------------
#
if ( $nowplaying != '' && $nowplaying != NULL)
{
$nowplaying = '<br /><br /><img src="' . $nowplaying_img . '" border="0" align="left"> <font size="2"><b>' . $nowplaying . '</b></font>';
}
#
#-----[ FIND ]------------------------------------------
#
'MESSAGE' => $message,
#
#-----[ ADD AFTER ]------------------------------------------
#
'NOWPLAYING' => $nowplaying,
#
#-----[ SAVE FILE: phpBB2/viewtopic.php ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/posting.php ]------------------------------------------
#
#
#-----[ FIND ]------------------------------------------
#
$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.post_np, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
#
#-----[ FIND ]------------------------------------------
#
$message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : '';
#
#-----[ ADD AFTER ]------------------------------------------
#
$nowplaying = ( !empty($HTTP_POST_VARS['nowplaying']) ) ? $HTTP_POST_VARS['nowplaying'] : '';
#
#-----[ FIND ]------------------------------------------
#
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
#
#-----[ REPLACE WITH ]------------------------------------------
#
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $nowplaying, $poll_title, $poll_options, $poll_length);
#
#-----[ FIND ]------------------------------------------
#
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
#
#-----[ REPLACE WITH ]------------------------------------------
#
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $nowplaying), str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
#
#-----[ FIND ]------------------------------------------
#
$message = ( !empty($HTTP_POST_VARS['message']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['message']))) : '';
#
#-----[ ADD AFTER ]------------------------------------------
#
$nowplaying = ( !empty($HTTP_POST_VARS['nowplaying']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['nowplaying']))) : '';
#
#-----[ FIND (NOTE: FIRST OCCURRENCE OF THE STRING) ]------------------------------------------
#
$message = '';
#
#-----[ ADD AFTER ]------------------------------------------
#
$nowplaying = '';
#
#-----[ FIND (NOTE: SECOND OCCURRENCE OF THE STRING) ]------------------------------------------
#
$message = '';
#
#-----[ ADD AFTER ]------------------------------------------
#
$nowplaying = '';
#
#-----[ FIND ]------------------------------------------
#
$attach_sig = ( $post_info['enable_sig'] && $post_info['user_sig'] != '' ) ? TRUE : 0;
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$nowplaying = $post_info['post_np'];
#
#-----[ FIND ]------------------------------------------
#
'MESSAGE' => $message,
#
#-----[ ADD AFTER ]------------------------------------------
#
'NOWPLAYING' => $nowplaying,
#
#-----[ FIND ]------------------------------------------
#
'L_DELETE_POST' => $lang['Delete_post'],
#
#-----[ ADD AFTER ]------------------------------------------
#
'L_NOW_PLAYING' => $lang['Post_NowPlaying'],
#
#-----[ SAVE FILE: phpBB2/posting.php ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/search.php ]------------------------------------------
#
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT pt.post_text, pt.bbcode_uid, pt.post_subject, p.*, f.forum_id, f.forum_name, t.*, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT pt.post_text, pt.bbcode_uid, pt.post_subject, pt.post_np, p.*, f.forum_id, f.forum_name, t.*, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid
#
#-----[ SAVE FILE: phpBB2/search.php ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/templates/template_dirXX/viewtopic_body.tpl ]------------------------------------------
#
# (make sure to edit this file for every theme you use).
# Note that the line may vary by theme. Just locate the {postrow.MESSAGE} and add {postrow.NOWPLAYING}
# where approriate.
#
#-----[ FIND ]------------------------------------------
#
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gentblsmall">{postrow.EDITED_MESSAGE}</span></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.NOWPLAYING}{postrow.SIGNATURE}</span><span class="gentblsmall">{postrow.EDITED_MESSAGE}</span></td>
#
#-----[ SAVE FILE: phpBB2/templates/template_dirXX/viewtopic_body.tpl ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/templates/template_dirXX/message_body.tpl ]------------------------------------------
#
# (make sure to edit this file for every theme you use).
#
#-----[ FIND ]------------------------------------------
#
<td align="center"><span class="gentbl">{MESSAGE_TEXT}</span></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td align="center"><span class="gentbl">{MESSAGE_TEXT}<br />{NOWPLAYING}</span></td>
#
#-----[ SAVE FILE: phpBB2/templates/template_dirXX/message_body.tpl ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/templates/template_dirXX/posting_body.tpl ]------------------------------------------
#
# (make sure to edit this file for every theme you use).
#
#-----[ FIND ]------------------------------------------
#
<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
#
#-----[ ADD AFTER ]------------------------------------------
#
{L_NOW_PLAYING}<br />
<input type="text" name="nowplaying" size="45" maxlength="60" style="width:450px" tabindex="4" class="post" value="{NOWPLAYING}" />
#
#-----[ SAVE FILE: phpBB2/templates/template_dirXX/posting_body.tpl ]------------------------------------------
#
#
#-----[ OPEN FILE: phpBB2/templates/template_dirXX/XXtemplatenameXX.cfg ]------------------------------------------
#
# (make sure to edit this file for every theme you use).
#
#-----[ FIND LAST $images LINE (toward the end of the file) ] ----
#
#
#-----[ ADD AFTER ]------------------------------------------
#
$images['nowplaying'] = "$current_template_images/cddisc.gif";
#
#-----[ UPLOAD FILE: phpBB2/templates/template_dirXX/images/cddisc.gif ]------------------------------------------
#
Kimler çevrimiçi
Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 1 misafir