Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.38 veröffentlicht (30.04.24)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Thank You 2.0
#1
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
*
Zitieren
#2
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 ;
Zitieren
#3
Lösche per phpMyAdmin die Tabelle "mybb_thx".
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#4
Danke Smile
Zitieren
#5
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.
Zitieren
#6
Hast du einen Link?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#7
ja Forum zu finden auf hpconnect.hp.funpic.de
Zitieren
#8
Kannst du mal den Inhalt des Templates "headerinclude" posten?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#9
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
Zitieren
#10
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>
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Thank You/Like System MyBB.de Bot 150 34.448 26.09.2023, 11:45
Letzter Beitrag: UweJ
  Thank You/Like System MyBB.de Bot 158 41.148 16.03.2016, 21:19
Letzter Beitrag: chris171
  Thank You MyBB System + Rep + MyAlerts MyBB.de Bot 4 2.973 25.03.2015, 14:36
Letzter Beitrag: Marcin
  Thank You Mod 3.0.4 MyBB.de Bot 20 9.273 25.07.2008, 10:00
Letzter Beitrag: StefanT
  Thank You (3.0.3) MyBB.de Bot 6 3.820 04.12.2007, 18:25
Letzter Beitrag: Puppsmuffel