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.

LG Chat Help?

View previous topic View next topic Go down

Solved LG Chat Help?

Post by ReturnOfPeyton on July 17th 2012, 7:12 am

I am trying to add LG chat to my forum, but it isn't working.
I created a new widget with this code inside
Code:
<script src="http://avacweb.net/FM/Public/lgchatv4.5.js" type="text/javascript"></script>
<div id="userId" style="display:none">{USERLINK}</div>
<div id="LGchatbtn" class="LGchatBtn" onclick="LGchatShowHide('LGchat');" onmousedown="savelst();"> Chat </div>
<span id="chatcount" class="LGchatBtn" onclick="LGchatShowHide('LGchatOnlineUsers');"></span>
<div id="LGchatOnlineUsers" style="display:none;"></div>
<div style="display:none;text-align:left;" id="LGchat">To PM a user in the chatbox use this structure: '/pm username: message' for example '/pm LGforum: hi there!'.<div id="lgchatholder"><iframe name="LGchat" style="width:99%;height:450px;margin-top:5px;border:none" src="/chatbox/index.forum?archives=1" onload="LGchatStart();"></iframe></div>
<div id="lgtogglesnd" onclick="togglelgsound();" style="cursor:pointer;">Sound is: <span class="snd" id="sndon">On</span>
<span class="snd" style="display:none;" id="sndoff">Off</span>
</div></div>


Then I put this in my CSS
Code:
  /**** LG CHAT STYLING ****/
    #LGchat {
      background: #e8e8e8; /* EDITABLE - Color of block around outside */
      width: 80%;
      float: right;
      z-index: 999;
      position: fixed;
      right: 5px;
      bottom: 30px;
      margin: 0px;
      padding: 3px;
    }
    #LGchatbtn {
      width: 90px;
      right: 40px;
      height: 24px;
    }
    .LGchatBtn {
      background: #CADCEB; /* EDITABLE - Background color of buttons */
      cursor: pointer;
      line-height: 22px;
      color: #105289; /* EDITABLE - Color of border and text of buttons */
      font-family: Tahoma,Verdana,Arial;
      font-size: 13px;
      font-weight: bold;
      text-align: center;
      -moz-border-radius: 6px;
      border-radius: 6px ;
      border:1px solid;
      position: fixed;
      bottom: 1px;
    }
    .LGchatBtn:hover { color: #d31141;} /* EDITABLE - Color of text and border of buttons on hover */
    .chatPM { display: none;border: 1px solid #105289;padding: 3px;margin: 3px;font-size: 13px;}
    #LGchatOnlineUsers .online{background-image: none;}
    #chatcount {  width: 35px;  right: 2px;  height: 24px;}
    #LGchatOnlineUsers {
      height: 400px; /* EDITABLE - height of the online box */
      width: 200px; /* EDITABLE - width of the online box */
      border: 2px solid #105289; /* EDITABLE - border of online box */
      border-radius: 6px;
      position: fixed;
      right: 5px;
      bottom: 30px;
      z-index: 999;
      background: #fff; /* EDITABLE - Background color of online box */
    }
    #LGchatOnlineUsers h4 {
      background-color: #105289;  /* EDITABLE - Background color of header of online box */
      font-size: 14px;
      text-align: center;
      margin-top: 0px;
      margin-bottom: 5px;
      color: #fff;  /* EDITABLE -  color of text in the header of online box */
      padding: 3px 0px;
    }
    #lgtogglesnd {  font-weight: bold;  color: #000;  /* EDITABLE - color of sound toggling button */
    margin: 5px;  width: 100px;}
    #LGsticky {
      position: absolute;
      top: 30px; right: 0px; left: 0px;
      border: 1px solid #c05; /* EDITABLE - Border color of sticky message box. */
      background: #e1ebf2; /* EDITABLE - Background color of sticky message box */
      padding: 4px;
      text-align: center;     
    }


