[ABD] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
ke5hav
I've Been Banned!
Posts: 16
Joined: Wed Apr 30, 2008 9:19 am

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by ke5hav » Mon May 05, 2008 2:13 pm

i have install ajax chat and it is working but only prob is the message is appearing like this


Fri May 02, 2008 6:48 pm
hi all
k5

how can i make it appear like this?

k5 « Fri May 02, 2008 6:48 pm » hi all


thanks

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by jimcarrel » Mon May 05, 2008 3:25 pm

Is your style, prosilver or subsilver based?
I'm guessing it is subsilver, and you uploaded the prosilver template.
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

ke5hav
I've Been Banned!
Posts: 16
Joined: Wed Apr 30, 2008 9:19 am

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by ke5hav » Mon May 05, 2008 4:11 pm

no its vista skin.

thx

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by jimcarrel » Mon May 05, 2008 9:07 pm

Vista skin or not, what you are asking for is the subsilver code, have you tried converting what you find in the subsilver template to prosilver?
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by jimcarrel » Mon May 05, 2008 9:11 pm

this looks like subsilver code to me,

Code: Select all

<table class="tablebg2" width="100%" cellspacing="0" cellpadding="0" style="margin-top: 5px;">
	<tr>
		<td class="cat">
			<p class="breadcrumbs"><a href="./index.php?style=138">Board index</a></p>
			<p class="datetime">All times are UTC + 1 hour </p>
		</td>
	</tr>
	</table>
	<br /><table cellspacing="0" width="100%">
<tr>
	<td class="none" colspan="5" align="right">&nbsp;</td>
</tr>
</table>
I pulled that right out of the Vista style.

I think you should use the subsilver template for the chat. Then you will get:
k5 « Fri May 02, 2008 6:48 pm » hi all
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

iBotPeaches
Registered User
Posts: 131
Joined: Tue Jul 24, 2007 12:38 am
Location: Vahalla
Contact:

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by iBotPeaches » Thu May 08, 2008 2:37 am

I was wondering a few things. First why are the posts so big? I'm not trying to complain but Paul's chatbox causes too many style errors on my forum so I stick with yours. I believe yours is better but theres lots of things I find too much of a hassle.

Why can't I place it on global_header? so the chatbox can be everywhere? It fails all pages, but index_body when I do that?

The delete button only puts 3 posts per page, and that goes by in like 2 seconds. I deleted the delete button through some custom coding and changed the height, and fixed it in IE7, made the user side bar 5 percent bigger so all usernames can fix, changed the indent from 5 pixels to 2. And now I can fit 5 posts per view and it looks nice. I do wish however to change all the information into the way Paul's is (the information like USERNAME « DATE » MESSAGE) I tried the one above this, but thats subsilver and creates errors.

Here is my customized chat_body.html. I don't need to here hows its coded badly, it works in both IE7 and FF so its golden in my book.


So in short I'm asking for a fix for a (USERNAME « DATE » MESSAGE) in that format.
But I'm offering my index_body to look at, or use if you need one to work in both IE7 and FF and fit more posts.

Code: Select all

<!-- IF S_GET_CHAT -->
	<!-- IF S_READ or S_ADD -->
		<!-- BEGIN chatrow -->
			<div id="p{chatrow.MESSAGE_ID}" class="post bg{chatrow.CLASS}">
				<div class="inner"><span class="corners-top"><span></span></span>
					<div class="postbody">
						<p class="author">{chatrow.TIME} </p>
						
						<div class="content">{chatrow.MESSAGE}</div>
					</div>
					<dl class="postprofile" id="profile{postrow.POST_ID}">
						<dt>{chatrow.USERNAME_FULL}</dt>
					</dl>
					<span class="corners-bottom"><span></span></span>
				</div>
			</div>
		<!-- END chatrow -->---{LAST_ID}
		<!-- IF S_WHOISONLINE -->---
			<!-- BEGIN whoisrow -->
				<div>
					<div class="inner">
						<div class="user"><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /> : {whoisrow.USERNAME_FULL}</div>
					</div>
				</div>
			<!-- END whoisrow -->---{LAST_TIME}---{DELAY}---{LAST_POST}
		<!-- ENDIF -->
	<!-- ENDIF -->
<!-- ELSE -->
	<!-- IF S_CHAT -->
		<!-- INCLUDE overall_header.html -->
	<!-- ENDIF -->
	<script type="text/javascript">
	<!--
	var fieldname = 'chat';
	var last_time = 0;
	var xmlHttp = http_object();
	var last_id = {LAST_ID};
	var type = 'receive';
	var post_time = {TIME};
	var read_interval = 15000;
	var interval = setInterval('handle_send("read", last_id);', read_interval);

	function handle_send(mode, f)
	{
		if (xmlHttp.readyState == 4 || xmlHttp.readyState == 0)
		{
			indicator_switch('on');
			type = 'receive';
			param = 'mode=' + mode;	
			param += '&last_id=' + last_id;
			param += '&last_time=' + last_time;			
			param += '&last_post=' + post_time;			
			param += '&read_interval=' + read_interval;			
	
			if (mode == 'add' && document.text.message.value != '')
			{
				type = 'send';
				for(var i = 0; i < f.elements.length; i++)
				{ 
					elem = f.elements[i]; 
					param += '&' + elem.name + '=' + encodeURIComponent(elem.value); 
				}
				document.text.message.value = '';
			}
			else if (mode == 'delete')
			{
				type = 'delete';
				param += '&chat_id=' + f;
			}
			xmlHttp.open("POST", '{FILENAME}', true);
			xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			xmlHttp.onreadystatechange = handle_return;
			xmlHttp.send(param);
		}
	}
	
	function handle_return()
	{
		if (xmlHttp.readyState == 4)
		{
			if (type != 'delete')
			{
				results = xmlHttp.responseText.split('---');
				if (results[1])
				{
					if (last_id == 0)
					{
						document.getElementById(fieldname).innerHTML = results[0];
					}
					else
					{
						document.getElementById(fieldname).innerHTML = results[0] + document.getElementById(fieldname).innerHTML;
					}
					last_id = results[1];
					if (results[2])
					{
						document.getElementById('whois_online').innerHTML = results[2];
						last_time = results[3];
						if (results[4] != read_interval * 1000)
						{
							window.clearInterval(interval);
							read_interval = results[4] * 1000;
							interval = setInterval('handle_send("read", last_id);', read_interval);
							document.getElementById('update_seconds').innerHTML = results[4];
						}
						post_time = results[5];
					}
				}
			}
			indicator_switch('off');
		}
	}
	
	function delete_post(chatid)
	{
		document.getElementById('p' + chatid).style.display = 'none';
		handle_send('delete', chatid);
	}
	
	function indicator_switch(mode)
	{
		if(document.getElementById("act_indicator"))
		{
			var img = document.getElementById("act_indicator");	
			if(img.style.visibility == "hidden" && mode == 'on') 
			{
				img.style.visibility = "visible";
			}
			else if (mode == 'off')
			{
				img.style.visibility = "hidden"
			}	
		}
	}
	
	function http_object()
	{
		if (window.XMLHttpRequest)
		{
			return new XMLHttpRequest();
		}
		else if(window.ActiveXObject)
		{
			return new ActiveXObject("Microsoft.XMLHTTP");
		}
		else
		{
			document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object.  Consider upgrading your browser.';
		}
	}
	-->
	</script>
	<style type="text/css">
	<!--
		#act_indicator {
			visibility:hidden;
		}
		.shouts {
			width: 80%;
			height:300px;
			overflow:auto;
			float:left;
		}
		#chat {
			width: 100%;
			text-align:left;
		}
		.postprofile {
			min-height: 5px !important;
		}
		.chatform {
			width: 90%;
			text-align:center;
		}
		.onlinelist {
			width: 20%;
			overflow:auto;
			height:300px;
		}
		.users {
			width: 80%;
			text-align: left;
			text-indent: 0px;
			margin-left:auto;
			margin-right:auto;
		}
		.user {
			width: 95%;
			font-size: 1.1em;
			font-family:Verdana, Arial, Helvetica, sans-serif;
			line-height: 1.4em;
		}
		#act_indicator {
			visibility: hidden;
		}
		.chatinput {width: 80% !important;}
		.online_img {
			vertical-align:middle;
		}
	-->
	</style>
	<!-- IF S_USER_LOGGED_IN -->
		<div class="forabg">
			<div class="inner">
				<span class="corners-top"><span></span></span>
				<div class="chatform" align="center">			
					<form name="text" id="text" method="post" action="javascript:void(0);" onsubmit="handle_send('add', this)" autocomplete="off">
						<strong style="color: white;">{L_MESSAGE}:</strong> <input type="text" tabindex="1" name="message" id="message" class="inputbox chatinput" />
						<input type="submit" class="button1" value="{L_SUBMIT}" name="submit" tabindex="6" accesskey="s"/><br />
					</form>
				</div>
				<span class="corners-bottom"><span></span></span>
			</div>
		</div>
	<!-- ENDIF -->
	<div class="forabg" align="left">
		<div class="inner">
			<span class="corners-top"><span></span></span>
			<div class="shouts">
				<div id="chat">
					<!-- BEGIN chatrow -->
						<div id="p{chatrow.MESSAGE_ID}" class="post bg{chatrow.CLASS}">
							<div class="inner"><span class="corners-top"><span></span></span>
								<div class="postbody">
									<p class="author">{chatrow.TIME} </p>
									
									<div class="content">{chatrow.MESSAGE}</div>
								</div>
								<dl class="postprofile" id="profile{postrow.POST_ID}">
									<dt>{chatrow.USERNAME_FULL}</dt>
								</dl>
								<span class="corners-bottom"><span></span></span>
							</div>
						</div>
					<!-- END chatrow -->
				</div>
			</div>
			<div class="onlinelist bg1">
				<div class="users" id="whois_online">
					<!-- BEGIN whoisrow -->
						<div>
							<div class="inner">
								<div class="user"><img src="{T_IMAGESET_PATH}/{whoisrow.USER_STATUS}.png" class="online_img" /> {whoisrow.USERNAME_FULL}</div>
							</div>
						</div>
					<!-- END whoisrow -->
				</div>
			</div>
			<span class="corners-bottom"><span></span></span>
		</div>
	</div>
	<div class="forabg" align="center">
		<div class="inner">
			<span class="corners-top"><span></span></span>
			<div class="post">
				<div id="author">{L_DETAILS}
					<img src="{T_IMAGESET_PATH}/act_indicator.gif" id="act_indicator" />
					<strong>• {L_UPDATES} <span id="update_seconds">{DELAY}</span> {L_UNIT}</strong>
				</div>
			</div>
			<span class="corners-bottom"><span></span></span>
		</div>
	</div>
	<!-- IF S_CHAT -->
		<!-- INCLUDE overall_footer.html -->
	<!-- ENDIF -->
<!-- ENDIF -->
Image

User avatar
Kingdombuilder
Registered User
Posts: 91
Joined: Sat Apr 26, 2008 7:48 am
Location: Flint, MI
Contact:

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by Kingdombuilder » Mon May 12, 2008 4:39 am

Does Ajax Chat/Shoutbox Mod work with the Carbon Copy theme, i guess i ask because the instruction only mention the two themes - prosilver & subsilver2
Handyman` wrote:Classification: Add-on
phpBB Part: Forum
MOD Name: AJAX Chat
MOD Version: 2.0.0 Beta 8
Author: Handyman
MOD Description: This Mod Adds AJAX Chat to your forum.
Demo: AJAX Chat MOD Demo
Users can chat without ever needing to reload the page.

Works with:
  • RC7, RC8, phpBB3 Gold
run this query after you install the chat for RC7 and above

Code: Select all

ALTER TABLE phpbb_chat CHANGE bbcode_uid bbcode_uid varchar(8) NOT NULL default '';
Features:
  • AJAX Technology
  • No page re-loading required
  • Ability for Admins to delete posts in the Chat
  • Shows who's online in the Chat
Language: English

Licence: GNU General Public License v2

Screenshots: in action, On main page
Installation Level: Easy
Installation Time: ~3 Minutes
Format: Image
Download File: Download

Roadmap
  • Add smilies button
  • Show smilies in chat room
  • Multiple Rooms (Progress = 25%)
  • Report Post/Users
  • Add Quote Button
  • Enable Author Delete
  • Private Rooms
  • Send Chat Requests
  • Reset Chat button
  • Avatar Thumbnails with Fullsize Rollovers.
  • Chat Logs
My Mod Roadmap: http://startrekguide.com/forum/f100-mod ... html#p8507
Last edited by Kingdombuilder on Tue May 13, 2008 4:25 am, edited 1 time in total.
Image

jukel
Registered User
Posts: 9
Joined: Fri Dec 28, 2007 6:54 pm

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by jukel » Mon May 12, 2008 7:41 pm

Hi, could you make a small upgrading that on index people can see something like "now is chating XY people"? Thanks
Last edited by jukel on Thu May 15, 2008 11:32 am, edited 1 time in total.

cruisnpt
Registered User
Posts: 7
Joined: Mon Apr 14, 2008 5:49 am
Location: California - USA

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by cruisnpt » Mon May 12, 2008 9:53 pm

I manage a forum where we allow public viewing of the forum, but restrict posting ability to members only.

I'm thinking about adding Shoutbox to my forum but I have a question or two. First, Does Shoutbox allow for restricting posting in the shout to "approved" posters only? Second, I'm using phpBB version 3.0.0 with prosilver, Where can I find documentation on Ajax Shoutbox for the stated version of phpBB? I've done some searching and have not found anything.

Thanks

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by jimcarrel » Wed May 14, 2008 9:16 pm

the documentation are on these 42 pages.
you can restrict viewing and/or posting with file edits, available in these forty two pages.
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

drewtscott
Registered User
Posts: 152
Joined: Wed Jan 04, 2006 9:51 pm

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by drewtscott » Wed May 14, 2008 9:33 pm

What is the easiest way to implement a "can chat" permission so that the use of the chatbox can be restricted? Are there plans to continue the development of this mod?

tiagoum
Registered User
Posts: 4
Joined: Thu Apr 17, 2008 2:55 am

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by tiagoum » Thu May 15, 2008 9:48 am

Hi there.

Someone can explain to me how to uninstall this chat box please?

maca
Registered User
Posts: 2
Joined: Thu May 15, 2008 10:06 am

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by maca » Thu May 15, 2008 10:10 am

hello,

I have problem displaying chat on my index page. My hosting admins installed mod and i can see it in control panel and on groups i can set what can do what, but i dont see chat on index site, anyone have some idea?

maca
Registered User
Posts: 2
Joined: Thu May 15, 2008 10:06 am

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by maca » Thu May 15, 2008 1:09 pm

maca wrote:hello,

I have problem displaying chat on my index page. My hosting admins installed mod and i can see it in control panel and on groups i can set what can do what, but i dont see chat on index site, anyone have some idea?
ok it was cache problem, i delete it and now i can see like category "shoutbox", but cant see still chat :/ anyone?

KRB99
Registered User
Posts: 392
Joined: Sun Jan 20, 2008 1:24 am
Location: Canada
Name: Kyle

Re: [Beta] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by KRB99 » Fri May 16, 2008 3:15 pm

how about adding an on/off button so it doesnt have to be installed and uninstalled and installed every time its needed?

Locked

Return to “[3.0.x] Abandoned MODs”