[BETA] Thank Post by User 0.1.1- Mesaja teşekkür

phpBB 2.0.x sürümleri için geliştirilen ve yapım aşamasındaki Alpha, Beta MODlar & PreMODlar.
Kullanıcı avatarı
megaplatform
Kayıtlı Kullanıcı
Mesajlar: 818
Kayıt: 25.08.2006, 19:23
Konum: izmir
İletişim:

Mesaj gönderen megaplatform »

by-keskin yazdı:Mirach usta bu yazdığım isteklerin bazıları senin sitende var yardım edermisin ?
viewtopic.php de yapçagın değişiklik

Kod: Tümünü seç

#
#-----[BUL ]------------------------------------------
#

 //
        // Start Thank Post by User Mod
        //

        // If the user isn't anonymous
        if ($postrow[$i]['user_id'] != -1) {

           // From Users SQL
           $sql = "SELECT user_posts, user_thanks_given, user_thanks_received
                   FROM " . USERS_TABLE . "
                   WHERE user_id = " . $postrow[$i]['user_id'];

           if ( !($result = $db->sql_query($sql)) ) {
              message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
           }

           $user_row = $db->sql_fetchrow($result);
           $db->sql_freeresult($result);

           $thanks_given = $lang['Thanks_thanks'] . ': ' . $user_row['user_thanks_given'];
           $thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'] . ' ' . $user_row['user_posts'] . ' ' . $lang['Thanks_thanked_3'];

        }
        else {
           $thanks_given = "";
           $thanks_received = "";
        }

        //
        // End Thank Post by User Mod
        //

#
#-----[ Bununla Değiştir ]------------------------------------------
#

//
        // Start Thank Post by User Mod
        //

        // If the user isn't anonymous
        if ($postrow[$i]['user_id'] != -1) {

           // From Users SQL
           $sql = "SELECT user_posts, user_thanks_given, user_thanks_received
                   FROM " . USERS_TABLE . "
                   WHERE user_id = " . $postrow[$i]['user_id'];

           if ( !($result = $db->sql_query($sql)) ) {
              message_die(GENERAL_ERROR, "Could not obtain user information", '', __LINE__, __FILE__, $sql);
           }

           $user_row = $db->sql_fetchrow($result);
           $db->sql_freeresult($result);

           $thanks_given = $lang['Thanks_thanks'] . ' ' . $user_row['user_thanks_given'];
           $thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'];

        }
        else {
           $thanks_given = "";
           $thanks_received = "";
        }

        //
        // End Thank Post by User Mod
        //
       
lang_main için yapcağın değişiklik

Kod: Tümünü seç

#
#-----[BUL ]------------------------------------------
#

//
// Start Thank Post by User Mod by cupra
//

$lang['Thanks_title'] = 'Mesajı gönderen kullanıcılara Teşekkür';
$lang['Thanks_text'] = 'Bu kullanıcıya mesajı için Teşekkür';
$lang['Thanks_thanked_by'] = 'Bu mesaja Teşekkür eden kullanıcılar';

$lang['Thanks_thanks'] = 'Teşekkür Sayısı';
$lang['Thanks_thanked_1'] = 'Kendisine';
$lang['Thanks_thanked_2'] = 'kez teşekkür edildi, gönderdiği toplam mesaj';
$lang['Thanks_thanked_3'] = 'adettir.';

$lang['Thanks_not_logged_in'] = 'Foruma giriş yapmadınız.';
$lang['Thanks_no_post_specified'] = 'Mesaj belirlenemedi.';
$lang['Thanks_no_such_post'] = 'Mesaj mevcut değil.';
$lang['Thanks_anonymous'] = 'Misafir kullanıcılara teşekkür edilemez.';
$lang['Thanks_self'] = 'Kendi mesajınıza teşekkür edemezssiniz.';
$lang['Thanks_already_thanked'] = 'Bu mesaja daha önce teşekkür ettiniz.';
$lang['Thanks_success_1'] = 'Şu anda,';
$lang['Thanks_success_2'] = 'kullanıcısının bu başlıkta girmiş olduğu';
$lang['Thanks_success_3'] = 'mesajına başarıyla teşekkür ettiniz.';

//
// End Thank Post by User Mod by cupra 

#
#-----[Değiştir]------------------------------------------
#

//
// Start Thank Post by User Mod by cupra
//

$lang['Thanks_title'] = 'Mesajı gönderen kullanıcılara Teşekkür';
$lang['Thanks_text'] = 'Bu kullanıcıya mesajı için Teşekkür';
$lang['Thanks_thanked_by'] = 'Bu mesaja Teşekkür eden kullanıcılar';

$lang['Thanks_thanks'] = 'Ettiği Teşekkür:';
$lang['Thanks_thanked_1'] = 'Edilen Teşekkür:';
$lang['Thanks_thanked_2'] = '';

