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
#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


Nachrichten in diesem Thema
Thank You 2.0 - von MyBB.de Bot - 28.06.2007, 14:22
RE: Thank You 2.0 - von SunnyDays - 24.12.2011, 19:46
RE: Thank You 2.0 - von StefanT - 25.12.2011, 11:32
fettes Problem zum Thx Plugin - von Speedrun - 01.10.2007, 17:33
Frage zum Bedanken plugin - von Speedrun - 02.10.2007, 11:29
[Frage]Thx 2.0 - von TopM2 - 06.04.2010, 13:13
RE: [Frage]Thx 2.0 - von Kenny - 06.04.2010, 13:21
RE: [Frage]Thx 2.0 - von StefanT - 06.04.2010, 13:24
RE: [Frage]Thx 2.0 - von TopM2 - 06.04.2010, 13:24

Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Thank You/Like System MyBB.de Bot 157 36.857 23.02.2025, 20:09
Letzter Beitrag: StefanT
  Thank You/Like System MyBB.de Bot 158 43.146 16.03.2016, 21:19
Letzter Beitrag: chris171
  Thank You MyBB System + Rep + MyAlerts MyBB.de Bot 4 3.105 25.03.2015, 14:36
Letzter Beitrag: Marcin
  Thank You Mod 3.0.4 MyBB.de Bot 20 9.594 25.07.2008, 10:00
Letzter Beitrag: StefanT
  Thank You (3.0.3) MyBB.de Bot 6 3.952 04.12.2007, 18:25
Letzter Beitrag: Puppsmuffel