Cum fac sa apara asa in chat?

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
User avatar
Time4ever
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 2206
Joined: 24 Jul 2013, 01:30
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (1 luna)
Utilizator neserios (tepar)
Restrictie moderator
Location: Ibiza
Has thanked: 36 times
Been thanked: 247 times

12 Sep 2013, 11:14

Cum fac sa apara avatar-ul in chat ??

Image
RoyalServer 2
User avatar
Madalinutz
Membru, skill +1
Membru, skill +1
Posts: 429
Joined: 20 Jan 2012, 23:30
Detinator Steam: Da
CS Status: mataq
Detinator server CS: Nu
SteamID: majestick109
Reputatie: Membru Club eXtreamCS (1 luna)
Location: Los Angeles
Has thanked: 13 times
Been thanked: 43 times
Contact:

12 Sep 2013, 13:15

cred ca este un mod pentru phpbb3 :-?
Ok!
User avatar
Tyler
Membru, skill +2
Membru, skill +2
Posts: 860
Joined: 05 Jul 2013, 23:53
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (o luna)
Has thanked: 75 times
Been thanked: 131 times
Contact:

12 Sep 2013, 15:36

Madalinutz wrote:cred ca este un mod pentru phpbb3 :-?
Dacă nu ştii de ce faci +1 ca un copil handicapat?

ON: Trebuie modificat chat.js .. Uite aici o soluţie:

Code: Select all

 //Checks if the user is chatbot
        if (userName == 'ChatBot'){
            //Places the chatbot avatar in the variable
            var AvatarPic = '<img src="img/chatbot.png"></img> ';
        }
        else{
            //Places the UNIQUE user avatar in the variable
            //outcome of this will be: <img title="UniqueUserName" alt="UniqueUserName" src="img/userID.png"></omg>
            var AvatarPic = '<img title="'
                        + userName
                        +'" alt="'
                        + userName
                        + '" src="img/'
                        + userID
                        +'.png"></img> ';
        }

        //Here is where everything is written to chat           
        return  '<div id="'
                + this.getMessageDocumentID(messageID)
                + '" class="'
                + rowClass
                + '">'
                + this.getDeletionLink(messageID, userID, userRole, channelID)
                + dateTime
                //This is where the Avatar Line is inserted (just before the AjaxChat username
                + AvatarPic         
                + '<span class="'
                + userClass
                + '"'
                + this.getChatListUserNameTitle(userID, userName, userRole, ip)
                + ' dir="'
                + this.baseDirection
                + '" onclick="ajaxChat.insertText(this.firstChild.nodeValue);">'
                + userName
                + '</span>'
                + colon
                + this.replaceText(messageText)
                + '</div>';
Image
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Vând conturi League of Legends cu level cuprins între 20-30. Diferite divizii, campioni şi skinuri.
La alegere, Unranked sau o divizie specifică. Toate au acelaşi preţ: 25 lei paysafe/bucată.
Comenzi customizate: Dacă nu deţin cont cu specificaţiile dorite de tine, îmi laşi cât mai multe detalii (campioni, skinuri, divizie) şi am să fac rost în cel mai scurt timp. Plată 50% în avans. Desigur, dacă contul depăşeşte numărul normal de campioni şi skinuri, preţul va fi mai mare.
User avatar
sUperstar
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3321
Joined: 01 Mar 2013, 23:08
Detinator Steam: Da
Reputatie: Restrictie moderator [abuz de functie]
Fost eXtream mod
Utilizator neserios (tepar!)
Has thanked: 42 times
Been thanked: 97 times

12 Sep 2013, 18:16

Saau , instaleaza mChat .
RIPPLE FAUCET - Castiga pana la 1 Ripple pe zi!
User avatar
Mădălin
Administrator
Administrator
Posts: 5295
Joined: 06 Mar 2013, 21:40
Detinator Steam: Nu
Reputatie: Administrator
Fost manager cs.extream.ro
Web designer
Administratorul anului 2023
Has thanked: 45 times
Been thanked: 310 times
Contact:

12 Sep 2013, 22:55

Tyler wrote:
Madalinutz wrote:cred ca este un mod pentru phpbb3 :-?
Dacă nu ştii de ce faci +1 ca un copil handicapat?

ON: Trebuie modificat chat.js .. Uite aici o soluţie:

Code: Select all

 //Checks if the user is chatbot
        if (userName == 'ChatBot'){
            //Places the chatbot avatar in the variable
            var AvatarPic = '<img src="img/chatbot.png"></img> ';
        }
        else{
            //Places the UNIQUE user avatar in the variable
            //outcome of this will be: <img title="UniqueUserName" alt="UniqueUserName" src="img/userID.png"></omg>
            var AvatarPic = '<img title="'
                        + userName
                        +'" alt="'
                        + userName
                        + '" src="img/'
                        + userID
                        +'.png"></img> ';
        }

        //Here is where everything is written to chat           
        return  '<div id="'
                + this.getMessageDocumentID(messageID)
                + '" class="'
                + rowClass
                + '">'
                + this.getDeletionLink(messageID, userID, userRole, channelID)
                + dateTime
                //This is where the Avatar Line is inserted (just before the AjaxChat username
                + AvatarPic         
                + '<span class="'
                + userClass
                + '"'
                + this.getChatListUserNameTitle(userID, userName, userRole, ip)
                + ' dir="'
                + this.baseDirection
                + '" onclick="ajaxChat.insertText(this.firstChild.nodeValue);">'
                + userName
                + '</span>'
                + colon
                + this.replaceText(messageText)
                + '</div>';
Chat.js? Serios? Există în root doar chat.php şi shout.php... Scriptul acela de sus, e cu totul altceva îţi zic eu.
ON: Înstalează direct mchat, ai avatare, sunet, bbcode, toate porcăriile la el..
Post Reply

Return to “Discutii generale”

  • Information