$lang['Thanks_not_logged_in'] = 'Foruma giriş yapmadınız.';
$lang['Thanks_no_post_specified'] = 'Mesaj belirlenemedi.';
$lang['Thanks_no_such_post'] = 'Mesaj mevcut değil.';
$lang['Thanks_anonymous'] = 'Misafir kullanıcılara teşekkür edilemez.';
$lang['Thanks_self'] = 'Kendi mesajınıza teşekkür edemezssiniz.';
$lang['Thanks_already_thanked'] = 'Bu mesaja daha önce teşekkür ettiniz.';
$lang['Thanks_success_1'] = 'Şu anda,';
$lang['Thanks_success_2'] = 'kullanıcısının bu başlıkta girmiş olduğu';
$lang['Thanks_success_3'] = 'mesajına başarıyla teşekkür ettiniz.';

//
// End Thank Post by User Mod by cupra
Kullanıcı avatarı
Ares
Kayıtlı Kullanıcı
Mesajlar: 390
Kayıt: 22.06.2006, 23:05
Konum: Mars
İletişim:

Mesaj gönderen Ares »

2. İstek;


Kod: Tümünü seç


AÇ => viewtopic.php

### BUL ### 

$thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'] . ' ' . $user_row['user_posts'] . ' ' . $lang['Thanks_thanked_3'];

### BUNUNLA DEĞİŞTİR ###

$thanks_received = $lang['Thanks_thanked_1'] . ' ' . $user_row['user_thanks_received'] . ' ' . $lang['Thanks_thanked_2'];

######

AÇ => language/lang_turkish/lang_main.php

### BUL ###

$lang['Thanks_thanked_2'] = 'kez teşekkür edildi, gönderdiği toplam mesaj';

### BUNUNLA DEĞİŞTİR ####

$lang['Thanks_thanked_2'] = 'kez teşekkür edildi.';

Diğer isteklere daha sonra bakmaya çalışacağım.
Kullanıcı avatarı
by-keskin
Kayıtlı Kullanıcı
Mesajlar: 425
Kayıt: 10.10.2006, 21:09
İletişim:

Mesaj gönderen by-keskin »

Sağolun arkadaşlar...
Osmanbükü Köyü Web Sitesi www.OsmanBükü.Net
karanima
Kayıtlı Kullanıcı
Mesajlar: 92
Kayıt: 04.09.2006, 20:29
İletişim:

Mesaj gönderen karanima »

harika oldu emeği olan herkese sonsuz teşekkür
ilhanfire
Kayıtlı Kullanıcı
Mesajlar: 87
Kayıt: 26.02.2007, 18:13
İletişim:

Mesaj gönderen ilhanfire »

merhaba bunun üst sürümü yaynınlanmış

[BETA] Thank Post by User 0.2.5a

by alexi02 on Mon Sep 11, 2006 7:07 am
MOD Title: Thank Post by User
MOD Description: Allows registered users to thank a post which was posted by another user
MOD Version: 0.2.5a

MOD Features:
- Able to thank users for specific posts
- View posts to see the users who have thanked them
- View a topic and see the number of times you have been thanked and the number of times you have thanked other users posts
- Use popups or use the current window

MOD Download: Thank Post by User 0.2.5a (9.38 KB)
Last Stable version: N/A

MOD Screenshot:
Viewtopic , Popup & No Popup

MOD History:
2006-10-29 - Version 0.2.5a
- Thanks icon updated

2006-10-23 - Version 0.2.5
- Bug Fix: Thanks button was sometimes displayed even though the user had thanked the post

2006-10-22 - Version 0.2.4
- Removes the thanks button from posts that the user has already thanked

2006-10-21 - Version 0.2.3
- Updated the way "Thanked 2 Times in 1 Posts" is displayed. Posts are now referred to the total number of posts that were thanked by other users instead of the user's total posts.

2006-10-19 - Version 0.2.2
- Bug Fix: Adjusted Thanked by row in viewtopic to wrap the users who thanked the post

2006-10-19 - Version 0.2.1
- Bug Fix: Moved Thanks icon back next to quote icon since the ICQ icon gets displayed over the thanks icon if the user has an ICQ number set (couldn't find a reasonable solution)

2006-09-27 - Version 0.2.0
- Moved Thanks icon to right hand side of where Profile, PM, links are displayed
- Made the username of people who thanked a user link to their profile
- Be able to select whether the thanks should popup or be displayed on the same page

2006-09-12 - Version 0.1.1
- Bug Fix: Thanks received wasn't updating correctly

2006-09-11 - Version 0.1.0
- Initial Release (for phpBB 2.0.21)

Author Notes:
A mod which allows you to thank a post that a user has posted.
When the Thanks button is pressed a page is displayed saying they have successfully thanked the user for their post.
You can choose whether that page should be a popup or not; by editing the $popup_enabled to 0 or 1 in viewtopic.php and thanks.php
If set to 0, the page displayed will automatically be redirected to the post in 5 seconds.

You can view the thanks given and thanks received by a user in the topic under their posts.
You are also shown the users who have thanked the specific post.


Please post any problems or ways to improve this mod here.
There is a thank topic mod around but not a thank post mod as far as I can tell.
As requested from http://www.phpbb.com/phpBB/viewtopic.php?t=440526
Kullanıcı avatarı
megaplatform
Kayıtlı Kullanıcı
Mesajlar: 818
Kayıt: 25.08.2006, 19:23
Konum: izmir
İletişim:

Mesaj gönderen megaplatform »

Kilitli

“2.0.x PreMODlar & Yapım aşamasındaki MODlar” sayfasına dön

Kimler çevrimiçi

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