Teşekkür Eklentisini Ekledim Ama Teşekkür Resmini Göstermiyor Ayrıca Tıkladığımda Sitenin Ana Sayfasına Gönderiyor Bu Konuda Bana YARDIM Edebilcek Varmı...
Teşekkür Button Resminin Adresini ve Tıkladığımda Giden Link Adresini ben Ana Sayfam Olarak Algılıyor Oraya Gönderiyor
Nasil Yapabilirim?
Php-Nuke 7,6 3.1 c kullanıyorum Teşekkürler
Dondum Kaldım Sorunumu Halletmeden Başka İşlemde Yapamıyorum Site Üzerinde
#-----[ ARA ]---------------------------------
#
<!-- END postrow -->
öncesine ekle
Kod:
<!-- BEGIN thanks -->
<tr>
<td colspan="2" class="row2">
<table class="forumline" cellspacing="1" cellpadding="3" border="0" width="100%">
<tr>
<th class="thLeft">{postrow.thanks.THANKFUL}</th>
</tr>
<tr>
<td class="row2" valign="top" align="left">
<span id="hide_thank" style="display: block;" class="gensmall">
<a href="j a v a s c r i p t: void(0);" onclick="document.all.show_thank.style.display = 'block';document.all.hide_thank.style.display = 'none'">{postrow.thanks.THANKS_TOTAL}</a> {postrow.thanks.THANKED}
</span>
<span id="show_thank" style="display: none;" class="gensmall">
{postrow.thanks.THANKS}
<br /><br /><div align="right"><a href="j a v a s c r i p t: void(0);" onClick="document.all.show_thank.style.display = 'none';document.all.hide_thank.style.display = 'block'">[ {postrow.thanks.HIDE} ]</a></div>
</span>
</td>
</tr>
</table>
</td>
</tr>
<!-- END thanks -->
forums.cfg dosyasını ac eklemiş oldugun bu satırı bul
Bende aynı modu kurdum bendede aynı şey olmuştu bu şekilde düzeltmiştim sanırım başka bi değişiklik yapmadım aklımda kaldıgı kadarıyla bu değişiklikleri yapmıştım sadece
Üzerine sağ tıkla. Resmin özelliklerine bak. Resmi nerde arıyorsa oraya uygun resmi koy sorun kalmaz. Çok ta zor değil ha. Az PC bilgisi yeterli.
Ah Ali Osman Usta Onu Bende Biliyorum Sağol Yinede Ama Anlatamamisim Resimin Uzerine Sağ Tıklayıp Resim Adresine Baktiğim Zaman Oda Ayni Adresi Yani www.gonulkapisi.net/new olarak gösteriyor resim adresinide
Kayıt: Nov 18, 2005 Mesajlar: 943 Konum: Trabzon/izmir 61-35
Tarih: 2007-08-02, 16:46:55 Mesaj konusu:
bi değişiklik daha yapmıştım sanırm ama nerde yapmıştım hatırlamıyorum tam olarak kodları takip edersen eksikleri görebilirsin bende netopsiyondakini kurdum sanırım viewtopic.php de bi dğeişiklik daha yapmıştım buna göre viewtopic.php ve tpl dosyalarını düzenle tamamını değişme bu kodlar bbtonuke için değildi sanırım
Kod:
##############################################################
## MOD Title: Thank You Mod for PhpBB
## MOD Author: Kinfule < kinfule@lycos.com > (Kinfule) http://kinfule.tk
## MOD Description: This mod will add a button for thanking someone for their post.
##
## MOD Version: 1.1.2
##
## Installation Level: (Easy)
## Installation Time: 20 Minutes
## Files To Edit: 11
## admin/admin_forums.php,
## modcp.php,
## posting.php,
## viewtopic.php,
## includes/constants.php,
## includes/functions.php,
## includes/functions_post.php,
## langugage/lang_english/lang_main.php,
## langugage/lang_english/lang_admin.php,
## templates/subSilver/viewtopic_body.tpl,
## templates/subSilver/admin/forum_edit_body.tpl
## Included Files: 1
## thanks.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/
##############################################################
## Author Notes:
## - You can edit a variable to choose auth_type default is auth_read.
## - It uses it own date format to chage the format, edit $timeformat value to another one.
## - Language packs can be found here: http://usuarios.lycos.es/kinfule/forum/viewforum.php?f=8
##
##############################################################
## MOD History:
## 2005-02-25 - Version 0.0.1
## - First Release
##
## 2005-02-25 - Version 0.0.2
## - Fixed bug wich allowed guests to thank.
##
## 2005-02-26 - Version 1.0.0
## - Version 1.0.0 for the Mod Database.
##
## 2005-03-01 - Version 1.0.1
## - Fixed all said by the Mod Team on PhpBB.com.
## - Checked to work with PhpBB version 2.0.13.
##
## 2005-03-04 - Version 1.0.1
## - I was told about some errors in html, they are Fixed.
## - I was given a better image By Dude, Thanks Dude.
## - No version change cause no bugfixes have been done, just replaced a <tr></tr> to </tr><tr>.
##
## 2005-03-04 - Version 1.0.2
## - I got told about an error in viewtopic with the table, Fixed.
## - SQL fixed.
##
## 2005-03-06 - Version 1.0.3
## - Posible SQL injection fixed.
## - SQL fixed.
##
## 2005-03-12 - Version 1.0.4
## - Query Optimization in viewtopic.php
##
## 2005-04-08 - Version 1.1.0
## - Now it only appears in first page only.
## - Added the use of constants.
##
## 2005-04-24 - Version 1.1.1
## - XHTML compliant.
##
## 2005-06-06 - Version 1.1.2
## - Added: Delete thanks entries when a post is deleted.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
##
#
#-----[ COPY ]------------------------------------------
#
copy thanks.gif to templates/subSilver/images/lang_english/thanks.gif
#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE `phpbb_thanks` (
`topic_id` MEDIUMINT(8) NOT NULL,
`user_id` MEDIUMINT(8) NOT NULL,
`thanks_time` INT(11) NOT NULL
);
ALTER TABLE `phpbb_forums` ADD `forum_thank` TINYINT(1) DEFAULT '0' NOT NULL AFTER `forum_status`;
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------
# This may be a partial find and not the whole line.
#
$sql = "INSERT INTO " . FORUMS_TABLE . "
#
#-----[ FIND ]------------------------------------------
# This may be a partial find and not the whole line.
#
$HTTP_POST_VARS['forumdesc']) . "', $next_order
#
#-----[ FIND ]---------------------------------
# This may be a partial find and not the whole line.
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name
#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
// Check if the Thanks feature is active for this forum
$sql = "SELECT `forum_thank`
FROM " . FORUMS_TABLE . "
WHERE `forum_id` = '$forum_id' ";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain forum information", '', __LINE__, __FILE__, $sql);
}
if ( !($forum_thank_result = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Forum "thanks" information doesn\'t exists');
}
// Setting if feature is active or not
switch($forum_thank_result['forum_thank'])
{
case "1":
$show_thanks = FORUM_THANKABLE;
break;
#
#-----[ FIND ]---------------------------------
#
case 'reply':
case 'vote':
#-----[ BEFORE, ADD ]---------------------------------
case 'thank':
#
#-----[ FIND ]---------------------------------
#
// The user is not authed, if they're not logged in then redirect
// them, else show them an error message
#
#-----[ FIND ]---------------------------------
#
case 'reply':
case 'topicreview':
#
#-----[ BEFORE, ADD ]---------------------------------
#
case 'thank':
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin Thanks Mod
$lang['thankful'] = 'Thankful People';
$lang['thanks_to'] = 'Thanks';
$lang['thanks_end'] = 'for his/her post';
$lang['thanks_alt'] = 'Thank Post';
$lang['thanked_before'] = 'You have already thanked this topic';
$lang['thanks_add'] = 'Your thanks has been given';
$lang['thanks_not_logged'] = 'You need to log in to thank someone\'s post';
$lang['thanked'] = 'user(s) is/are thankful for this post.';
$lang['hide'] = 'Hide';
// End Thanks Mod
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/subSilver.cfg
bi değişiklik daha yapmıştım sanırm ama nerde yapmıştım hatırlamıyorum tam olarak kodları takip edersen eksikleri görebilirsin bende netopsiyondakini kurdum sanırım viewtopic.php de bi dğeişiklik daha yapmıştım bi bakayım yapdıgım değişikliği bulabilirsem yazayım
YARDIM Edersen Çok Teşekkür Ederim Uğraşların İçin Sağol Son Görünüş Hali Aşağıdaki Şekilde Göründüğü Gibi
bi değişiklik daha yapmıştım sanırm ama nerde yapmıştım hatırlamıyorum tam olarak kodları takip edersen eksikleri görebilirsin bende netopsiyondakini kurdum sanırım viewtopic.php de bi dğeişiklik daha yapmıştım buna göre viewtopic.php ve tpl dosyalarını düzenle tamamını değişme bu kodlar bbtonuke için değildi sanırım
Kod:
##############################################################
## MOD Title: Thank You Mod for PhpBB
## MOD Author: Kinfule < kinfule@lycos.com > (Kinfule) http://kinfule.tk
## MOD Description: This mod will add a button for thanking someone for their post.
##
## MOD Version: 1.1.2
##
## Installation Level: (Easy)
## Installation Time: 20 Minutes
## Files To Edit: 11
## admin/admin_forums.php,
## modcp.php,
## posting.php,
## viewtopic.php,
## includes/constants.php,
## includes/functions.php,
## includes/functions_post.php,
## langugage/lang_english/lang_main.php,
## langugage/lang_english/lang_admin.php,
## templates/subSilver/viewtopic_body.tpl,
## templates/subSilver/admin/forum_edit_body.tpl
## Included Files: 1
## thanks.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/
##############################################################
## Author Notes:
## - You can edit a variable to choose auth_type default is auth_read.
## - It uses it own date format to chage the format, edit $timeformat value to another one.
## - Language packs can be found here: http://usuarios.lycos.es/kinfule/forum/viewforum.php?f=8
##
##############################################################
## MOD History:
## 2005-02-25 - Version 0.0.1
## - First Release
##
## 2005-02-25 - Version 0.0.2
## - Fixed bug wich allowed guests to thank.
##
## 2005-02-26 - Version 1.0.0
## - Version 1.0.0 for the Mod Database.
##
## 2005-03-01 - Version 1.0.1
## - Fixed all said by the Mod Team on PhpBB.com.
## - Checked to work with PhpBB version 2.0.13.
##
## 2005-03-04 - Version 1.0.1
## - I was told about some errors in html, they are Fixed.
## - I was given a better image By Dude, Thanks Dude.
## - No version change cause no bugfixes have been done, just replaced a <tr></tr> to </tr><tr>.
##
## 2005-03-04 - Version 1.0.2
## - I got told about an error in viewtopic with the table, Fixed.
## - SQL fixed.
##
## 2005-03-06 - Version 1.0.3
## - Posible SQL injection fixed.
## - SQL fixed.
##
## 2005-03-12 - Version 1.0.4
## - Query Optimization in viewtopic.php
##
## 2005-04-08 - Version 1.1.0
## - Now it only appears in first page only.
## - Added the use of constants.
##
## 2005-04-24 - Version 1.1.1
## - XHTML compliant.
##
## 2005-06-06 - Version 1.1.2
## - Added: Delete thanks entries when a post is deleted.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
##
#
#-----[ COPY ]------------------------------------------
#
copy thanks.gif to templates/subSilver/images/lang_english/thanks.gif
#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE `phpbb_thanks` (
`topic_id` MEDIUMINT(8) NOT NULL,
`user_id` MEDIUMINT(8) NOT NULL,
`thanks_time` INT(11) NOT NULL
);
ALTER TABLE `phpbb_forums` ADD `forum_thank` TINYINT(1) DEFAULT '0' NOT NULL AFTER `forum_status`;
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------
# This may be a partial find and not the whole line.
#
$sql = "INSERT INTO " . FORUMS_TABLE . "
#
#-----[ FIND ]------------------------------------------
# This may be a partial find and not the whole line.
#
$HTTP_POST_VARS['forumdesc']) . "', $next_order
#
#-----[ FIND ]---------------------------------
# This may be a partial find and not the whole line.
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name
#
#-----[ AFTER, ADD ]---------------------------------
#
// Begin Thanks Mod
// Check if the Thanks feature is active for this forum
$sql = "SELECT `forum_thank`
FROM " . FORUMS_TABLE . "
WHERE `forum_id` = '$forum_id' ";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain forum information", '', __LINE__, __FILE__, $sql);
}
if ( !($forum_thank_result = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Forum "thanks" information doesn\'t exists');
}
// Setting if feature is active or not
switch($forum_thank_result['forum_thank'])
{
case "1":
$show_thanks = FORUM_THANKABLE;
break;
#
#-----[ FIND ]---------------------------------
#
case 'reply':
case 'vote':
#-----[ BEFORE, ADD ]---------------------------------
case 'thank':
#
#-----[ FIND ]---------------------------------
#
// The user is not authed, if they're not logged in then redirect
// them, else show them an error message
#
#-----[ FIND ]---------------------------------
#
case 'reply':
case 'topicreview':
#
#-----[ BEFORE, ADD ]---------------------------------
#
case 'thank':
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Begin Thanks Mod
$lang['thankful'] = 'Thankful People';
$lang['thanks_to'] = 'Thanks';
$lang['thanks_end'] = 'for his/her post';
$lang['thanks_alt'] = 'Thank Post';
$lang['thanked_before'] = 'You have already thanked this topic';
$lang['thanks_add'] = 'Your thanks has been given';
$lang['thanks_not_logged'] = 'You need to log in to thank someone\'s post';
$lang['thanked'] = 'user(s) is/are thankful for this post.';
$lang['hide'] = 'Hide';
// End Thanks Mod
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/subSilver.cfg
Bu Kodu Eklediğimde Oluyor Ama Forum Nosu 148 Olunca Sadece O Konuya Teşekkür Edeyir Her Topicin id Sini Alması İçin Hangi Kodu Koumam Gerekiyor Çok Az Kaldı Çözeceğim YARDIM Lütfen "$topic_id" Bu Kodu Koydum Ama İşlemedi
Bütün Sorun Bu Alttaki Kodda Bunu Nasıl Olacağını Çözersek Benim Sorunumda Çözülmüş Olacak
Kayıt: Nov 18, 2005 Mesajlar: 943 Konum: Trabzon/izmir 61-35
Tarih: 2007-08-02, 19:38:07 Mesaj konusu:
teşekkür eklentisinin nasıl acılacagını biliyorsun dimi tüm forumlarda aktif etmen gerekiyor tek tek forum yönetiminden gbu arada bende senin gibi netopsiyondakini indirdim ve hatalarını sana verdiğim eklenti üzerinden değiştirdim sana tamamını ekleme diye yazdım sadece viewtopic.php ve viewtopic_body.tpl dosyalarını düzenle dedim cünkü bu mod php nukeye göre cevrilmemiş olabilir incelemedim
teşekkür eklentisinin nasıl acılacagını biliyorsun dimi tüm forumlarda aktif etmen gerekiyor tek tek forum yönetiminden gbu arada bende senin gibi netopsiyondakini indirdim ve hatalarını sana verdiğim eklenti üzerinden değiştirdim sana tamamını ekleme diye yazdım sadece viewtopic.php ve viewtopic_body.tpl dosyalarını düzenle dedim cünkü bu mod php nukeye göre cevrilmemiş olabilir incelemedim
Evet Yönetim Panelinden Açıldığını Biliyorum Aktif Ettim Oradan Ayrıca Dediğin Gibi Bu Eklenti Nukebb Değil Phpbb Ye Göre Ayarlanmış Tamamını Eklediğimde viewtopic.php'de Hatalar Aldım Ama 2 Dosya Değişikliğinde Kullanmadim Şimdi Onlar Üzerinde Kullanayım O Halde Tekrar Dönerim Olacağını Zannetmiyorum Ama Deney Deneydir :)
##############################################################
## MOD Title: Thank You Mod for BBNUKE
##
## MOD Version: 1.1.8
## TÜKÇEYE CEVIRI Abizer ( www.cilginfm.com
##
## Installation Level: Orta
## Installation Time: 20 Dakika
##
##
## Editlenecek Dosyalar: 11
## modules/Forums/admin/admin_forums.php,
## modules/Forums/modcp.php,
## modules/Forums/posting.php,
## modules/Forums/viewtopic.php,
## includes/constants.php,
## includes/functions.php,
## includes/functions_post.php,
## modules/Forums/langugage/lang_english/lang_main.php,
## modules/Forums/langugage/lang_english/lang_admin.php,
## themes/YOUR_THEME/forums/viewtopic_body.tpl,
## modules/Forums/templates/subSilver/admin/forum_edit_body.tpl
## Included Files: 1
## themes/YOUR_THEME/forums/images/lang_english/thanks.gif
##
##############################################################
## MOD History:
## 2005-02-25 - Version 0.0.1
## - First Release
##
## 2005-02-25 - Version 0.0.2
## - Fixed bug wich allowed guests to thank.
##
## 2005-02-26 - Version 1.0.0
## - Version 1.0.0 for the Mod Database.
##
## 2005-03-01 - Version 1.0.1
## - Fixed all said by the Mod Team on PhpBB.com.
## - Checked to work with PhpBB version 2.0.13.
##
## 2005-03-04 - Version 1.0.1
## - I was told about some errors in html, they are Fixed.
## - I was given a better image By Dude, Thanks Dude.
## - No version change cause no bugfixes have been done, just replaced a <tr></tr> to </tr><tr>.
##
## 2005-03-04 - Version 1.0.2
## - I got told about an error in viewtopic with the table, Fixed.
## - SQL fixed.
##
## 2005-03-06 - Version 1.0.3
## - Posible SQL injection fixed.
## - SQL fixed.
##
## 2005-03-12 - Version 1.0.4
## - Query Optimization in viewtopic.php
##
## 2005-04-08 - Version 1.1.0
## - Now it only appears in first page only.
## - Added the use of constants.
##
## 2005-04-24 - Version 1.1.1
## - XHTML compliant.
##
## 2005-06-06 - Version 1.1.2
## - Added: Delete thanks entries when a post is deleted.
##
## 2005-06-22 - Version 1.1.3
## - Added: m e t a Redirection after thanking post.
## - Added: CSS hiding for complete thanks list.
##
## 2005-06-26 - Version 1.1.4
## - Fix some stuff with the mod template.
##
## 2005-07-07 - Version 1.1.5
## - Improved the display/hide method. (Thanks Stoebi)
##
## 2005-08-06 - Version 1.1.6
## - Fixed bug in modcp.php.
## - Now you cannot thank yourself.
## - Fixed grammar error on posting.php.
## - Commented some partial lines in ARAs to help people ARAing them.
##
## 2005-10-30 - Version 1.1.7
## - Allow to thank locked topics.
##
## 2005-12-06 - Version 1.1.8
## - PhpBB Mod Template fixes.
##
##############################################################
##
#
#-----[ KOPYALA ]------------------------------------------
#
copy templates/subSilver/images/lang_english/thanks.gif to templates/subSilver/images/lang_english/thanks.gif
#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE `nuke_bbthanks` (
`topic_id` MEDIUMINT(8) NOT NULL,
`user_id` MEDIUMINT(8) NOT NULL,
`thanks_time` INT(11) NOT NULL
);
ALTER TABLE `nuke_bbforums` ADD `forum_thank` TINYINT(1) DEFAULT '0' NOT NULL;
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/admin/admin_forums.php
#
#-----[ ARA ]------------------------------------------
#
$forumstatus = $row['forum_status'];
#
#-----[ SONRA EKLE ]------------------------------------------
#
$forumthank = $row['forum_thank'];
#
#-----[ ARA ]------------------------------------------
#
$forumstatus = FORUM_UNLOCKED;
#
#-----[ SONRA EKLE ]------------------------------------------
#
$forumthank = FORUM_UNTHANKABLE;
#
#-----[ ARA ]------------------------------------------
# This may be a partial ARA and not the whole line.
#
$sql = "INSERT INTO " . FORUMS_TABLE . "
#
#-----[ SATIRDA SONRA EKLE ]------------------------------------------
#
, forum_thank
#
#-----[ ARA ]------------------------------------------
# This may be a partial ARA and not the whole line.
#
VALUES ('" . $next_id . "', '" . str_replace("\'", "''",
#
#-----[ SATIRDA ARA ]------------------------------------------
#
$value_sql . "
#
#-----[ ARA ]---------------------------------
# This may be a partial ARA and not the whole line.
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/modcp.php
#
#-----[ ARA ]------------------------------------------
#
$sql = "DELETE
FROM " . TOPICS_TABLE . "
WHERE topic_id IN ($topic_id_sql)
OR topic_moved_id IN ($topic_id_sql)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete topics', '', __LINE__, __FILE__, $sql);
}
#
#-----[ ÖNCE EKLE ]------------------------------------------
#
$sql = "DELETE FROM " . THANKS_TABLE . "
WHERE topic_id IN ($topic_id_sql)";
if ( !$db->sql_query($sql, BEGIN_TRANSACTION) )
{
message_die(GENERAL_ERROR, 'Error in deleting Thanks post Information', '', __LINE__, __FILE__, $sql);
}
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/viewtopic.php
#
#-----[ ARA ]---------------------------------
#
$forum_id = intval($forum_topic_data['forum_id']);
#
#-----[ BİR ALT SATIRA EKLE ]---------------------------------
#
// Begin Thanks Mod
// Check if the Thanks feature is active for this forum
$sql = "SELECT `forum_thank`
FROM " . FORUMS_TABLE . "
WHERE `forum_id` = '$forum_id' ";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain forum information", '', __LINE__, __FILE__, $sql);
}
if ( !($forum_thank_result = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Forum "thanks" information doesn\'t exists');
}
// Setting if feature is active or not
switch($forum_thank_result['forum_thank'])
{
case "1":
$show_thanks = FORUM_THANKABLE;
break;
#
#-----[ BİR ALT SATIRA EKLE ]---------------------------------
#
// Begin Thanks Mod
$thank_topic_url = append_sid("posting.$phpEx?mode=thank&" . POST_TOPIC_URL . "=$topic_id");
// End Thanks Mod
// Check if user is the topic starter
$sql = "SELECT `topic_poster`
FROM " . TOPICS_TABLE . "
WHERE topic_id = $topic_id
AND topic_poster = $userid";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't check for topic starter", '', __LINE__, __FILE__, $sql);
// Check if user had thanked before
$sql = "SELECT `topic_id`
FROM " . THANKS_TABLE . "
WHERE topic_id = $topic_id
AND user_id = $userid";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't check for previous thanks", '', __LINE__, __FILE__, $sql);
$template->assign_vars(array(
'm e t a' => '<m e t a http - e q u i v="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">')
);
#
#-----[ AÇ ]---------------------------------
#
includes/functions_post.php
#
#-----[ ARA ]---------------------------------
#
$sql = "DELETE FROM " . TOPICS_TABLE . "
WHERE topic_id = '$topic_id'
OR topic_moved_id = '$topic_id'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql);
}
#
#-----[ SONRA EKLE ]---------------------------------
#
$sql = "DELETE FROM " . THANKS_TABLE . "
WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in deleting Thanks post Information', '', __LINE__, __FILE__, $sql);
}
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/language/lang_english/lang_admin.php
#
#-----[ ARA ]---------------------------------
#
?>
#
#-----[ ÖNCE EKLE ]------------------------------------------
#
// Begin Thanks Mod
$lang['use_thank'] = 'Tesekkür mesaji açilsin mi?';
// End Thanks Mod
#
#-----[ AÇ ]------------------------------------------
#
modules/Forums/language/lang_english/lang_main.php
#
#-----[ ARA ]---------------------------------
#
?>
#
#-----[ ÖNCE EKLE ]------------------------------------------
#
// Begin Thanks Mod
$lang['thankful'] = 'Teşekkür Gönderenler';
$lang['thanks_to'] = 'Tarihinde teşekkürler mesajını';
$lang['thanks_end'] = 'adlı kullaniımıza gönderdi';
$lang['thanks_alt'] = 'Tesekkürler Mesajı';
$lang['thanked_before'] = 'Daha önce bu basliga tesekkürler mesaji göndermissiniz!';
$lang['thanks_add'] = 'Teşekkürler mesajınız başarıyla eklenmiştir.';
$lang['thanks_not_logged'] = 'Başlıklara Yalnızca Kayıtlı Kullanıcılar Teşekkür Edebilir!';
$lang['thanked'] = 'kullanıcı mesajınıza teşekkür etti.';
$lang['hide'] = 'Gizle';
$lang['t_starter'] = 'You cannot thank yourself';
$lang['thank_no_exist'] = 'Forum thank information doesn\'t exists';
// End Thanks Mod
#
#-----[ AÇ ]---------------------------------
#
themes/YOUR_THEME/forums/forums.cfg
#
#-----[ ARA ]---------------------------------
#
$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
#
#-----[ SONRA EKLE ]---------------------------------
#
$images['thanks'] = "$current_template_images/{LANG}/thanks.gif";
#
#-----[ AÇ ]---------------------------------
#
modules/Forums/templates/subSilver/admin/forum_edit_body.tpl
#
#-----[ BITTI KOLAY GELSİN ]------------------------------------------
#
# EoM
Başka İsteyen Arkadaşlar İçin Paylaşayım Kullandığım Kodlar Bunlar 7.6.3.1.C Nuke Sürümünde Hatasız Çalıştı Diğer Sürümler İçin Birşey Diyemeyeceğim Kolay Gelsin...
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız