MyBB.de Forum
Thank You 2.0 - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Veröffentlichungen und -Support (https://www.mybb.de/forum/forum-82.html)
+--- Thema: Thank You 2.0 (/thread-19585.html)

Seiten: Seiten: 1 2 3 4 5 6 7 8 9


Thank You 2.0 - MyBB.de Bot - 28.06.2007

Eine neue Erweiterung wurde veröffentlicht: Thank You 2.0

Zitat:Version 2.0
Compatible with MyBB 1.2.x
Feb 7th 2007


Goal:
Have the ability thank someone for his post.

Installation:
Upload thx.php to ./inc/plugins
Upload thx.lang.php to ./inc/languages/YOUR LANGUAGE.
Upload postbit_thx.gif to ./images/english
Go to Admin CP > Board Settings > Plug-in Manager > Activate

Description:
A new button will appear beside the “reply” button in each postbit; however, only when the post doesn’t belong the user who posted it. By clicking on this button you add a thank note to that thread and you username should appear along to the date in the designated place for thanks below each post you thank.


[Bild: http://i4.tinypic.com/47mattl_th.jpg]

[Bild: http://i12.tinypic.com/4ccbec3_th.jpg]


You can specify the number of thanks to show before the show all link appear from Admin CP > Board Settings > Change > Thank you

Features:
  • Gives the ability to a member to thank someone for a post.
  • Inline updating (Ajax).
  • Inline error messages.
  • Nice looking place to show all thanks notes.
  • Extra thank notes will be hidden, until the user clicks the 3 dots.
  • Permissions control guests and post owner.
  • Set the amount that will show before a Show All link appears.
  • Easy Activate/Deactivate.

Translating
For translations download the button from here.
Also you need to edit ./inc/languages/english/thx.lang.php and submit it here.

Upgrading
No previous version is compatible with 1.2.x.

Credits:
Zaher1988 – TECHEX – The Site
*



fettes Problem zum Thx Plugin - Speedrun - 01.10.2007

Hallöchen ich hab das bedanken plugin version 1

und mittlerweile schon die Version 2 runtergeladen

bei beiden kommt:

MySQL error: 1050
Table 'mybb_thx' already exists
Query: CREATE TABLE mybb_thx ( txid INT UNSIGNED NOT NULL AUTO_INCREMENT , uid int( 10 ) NOT NULL , adduid int( 10 ) NOT NULL , pid int( 10 ) NOT NULL , tid int( 10 ) NOT NULL , time bigint(30) NOT NULL, PRIMARY KEY ( txid ) ) TYPE = MYISAM ;


RE: Thank You 2.0 - StefanT - 01.10.2007

Lösche per phpMyAdmin die Tabelle "mybb_thx".


RE: Thank You 2.0 - Speedrun - 01.10.2007

Danke Smile


Frage zum Bedanken plugin - Speedrun - 02.10.2007

Hallo

Ich bin nun soweit gekommen, dass ich mybb_thx aus dem phpMyAdmin gelöscht habe
und das Plugin erneut hochgeladen hab.

Beim aktivieren zeigt es auch an das alles inordung sei.
Aber wenn ich bei einem Beitrag auf den Thanks-Button klicke
tut sich rein garnichts.

Kann mir da vielleicht jemand erklären was die Ursache dafür sein könnte?

greetz speed.


RE: Thank You 2.0 - StefanT - 02.10.2007

Hast du einen Link?


RE: Thank You 2.0 - Speedrun - 06.10.2007

ja Forum zu finden auf hpconnect.hp.funpic.de


RE: Thank You 2.0 - StefanT - 06.10.2007

Kannst du mal den Inhalt des Templates "headerinclude" posten?


RE: Thank You 2.0 - Speedrun - 06.10.2007

Hier der Inhalt:

PHP-Code:
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<
link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<
meta http-equiv="Content-Type" content="text/html; charset={$charset}/>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.lite.js?ver=121"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/moo.ajax.js?ver=121"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=121"></script>
<
script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=121"></script>
<
link rel="stylesheet" type="text/css" href="{$theme['css_url']}/>
<
script language="Javascript" type="text/javascript">
<!--
    var 
cookieDomain "{$mybb->settings['cookiedomain']}";
    var 
cookiePath "{$mybb->settings['cookiepath']}";
    var 
newpm_prompt "{$lang->newpm_prompt}";
    var 
deleteevent_confirm "{$lang->deleteevent_confirm}";
    var 
removeattach_confirm "{$lang->removeattach_confirm}";
    var 
loading_text '{$lang->ajax_loading}';
    var 
saving_changes '{$lang->saving_changes}';
// -->
</script>

                            {
$newpmmsg



RE: Thank You 2.0 - StefanT - 07.10.2007

Füge vor {$newpmmsg} das ein:
Code:
<script language="javascript" type="text/javascript">
function thxFunction(uid,puid,pid,tid){
    var ajaxRequest;  // The variable that makes Ajax possible!
    
    try{
        // Opera 8.0+, Firefox, Safari
        ajaxRequest = new XMLHttpRequest();
    } catch (e){
        // Internet Explorer Browsers
        try{
            ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try{
                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e){
                // Something went wrong
                alert("Ajax request was not established!");
                return false;
            }
        }
    }
    // Create a function that will receive data sent from the server
    var txDisp = "displayThx" + pid + tid;
    var trDisp = "displayThxtr" + pid + tid;
    var ajaxDisplay = getbyID(txDisp);
    ajaxRequest.onreadystatechange = function()
    {
        if(ajaxRequest.readyState == 4)
        {
            getbyID(trDisp).style.display= '';         
            ajaxDisplay.innerHTML = ajaxRequest.responseText;
        }
        else
        {
            ajaxDisplay.innerHTML = '<div><img src="./images/spinner.gif" /></div>';
        }
    }

    var queryString = "&uid=" + uid + "&adduid=" + puid + "&pid=" + pid + "&tid=" + tid;
    ajaxRequest.open("GET", "xmlhttp.php?action=thankyou" + queryString, true);
    ajaxRequest.send(null);

}
function getbyID(id)
{
    var box= '';
    if(document.all && !document.getElementById)
    {
        return box = document.all.id;
    }
    else if(document.getElementById)
    {
        return box = document.getElementById(id);
    }
    else
    {
        return box = document.layers[id];
    }
}
function expandCollapse(id)
{
    var check = id.split('_');
    var div =  getbyID(id);

    if(check[2] == 'e')
    {
        if(div && div.style)
        {
            div.style.display = '';
            getbyID('expcol_'+id).href = getbyID('expcol_'+id).href.replace('_e', '_c');
            getbyID('expcol_'+id).id = getbyID('expcol_'+id).id.replace('_e', '_c');
            div.id = div.id.replace('_e', '_c');
        }
    }
    else
    {
        if(div && div.style)
        {
            div.style.display = 'none';
            getbyID('expcol_'+id).href = getbyID('expcol_'+id).href.replace('_c', '_e');
            getbyID('expcol_'+id).id = getbyID('expcol_'+id).id.replace('_c', '_e');
            div.id = div.id.replace('_c', '_e');
        }
    }
}
</script>