The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

[help] Chatbox code for moderating.

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Solved [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 7th 2016, 9:01 pm

Hello to everyone. I'm struggling with my chatbox ... I want to make is:
1 - change the name of it
2 - Make it notify me when somebody send a new message like
here:
3 - auto log in and
this:
works , but not always... I'd like to get a little explanation or a point where i should paste those codes cuz i'm kinda bad with them ...
I have them
here:
But the tutorial that i've found in the forum says to paste them on Administrative panel>> Display >> Colors >> CSS Stylesheet
[img][/img]

This is the whole code that I used so far...
Code:
$(function(){
    if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');
    });

$(window).load(function() {
  var chatbox_script = function() {
    $('#chatbox > p > .msg > span').filter('[style="color:green"],[style="color:red"]').closest('p').remove();
    var overrided = Chatbox.prototype.refresh;
    Chatbox.prototype.refresh = function(data) {
      if (data.messages && data.messages.length) {
        data.messages = $.grep(data.messages, function(v) {
          return v.userId != -10 || $.inArray(v.msgColor, ["red", "green"]) == -1;
        });
      }
      overrided.call(this, data);
    };
  };
 
  var
s=document.createElement('script');s.text="("+chatbox_script.toString()+")();";$('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function(){try{$(this.contentDocument||this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function(){this.appendChild(s.cloneNode(true))})}catch(a){}})
});

$(window).load(function() {
  var chatbox_script = function() {
    $("a.chat-title").text("In Da Place");
  };
 
  var
s=document.createElement('script');s.text="("+chatbox_script.toString()+")();";$('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function(){try{$(this.contentDocument||this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function(){this.appendChild(s.cloneNode(true))})}catch(a){}})
});

window.localStorage && $(window).load(function() {
  var chatbox_script = function() {
    var t_icon = window.top.$.find('link[rel="shortcut icon"]')[0];
    var t_doc = window.top.document;
    var title = t_doc.title;
    var icon = t_icon.getAttribute('href');
 
    var rep_title = '!! New message !! '+title;
    var rep_icon = 'http://s301826463.onlinehome.fr/f/al.ico';
 
    $(window).on("focus", function(){ localStorage.cb_blurred='' }).on("blur", function(){ localStorage.cb_blurred=1; });
    var overrided = Chatbox.prototype.refresh;
    Chatbox.prototype.refresh = function(data) {
      if (data.messages && data.messages.length) {
        var lm = data.messages.slice(-1)[0];
        var last_message = lm.time+','+lm.action+','+lm.msg;
        if(this.last_message != last_message) {
          var user = $.grep(data.users, function(v){return v.id==chatbox.userId});
          user = user.length ? user[0] : [{}];
          if(this.last_message!==undefined) {
            if(lm.userId!=chatbox.userId && user.username!=lm.username) {
              if(localStorage.cb_blurred) (function(){
                var blink = function(){
                  if(title == t_doc.title) {
                    if(!localStorage.cb_blurred) return;
                    var new_title = rep_title;
                    var new_icon = rep_icon;
                  } else {
                    var new_title = title;
                    var new_icon = icon;
                  }
                  t_doc.title = new_title;
                  var new_t_icon = t_icon.cloneNode(true);
                  new_t_icon.setAttribute('href', new_icon);
                  var t_icon_parent = t_icon.parentNode;
                  t_icon_parent.removeChild(t_icon);
                  t_icon_parent.appendChild(new_t_icon);
                  t_icon = new_t_icon;
                  setTimeout(blink, 500);
                };
                blink();
              })();
            } else {
              localStorage.cb_blurred='';
            }
          }
          this.last_message = lm;
        }
      }
      overrided.call(this, data);
    };
  };
 
  var
s=document.createElement('script');s.text="("+chatbox_script.toString()+")();";$('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function(){try{$(this.contentDocument||this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function(){this.appendChild(s.cloneNode(true))})}catch(a){}})
});
I'm sorry if i posted it in the wrong topic or if i did something wrong... Sorry


Last edited by Deditoiu Bogdan on September 7th 2016, 11:35 pm; edited 1 time in total

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by SLGray on September 7th 2016, 11:18 pm

Please change the title of your topic to something that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.
Please read our forum rules: ESF General Rules



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 7th 2016, 11:34 pm

Oh, sorry Facepalm
don't know what was in my head Very Happy

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by SLGray on September 7th 2016, 11:37 pm



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 8th 2016, 2:08 am

I found this thread and tried to work with it : http://help.forumotion.com/t139284-codes-to-personalize-your-chatbox?highlight=chatbox
But some from there doesn't work or i can't do changes in it...
@Bogdan wrote:I'd like to get a little explanation or a point where i should paste those codes cuz i'm kinda bad with them ...
I'll look on the second link you sent and work on it after i get some sleep and come with a reply tomorrow Smile

EDIT: I took a fast peek on the second thread and there are more info about coloring and stuff like that. I have problems with the chat itself not designing it with colors ...

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Luffy on September 8th 2016, 4:23 am

Hello @Deditoiu Bogdan,

To the tutorial you found you only have to create the javascripts (one for each feature you want to install) and that's about it.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 8th 2016, 10:36 am

I understand but some features doesn't work/doesn't work properly/I can't change them...

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Luffy on September 8th 2016, 11:21 am

Which ones are not working exactly?






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 8th 2016, 12:08 pm

...
i can't change the name of the chat and i want to change the notification icon for a new message and to properly work.
The notification works sometimes, not everytime ... which is weird

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Luffy on September 8th 2016, 8:03 pm

The forum you are trying to do this is phpbb2 or phpbb3? Your profile says phpbb3 but your forum not.. Razz

Please post your forum url (that you are trying to do this) and if it's a phpbb2 please send me a test account in PM with the username and password to tell you how to fix the name of the chat. As for the notifications, the system will tell you you have a message whenever you are in an other tab. For example if you are on the forum and to Facebook, once a message comes it will show it. If you are browsing in the forum it wont unless you are where the chat is.. Wink






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Ch@lo Valdez on September 8th 2016, 11:17 pm

hi try this all your codes and login are in this code, remove and put this one

Code:

$(function () {
    if (document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives', 'mode=send&sent=');
});
window.localStorage && $(window).load(function () {
    var chatbox_script = function () {
        var t_icon = window.top.$.find('link[rel="shortcut icon"]')[0],
            t_doc = window.top.document,
            title = t_doc.title,
            icon = t_icon.getAttribute('href'),
            rep_title = '!! New message !! ' + title,
            rep_icon = 'http://s301826463.onlinehome.fr/f/al.ico',
            message_header = 'In Da Place';
        setTimeout(function(){ $('#chatbox_option_co:visible').click() }, 1000);
        $("a.chat-title").text(message_header);
        $('#chatbox > p > .msg > span').filter('[style="color:green"],[style="color:red"]').closest('p').remove();
        $(window).on("focus", function () {
            localStorage.cb_blurred = ''
        }).on("blur", function () {
            localStorage.cb_blurred = 1;
        });
        var overrided = Chatbox.prototype.refresh;
        Chatbox.prototype.refresh = function (data) {
            if (data.messages && data.messages.length) {

                var lm = data.messages.slice(-1)[0];
                var last_message = lm.time + ',' + lm.action + ',' + lm.msg;
                if (this.last_message != last_message) {
                    var user = $.grep(data.users, function (v) {
                        return v.id == chatbox.userId
                    });
                    user = user.length ? user[0] : [{}];
                    if (this.last_message !== undefined) {
                        if (lm.userId != chatbox.userId && user.username != lm.username) {
                            if (localStorage.cb_blurred)(function () {
                                var blink = function () {
                                    if (title == t_doc.title) {
                                        if (!localStorage.cb_blurred) return;
                                        var new_title = rep_title;
                                        var new_icon = rep_icon;
                                    } else {
                                        var new_title = title;
                                        var new_icon = icon;
                                    }
                                    t_doc.title = new_title;
                                    var new_t_icon = t_icon.cloneNode(true);
                                    new_t_icon.setAttribute('href', new_icon);
                                    var t_icon_parent = t_icon.parentNode;
                                    t_icon_parent.removeChild(t_icon);
                                    t_icon_parent.appendChild(new_t_icon);
                                    t_icon = new_t_icon;
                                    setTimeout(blink, 500);
                                };
                                blink();
                            })();
                        } else {
                            localStorage.cb_blurred = '';
                        }
                    }
                    this.last_message = lm;
                }
                data.messages = $.grep(data.messages, function (v) {
                    return v.userId != -10 || $.inArray(v.msgColor, ["red", "green"]) == -1;
                });
            }
            overrided.call(this, data);
        };
    };
    var
    s = document.createElement('script');
    s.text = "(" + chatbox_script.toString() + ")();";
    $('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function () {
        try {
            $(this.contentDocument || this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function () {
                this.appendChild(s.cloneNode(true))
            })
        } catch (a) {}
    })
});

if you want change titles and icon or message header use this var:

Code:
 rep_title = '!! New message !! ' + title,
            rep_icon = 'http://s301826463.onlinehome.fr/f/al.ico',
            message_header = 'In Da Place';

Smile
if work fine, let me know

Ch@lo Valdez
Forumember

Male Posts : 33
Reputation : 12
Language : spanish

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 9th 2016, 7:12 pm

@Luffy wrote:The forum you are trying to do this is phpbb2 or phpbb3? Your profile says phpbb3 but your forum not.. Razz

Please post your forum url (that you are trying to do this) and if it's a phpbb2 please send me a test account in PM with the username and password to tell you how to fix the name of the chat. As for the notifications, the system will tell you you have a message whenever you are in an other tab. For example if you are on the forum and to Facebook, once a message comes it will show it. If you are browsing in the forum it wont unless you are where the chat is.. Wink
Yes, but not always work that notification and i don't understand why...
About the forum, i think it's phpbb2 ... : http://kureijiunit.onegoo.net/

Still nobody told me where i should paste those codes ...
Valdez wrote:hi try this all your codes and login are in this code, remove and put this one


The chat still doesn't change it's name ...

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Luffy on September 9th 2016, 8:07 pm

Hey @Deditoiu Bogdan,

For the chatbox name to change to go:
Admin Panel > Display > Pics and colors > Colors > CSS Stylesheet > add this code in the stylesheet:
Code:
.chatbox a.cattitle:before {
  content: 'Chatbox Name'; /* Change the Chatbox Name text to the name you want your chatbox to be */
  font-size: 12px;
}
.chatbox a.cattitle { font-size: 0 }






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 9th 2016, 10:13 pm

Done, and still nothing...
I have that code on Modules>Javascript codes management too and i created a script with the code you sent me earlier

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Ch@lo Valdez on September 9th 2016, 10:32 pm

this:

Code:

.chatbox a.cattitle:before {
  content: 'Chatbox Name'; /* Change the Chatbox Name text to the name you want your chatbox to be */
  font-size: 12px;
}
.chatbox a.cattitle { font-size: 0 }

is CSS, no javascript

Ch@lo Valdez
Forumember

Male Posts : 33
Reputation : 12
Language : spanish

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 9th 2016, 11:37 pm

Well, it's in CSS and nothing happens T_T
And some of the codes doesn't work in css too... i think none of them works when i let them just in CSS ...
Only in Japascript work some of them ...
Now i deleted everything from javascript and left just the CSS codes... and nothing works.


Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by SLGray on September 9th 2016, 11:43 pm

Some of the codes from the tutorials are JavaScripts and some are CSS.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 9th 2016, 11:45 pm

I see, so what works for me are just those who are put in the Javascript, but the others doesn't change at all...
What could possibly be wrong?

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by SLGray on September 9th 2016, 11:54 pm

Add the CSS code to the top of your stylesheet.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 9th 2016, 11:57 pm

@SLGray wrote:Add the CSS code to the top of your stylesheet.
Ok! For no reason... the chat finally changed it's name! :O
I'd like to get directions on which code where to put cause i'm confused which where to put ... and how to properly use them ughh

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by SLGray on September 10th 2016, 12:11 am

If you are looking at a tutorial, it should say where to add the codes.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 10th 2016, 12:15 am

I am but maybe i'm dumb or blind and don't see where it points which one where to put...


bwi

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Luffy on September 10th 2016, 12:23 am

The images may be fooling you around but what the tutorial says is nowhere near what i think you understood. The tutorial, at the point you took the screenshot was saying that with these codes you may create some ways of you styling better the chatbox using the CSS. That's why that picture was there.

So in the tutorial there are some scripts. Those scripts you add them to your Javascript list. (Make sure they are enabled first)
You will have to make new Javascript for each one you add. That way you ensure they will work.

Also, the code i gave you above works with CSS. You do not need the javascript for changing the name of the chat since you can do it more easily and with no use of javascripts.

That is all! :rose:






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 10th 2016, 12:28 am

The photos are made by me pointing at the tutorial.
The Name changer worked in CSS no idea how tho...

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Luffy on September 10th 2016, 12:35 am

@Deditoiu Bogdan you don't have to do anything. Simply add the code and if it doesn't work then add
Code:
!important
to it and it should work like a charm! Smile

Edit: As far as i can see you changed the name with the code i gave you so it works as it is. All you have to do is delete (if you added) the javascript that changes the chatbox's name.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Ch@lo Valdez on September 10th 2016, 2:56 am

@Deditoiu Bogdan

again you put css with javascript


remove this:
Code:

#
chatbox.recently - connected: after {
    font - family: "trebuchet ms", serif;
    font - size: 1.5e m;
    line - height: 1.5e m;
    font - weight: bold;
    color: #8BC34A;box-shadow:0 0 5px# AED581;
    display: block;
    background: #F1F8E9;
    margin: auto;
    width: 80 % ;
    margin: 1.5 % auto;
    padding: 1 % ;
    white - space: pre;
    content: "Welcome to the chatbox =D \a If you are alone, place a log on the fire."
}

Ch@lo Valdez
Forumember

Male Posts : 33
Reputation : 12
Language : spanish

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Ch@lo Valdez on September 10th 2016, 6:57 am

ok i made all code works in phpbb2



replace all chat javascript for this one:

Code:

$(function () {
    if (document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives', 'mode=send&sent=');
});
window.localStorage && $(window).load(function () {
    var chatbox_script = function () {
        var t_icon = window.top.$.find('link[rel="shortcut icon"]')[0],
            t_doc = window.top.document,
            title = t_doc.title,
            icon = t_icon.getAttribute('href'),
            rep_title = '!! New message !! ' + title,
            rep_icon = 'http://s301826463.onlinehome.fr/f/al.ico',
            message_header = 'In Da Place';
        setTimeout(function () {
            $('#chatbox_option_co:visible').click();
            $('#chatbox').addClass('recently-connected');
            setTimeout(function () {
                $('#chatbox').removeClass('recently-connected')
            }, 180000)
        }, 1000);
        $('a[href="/chatbox/index.forum"]').text(message_header);
        $('#chatbox > p > .msg > span').filter('[style="color:green"],[style="color:red"]').closest('p').remove();
        $(window).on("focus", function () {
            localStorage.cb_blurred = ''
        }).on("blur", function () {
            localStorage.cb_blurred = 1;
        });
        var overrided = Chatbox.prototype.refresh;
        Chatbox.prototype.refresh = function (data) {
            if (data.messages && data.messages.length) {
                var lm = data.messages.slice(-1)[0];
                var last_message = lm.time + ',' + lm.action + ',' + lm.msg;
                if (this.last_message != last_message) {
                    var user = $.grep(data.users, function (v) {
                        return v.id == chatbox.userId
                    });
                    user = user.length ? user[0] : [{}];
                    if (this.last_message !== undefined) {
                        if (lm.userId != chatbox.userId && user.username != lm.username) {
                            if (localStorage.cb_blurred)(function () {
                                var blink = function () {
                                    if (title == t_doc.title) {
                                        if (!localStorage.cb_blurred) return;
                                        var new_title = rep_title;
                                        var new_icon = rep_icon;
                                    } else {
                                        var new_title = title;
                                        var new_icon = icon;
                                    }
                                    t_doc.title = new_title;
                                    var new_t_icon = t_icon.cloneNode(true);
                                    new_t_icon.setAttribute('href', new_icon);
                                    var t_icon_parent = t_icon.parentNode;
                                    t_icon_parent.removeChild(t_icon);
                                    t_icon_parent.appendChild(new_t_icon);
                                    t_icon = new_t_icon;
                                    setTimeout(blink, 500);
                                };
                                blink();
                            })();
                        } else {
                            localStorage.cb_blurred = '';
                        }
                    }
                    this.last_message = lm;
                }
                data.messages = $.grep(data.messages, function (v) {
                    return v.userId != -10 || $.inArray(v.msgColor, ["red", "green"]) == -1;
                });
            }
            overrided.call(this, data);
            $('.chatbox-username').each(function () {
                this.previousSibling && $.trim(this.previousSibling.nodeValue) == "@" && $(this.previousSibling).replaceWith('<img src="http://i.imgur.com/zICIAne.png" /> ')
            });
        };
    };
    var
        s = document.createElement('script');
    s.text = "(" + chatbox_script.toString() + ")();";
    $('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function () {
        try {
            $(this.contentDocument || this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function () {
                this.appendChild(s.cloneNode(true))
            })
        } catch (a) {}
    })
});

in css panel paste this:

Code:

#chatbox.recently-connected:after {
  font-family: "trebuchet ms", serif;
  font-size: 1.5em; line-height:1.5em; font-weight: bold; color: #8BC34A;
  box-shadow:0 0 5px #AED581; display:block; background: #F1F8E9; margin:auto;
  width:80%; margin:1.5% auto; padding:1%; white-space: pre;
  content: "Welcome to the chatbox =D \a If you are alone, place a log on the fire.";
}

change the text, if you want :
Code:
 content: "Welcome to the chatbox =D \a If you are alone, place a log on the fire.";

Smile

@Deditoiu Bogdan

Ch@lo Valdez
Forumember

Male Posts : 33
Reputation : 12
Language : spanish

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Deditoiu Bogdan on September 10th 2016, 1:00 pm

Okey so, Thank you @Ch@lo Valdez ! The Codes from java and CSS works perfectly !
i have small things i'd like to know if they can be changed.
I'd like to change that clock icon from the notification with this pic : http://imgur.com/a/HAl0z
But i can't change it...

Deditoiu Bogdan
New Member

Posts : 21
Reputation : 1
Language : Romanian

http://kureijiunit.onegoo.net/

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Ch@lo Valdez on September 10th 2016, 5:04 pm

replace this line of the js code:

Code:
 rep_icon = 'http://s301826463.onlinehome.fr/f/al.ico',

this:

Code:
rep_icon = 'http://i97.servimg.com/u/f97/17/46/52/67/favico10.png',



Ch@lo Valdez
Forumember

Male Posts : 33
Reputation : 12
Language : spanish

Back to top Go down

Solved Re: [help] Chatbox code for moderating.

Post by Ch@lo Valdez on September 10th 2016, 5:07 pm

and now, you can remove this CSS:

Code:

.chatbox a.cattitle:before {
  content: 'Chatbox Name'; /* Change the Chatbox Name text to the name you want your chatbox to be */
  font-size: 12px;
}
.chatbox a.cattitle { font-size: 0 }

Ch@lo Valdez
Forumember

Male Posts : 33
Reputation : 12
Language : spanish

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum