WordPress.org

Ready to get started?Download WordPress

Forums

Simple Ajax Chat
[resolved] Sidebar Chat (3 posts)

  1. leegmiller
    Member
    Posted 6 months ago #

    Hey wondering if anyone can help I am trying to use the chatbox on a sidebar so it appears on the side of the website with the contents on the left hand side but when i resize the chatbox as it is now the input fields are at the side and looks messy.
    Would someone be able to give me the codes or let me know what to change to where so i can fit it into the side.
    Example screenshot i found on another site.
    Click to view Example Image
    I would like 250px by 400px sized with chatwindow on top with users who are logged in displays names when sending message and users who arent logged in is given default guest names but no choice to change it.

    I have no knowledge of php so i am pretty much stuck may be someone can help. Thanks.

    http://wordpress.org/plugins/simple-ajax-chat/

  2. leegmiller
    Member
    Posted 6 months ago #

    update: i disabled the CSS and that seems to have fixed the problem :D but i have another question I want the chat to go up, i mean when i type something i want it to show at the bottom of the page rather then top and scroll up as the chat fills up. Any Idea on how to achieve this? what would i have to edit. Thanks.

  3. leegmiller
    Member
    Posted 6 months ago #

    Resolved my problem , figured out the codes for CSS and learnt some bits.

    div#simple-ajax-chat{
    	height:359px;
    	overflow:hidden;
    	background-color:#34b489;
    	border:1px solid #34b489;
    	font-size:12px;
    	width:100%;
    	}
    
    div#sac-output {
      height:270px;
      overflow:auto;
      padding-left:17px;
      float:right;
      background-color:#ffffff;
      width:99%;
    }
    
    #sac-user-info {
    	padding-top:1px;
    	padding-bottom:1px;
    	padding-right:2px;
    	padding-left:2px;
    
    }
    
    #sac_name {
    	border:1px solid #848484;
    	border-bottom-left-radius:5px;
    	border-bottom-right-radius:5px;
    	border-top-left-radius:5px;
    	border-top-right-radius:5px;
    	float:right;
    	height:20px;
    	width:99%;
    }
    
    #sac-user-chat{
    	padding-top:0px;
    	padding-bottom:1px;
    	padding-right:2px;
    	padding-left:2px;
    
    }
    
    #sac_chat {
    	border:1px solid #848484;
    	border-bottom-left-radius:5px;
    	border-bottom-right-radius:5px;
    	border-top-left-radius:5px;
    	border-top-right-radius:5px;
    	float:right;
    	height:20px;
    	width:99%;
    }
    
    #sac-user-submit{
    	padding-top:2px;
    	padding-bottom:1px;
    	padding-right:2px;
    	padding-left:2px;
    
    }
    
    #submitchat{
    	float:right;
    	height:30px;
    	width:99%;
    }
    .submit {
    	-moz-box-shadow:inset 0px 1px 0px 0px #1bb37e;
    	-webkit-box-shadow:inset 0px 1px 0px 0px #1bb37e;
    	box-shadow:inset 0px 1px 0px 0px #1bb37e;
    	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #50deac), color-stop(1, #34b489) );
    	background:-moz-linear-gradient( center top, #50deac 5%, #34b489 100% );
    	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#50deac', endColorstr='#34b489');
    	background-color:#50deac;
    	-webkit-border-top-left-radius:5px;
    	-moz-border-radius-topleft:5px;
    	border-top-left-radius:5px;
    	-webkit-border-top-right-radius:5px;
    	-moz-border-radius-topright:5px;
    	border-top-right-radius:5px;
    	-webkit-border-bottom-right-radius:5px;
    	-moz-border-radius-bottomright:5px;
    	border-bottom-right-radius:5px;
    	-webkit-border-bottom-left-radius:5px;
    	-moz-border-radius-bottomleft:5px;
    	border-bottom-left-radius:5px;
    	text-indent:0;
    	border:1px solid #2da37a;
    	display:inline-block;
    	color:#ffffff;
    	font-family:Verdana;
    	font-size:14px;
    	font-weight:bold;
    	font-style:normal;
    	height:30px;
    	line-height:30px;
    	width:100px;
    	text-decoration:none;
    	text-align:center;
    	text-shadow:1px 1px 0px #2c8f6c;
    }
    .submit:hover {
    	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #34b489), color-stop(1, #50deac) );
    	background:-moz-linear-gradient( center top, #34b489 5%, #50deac 100% );
    	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#34b489', endColorstr='#50deac');
    	background-color:#34b489;
    }.submit:active {
    	position:relative;
    	top:1px;
    }

    If any changes required that will make it work better please suggest.

    Also i want the chat to Ascend rather then Descend if any idea i changed the code from DESC to ASC but didnt work.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.