Then I created a new Javascript page with this code
Code:
/* LG CHAT OPTIONS */
  var LGbgColor = '#FFFFFF',
  newMsgColor = 'blue',
  newMsgSoundSrc='http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3',
  updateTime=1500,
  PMpermissions='1,2',
  savePermissions='1,2',
  LGchat_title='TSP Chat',
  LGautoLog=false,
  LG_sticky=false;

 /* END OF LG CHAT OPTIONS */

Here is the website I am trying to get the chat from: http://www.avacweb.net/FM/Public/installLGchat.html

Here is my Forum. It uses PunBB.
http://tsphq.forumotion.com/


Last edited by ReturnOfPeyton on July 18th 2012, 2:23 am; edited 1 time in total

ReturnOfPeyton
Forumember

Posts : 37
Reputation : 1
Language : English

Back to top Go down

Solved Re: LG Chat Help?

Post by LGforum on July 17th 2012, 1:05 pm

What isnt working? Is it not showing up, is it not opening?

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: LG Chat Help?

Post by ReturnOfPeyton on July 17th 2012, 1:24 pm

@LGforum wrote:What isnt working? Is it not showing up, is it not opening?

Yayy, the creator.
It seems I am doing everything correctly, but It just does not show up.

ReturnOfPeyton
Forumember

Posts : 37
Reputation : 1
Language : English

Back to top Go down

Solved Re: LG Chat Help?

Post by ebi on July 17th 2012, 1:58 pm

Could it be that you didnt activate the chat? same thing happened to me yesterday I fixed it by activating the chat and clicking on no display.

ebi
New Member

Posts : 23
Reputation : 3
Language : english

Back to top Go down

Solved Re: LG Chat Help?

Post by ReturnOfPeyton on July 17th 2012, 1:59 pm

@ebi wrote:Could it be that you didnt activate the chat? same thing happened to me yesterday I fixed it by activating the chat and clicking on no display.

Do I need to activate Chat to use this 3rd party chat though?

ReturnOfPeyton
Forumember

Posts : 37
Reputation : 1
Language : English

Back to top Go down

Solved Re: LG Chat Help?

Post by LGforum on July 17th 2012, 2:20 pm

Yes. Its not a third party chat, its just a javascript implementation, utilizing the internal Forumotion chat.

If after activating the chat you can't get it to work. Check your browsers error console for errors which may be disrupting things.

If after that, then I'd recommend using FMChat, its practically the same, the only thing its missing is the private messaging system that LGChat has. Sorry LGChat became an abandoned project a long time ago. However, I have recently been considering resurrecting it and making some improvements.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: LG Chat Help?

Post by ReturnOfPeyton on July 17th 2012, 3:30 pm

@LGforum wrote:Yes. Its not a third party chat, its just a javascript implementation, utilizing the internal Forumotion chat.

If after activating the chat you can't get it to work. Check your browsers error console for errors which may be disrupting things.

If after that, then I'd recommend using FMChat, its practically the same, the only thing its missing is the private messaging system that LGChat has. Sorry LGChat became an abandoned project a long time ago. However, I have recently been considering resurrecting it and making some improvements.

I got it working but, the only thing it did was make the notification sound, and it didn't change anything else.
What is wrong? Mad

ReturnOfPeyton
Forumember

Posts : 37
Reputation : 1
Language : English

Back to top Go down

Solved Re: LG Chat Help?

Post by ReturnOfPeyton on July 18th 2012, 2:21 am

Rideem3 wrote:What do you mean it didn't change anything else? Do the commands work, and do the new buttons work?

I got it working. Thanks for the replies everyone.

ReturnOfPeyton
Forumember

Posts : 37
Reputation : 1
Language : English

Back to top Go down

Solved Re: LG Chat Help?

Post by kirk on July 18th 2012, 3:31 am

@ReturnOfPeyton wrote:
Rideem3 wrote:What do you mean it didn't change anything else? Do the commands work, and do the new buttons work?

I got it working. Thanks for the replies everyone.

Topic Solved & Locked

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

View previous topic View next topic Back to top


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