Cum fac sa apara avatar-ul in chat ??
Cum fac sa apara asa in chat?
Moderators: Moderatori ajutatori, Moderatori
- Madalinutz
- 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:
cred ca este un mod pentru phpbb3 :-?
Ok!
- Tyler
- 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:
Dacă nu ştii de ce faci +1 ca un copil handicapat?Madalinutz wrote:cred ca este un mod pentru phpbb3 :-?
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>';
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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.
- Mădălin
- 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:
Chat.js? Serios? Există în root doar chat.php şi shout.php... Scriptul acela de sus, e cu totul altceva îţi zic eu.Tyler wrote:Dacă nu ştii de ce faci +1 ca un copil handicapat?Madalinutz wrote:cred ca este un mod pentru phpbb3 :-?
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>';
ON: Înstalează direct mchat, ai avatare, sunet, bbcode, toate porcăriile la el..
-
- Information
-
Who is online
Users browsing this forum: alabun, Bing [Bot], csredstars, renegade, Semrush [Bot] and 468 guests