TTCOMMUNITY V1.3 :) SEO friendly forums, notification improvements and more!!...

Started on the old forum in January 2013 · view the original in the archive · old links redirect here

#aiochat #chat #kevk3v #script #ttcommunity

36 replies · 6,874 views · started 13 years ago · 1 min read

TL;DR · summary of 36 replies
  • francis11 asked how to fix an Internal Server Error.
  • metulj suggested checking mod_rewrite settings or removing .htaccess files.
  • sisore needed help with installing the script and importing SQL files.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

17 participants
kevk3v Senior · 332 posts #1

What's New? Seo friendly profiles, forums, userlist etc... Poking back, replying to messages will automatically delete the notifications Notifications added to chat rooms, so you can get notified when someone pms you, pokes you etc... while you are chatting User specific friends, photos added Find friends by country, username, email added BBcodes added User specific colors added to forums Change password added, upon users requests Chat history won't go over 10 pages, edit chat.php to disable Robot added to chat rooms, automatically disables itself when more than 5 users are online open head.php find /

if($online<6) { $chuckles = 'enabled'; }

*edit to tweak robot /* You can see if someone sends a message @you when you are not in a chat room (this was planned to add) A star was added to be next to all the admins username! 🙂 Another iphone related error in the uploader fixed Status added to the top of users profiles Hmmm.... what else lol.... Oh sent messages added, shows the latest 1000 only... How to guide added, and shows tips to users first login only... You can now use smileys by clicking on them while in chat rooms Admins can delete pics, topics, users on the fly... sorry i had to add this due to perverts And thats it... i think 😉 Features Mobile chatrooms, PC Compatibe Over 800 animated smileys Notifications Private messaging Shoutbox Photo Albums Different Themes Forums / Discussion Custom profile layouts - Add embed music, videos, background pics, colors, tons of major sites supported - even pornhub lol 😛 jk but true >.< AI chatbot / games and many more... Installation Upload, extract, edit file in inc/config.php, import aiochat.sql Bug Fixes/ Additions Bug in the formus fixed Chat room settings added, colors etc 😛 Pokes, photo comments Fixed horoscope problems, my coding this time.. Get notified when someone pms you, unfriends you etc... Search users added Random members pics added to main page Some smiley errors fixed Added find girls and find guys to the userlist and more lol 🙂 enjoyy script is only 3mb in size (: Demo Version 1.2 Demo <-- Not my site 100% clean first user to register becomes admin automatically improved auto ban, curl bots results in ip ban etc lol Admin Can ban, unban edit, delete forums, sticky make admins edit shout clear whatever they want optimize, repair tables to avoid overhead edit room names and more also to add a smiley just upload in the img/smilies directory 🙂

Don't forget to post a reply or hit thanks if you like this post, and don't come to my site asking for help, ask right here...

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see Licenses - GNU Project - Free Software Foundation (FSF)

Added after 12 minutes:

Ok for the person who asked for pm to all users... PM to all users:

<?php

include("inc/config.php");
include("inc/head.php");

$from = "admin"; ///change to suit

$message = "Welcome to my new site! =]";

$sql = mysql_query("SELECT * FROM members");

while($row = mysql_fetch_assoc($sql))
{
$user = $row["username"];
mysql_query("INSERT INTO pm VALUES ('$user','$from','$message')");
}

include("inc/foot.php");

exit();

?>

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

Attachments: www.zip Capture9.JPG Capture09.JPG Capture8.JPG Capture7.JPG Capture6.JPG Capture5.JPG Capture4.JPG Capture3.JPG Capture2.JPG
spiderwebs Developer · 193 posts #2

glad you doing great with your script 🙂

E107 Security Team Leader Proudly Support AccountLab Plus Billing Software

Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com

arnage Lead · 811 posts #3

Nice. 🙂

Who is blane7? 😊

Just a little tip. Maybe you could add time for shoutbox to delete shouts it self, add time in table:

CREATE TABLE IF NOT EXISTS `shout` (
  `id` mediumint(9) NOT NULL AUTO_INCREMENT,
  `user` text NOT NULL,
  `message` text NOT NULL,
  `time` int(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

... and check it for some period of time, for me its 24h:

$past24time = time() - (24 * 60 * 60);
$query = mysql_query('SELECT * FROM `shout` WHERE `time` < '.$past24time.'');
	if (mysql_num_rows($query))
		@mysql_query('DELETE FROM `shout` WHERE `time` < '.$past24time.'');

And close mysql connection somewhere, maybe in the bottom of foot.php is the quickest. 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
kevk3v Senior · 332 posts #4

Thanks mate, every shout has its own id from 1 to whatever, so they can check if the shouts are more than a number and delete the last one like this... 🙂 I totally forgot that btw... but i will add it in the next release

<?php

$sql = mysql_query("SELECT * FROM shout");

///below will check if there are more than 15 shouts, and delete the last 1...
///15 shouts = 5 pages, 3 per page....

if(mysql_num_rows($sql)>15)
{

$query = mysql_query("SELECT * FROM shout ORDER BY id ASC LIMIT 1");
$id = mysql_fetch_assoc($query);

$last_id = $id["id"]; ///the very last shout

mysql_query("DELETE FROM shout WHERE id='$last_id'");

////done =] just add in shoutbox.php after include("inc/head.php");

}
?>

btw, i'm using a persistent connection 😉

Who is blane7?

and that i dont know lol

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

arnage Lead · 811 posts #5

Np mate, you are welcome, i'm sure that your head is full with stuff about the script, its hard to think on everything. 🙂

Anyway this is how i wrote shoutbox for my guest book service script so maybe you or someone get some idea. I think that names of vars and functions are pretty much intuitive, but if someone don't understand something just ask. I've just change a few table names... 😉

This is listing.

			// Some code before...
			if ($bookc['showshout'] > 0) {
				echo '<div class="center">'.PHP_EOL;

				$past24time = realtime() - (24 * 60 * 60);
				$query = mysql_query('SELECT * FROM `table_shoutbox` WHERE `row_time` < '.$past24time.' AND `gb` = '.$id.'');
				if (mysql_num_rows($query))
					@mysql_query('DELETE FROM `table_shoutbox` WHERE `row_time` < '.$past24time.' AND `gb` = '.$id.'');

				$showshouts = 3;
				$shoutquery = mysql_query('SELECT * FROM `table_shoutbox` WHERE `gb` = '.$id.' ORDER BY `table_shoutbox`.`row_time` DESC LIMIT '.$showshouts.'');
				if (mysql_num_rows($shoutquery)) {
					while ($shoutdata = mysql_fetch_array($shoutquery)) {
						$shoutid = realint($shoutdata['sbid']);
						$shouttime = realint($shoutdata['time']);
						$shoutname = $shoutdata['name'];
						$shoutmessage = $shoutdata['message'];
						if ($bookc['smilesin'] == 1) {
							$shoutmessage = smilies($shoutmessage);
						}
						echo formattime('H:i,s', $shouttime, $booktz).' <b>'.$shoutname.'</b>: '.$shoutmessage.'';
						if ($bookadmin || is_admin() || is_mod()) {
							echo ' <a href="./gb.php?a=admin&shoutDel&shouted='.$shoutid.'&id='.$id.'">[del]</a>'.PHP_EOL;
						}
						echo '<hr style="border: 1px outset #595955;">';
					}
				} else {
					echo 'No messages<br/>';
				}
				echo PHP_EOL.'<a href="./gb.php?a=addshout&id='.$id.'" class="buttom">Shout</a>'.PHP_EOL;
				echo '|<a href="./gb.php?a=shouthistory&id='.$id.'">History</a>';
				echo '</div>'.PHP_EOL;
			}
			// And the rest of page...

And these are add pages and listing history.

			/* Add shout and list history pages */
 elseif ($a == 'addshout') {
			if (isset($_POST['shoutbox']) && $_POST['shoutbox'] == 'Shout') {
				$name = isset($_POST['shoutboxname']) ? cutstr(convert($_POST['shoutboxname']), 30) : '';
				$message = isset($_POST['shoutboxmessage']) ? ((mb_strlen($_POST['shoutboxmessage'], 'UTF-8') < 200)
				? convert($_POST['shoutboxmessage']) : cutstr(convert($_POST['shoutboxmessage']), 200)."...")
				: '';
				$message = nonl($message);

				$shoutboxerror = false;
				if ($name == '' || $message == '') {
					$shoutboxerror = '<b>Please enter your nick and message!</b><br/>';
				}
				$shoutflood = realtime() - 60;
				$floodquery = mysql_query('SELECT `row_time` FROM `table_shoutbox` WHERE '
										.'`gb` = '.$id.' AND `ip` = "'.get_user_ip().'" AND `browser` = "'.get_user_agent().'" AND `row_time` > '.$shoutflood.'');
				if (mysql_num_rows($floodquery)) {
					$result = mysql_fetch_assoc($floodquery);
					$flood = realtime() - $result['time'];
					$shoutboxerror = '<b>You will be able to write again in '.formattime('s', $flood).' seconds.</b><br/>';
				}
				if (empty($shoutboxerror)) {

					sleep(1);

					@mysql_query('INSERT INTO `table_shoutbox` VALUES '
					.'(\'\', \'\', '.$id.', "'.$name.'", "'.$message.'", "'.get_user_ip().'", "'.get_user_agent().'", "'.realtime().'")');
					$insertid = mysql_insert_id();
					@mysql_query("UPDATE `table_shoutbox` SET `sbid` = ".$insertid." WHERE `id` = ".$insertid."");

					location('./gb.php?id='.$id.'');

				} else {

					sleep(1);

					bookhead('Error');
					echo '<div class="center">'.$shoutboxerror.'</div>'.PHP_EOL;
						unset($shoutboxerror);
					echo '<div class="center">'.PHP_EOL;
					echo '<form method="post" action="./gb.php?a=addshout&id='.$id.'" enctype="multipart/form-data">'.PHP_EOL;
					echo '<div>'.PHP_EOL;
					echo '<b>Nick:</b> <br/> <input type="text" name="shoutboxname" size="15" maxlength="30" value=""/><br/>'.PHP_EOL;
					echo '<b>Message:</b> <br/> <input type="text" name="shoutboxmessage" size="30" maxlength="200" value=""/><br/>'.PHP_EOL;
					echo '<input type="submit" name="shoutbox" value="Shout"/>'.PHP_EOL;
					echo '</div>'.PHP_EOL;
					echo '</form>'.PHP_EOL;
					echo '</div>';
					bookfoot();

				}
			} else {

				bookhead('ShoutBox');
				echo '<div class="center">'.PHP_EOL;
				echo '<form method="post" action="./gb.php?a=addshout&id='.$id.'" enctype="multipart/form-data">'.PHP_EOL;
				echo '<div>'.PHP_EOL;
				echo '<b>Nick:</b> <br/> <input type="text" name="shoutboxname" size="15" maxlength="30" value=""/><br/>'.PHP_EOL;
				echo '<b>Message:</b> <br/> <input type="text" name="shoutboxmessage" size="30" maxlength="200" value=""/><br/>'.PHP_EOL;
				echo '<input type="submit" name="shoutbox" value="Shout"/>'.PHP_EOL;
				echo '</div>'.PHP_EOL;
				echo '</form>'.PHP_EOL;
				echo '</div>';
				bookfoot();

			}
		} elseif ($a == 'shouthistory') {
			$bookcs = mysql_fetch_array(mysql_query('SELECT * FROM `table_book_conf` WHERE `gb` = '.$id.''));
			$shoutsonpage = realint($bookcs['mesonpage']);

			$count = mysql_query('SELECT COUNT(*) FROM `table_shoutbox` WHERE `gb` = '.$id.'');
			$counter = realint(mysql_result($count, 0));
			$all = ceil($counter / $shoutsonpage);
			$page = isset($_GET['page']) ? realint($_GET['page']) : 1;
			$cshout = $page * $shoutsonpage - $shoutsonpage;
			if ($page > $all) $page = $all;
			$start = $page == 1 ? 0 : ($page - 1) * $shoutsonpage;

			bookhead('ShoutBox History');
			echo '<div class="center">'.PHP_EOL;
			if (isset($bookadmin)) {
				echo '<a href="./index.php?a=panel&gbEdit&id='.$id.'">Go to <b>'.$bookcs['title'].'</b> settings</a><br/>'.PHP_EOL;
				echo 'Shouts are automaticly deleted after 24 hours when its posted.<br/>'.PHP_EOL;
			}
			echo '<a href="'.gokey('./going.php?', $bookcs['urlsite']).'"><span class="si_y">'.$bookcs['sitename'].'</span></a> | '.$bookcs['title'].''.PHP_EOL;
			echo '</div>'.PHP_EOL;

			$shouthistory = mysql_query('SELECT * FROM `table_shoutbox` WHERE `gb` = '.$id.' ORDER BY `table_shoutbox`.`row_time` DESC LIMIT '.$start.', '.$shoutsonpage.'');
			if (mysql_num_rows($shouthistory)) {
				$i = 0;
				while ($shoutdata = mysql_fetch_array($shouthistory)) {
					$shoutid = realint($shoutdata['sbid']);
					$shouttime = realint($shoutdata['time']);
					$shoutname = $shoutdata['name'];
					$shoutmessage = $shoutdata['message'];
					if ($bookcs['smilesin'] == 1) {
						$shoutmessage = smilies($shoutmessage);
					}
					$cshout++;
					$div = ($i % 2 == 0) ? 'maintitle' : 'ttitle';
					$i++;
					echo '<div class="'.$div.'">'.PHP_EOL;
					echo '#'.$cshout.'. '.formattime('H:i,s', $shouttime, $booktz).' <b>'.$shoutname.'</b>: '.$shoutmessage.'';
					if ($bookadmin || is_admin() || is_mod()) {
						echo ' <a href="./gb.php?a=admin&shoutDel&shouted='.$shoutid.'&id='.$id.'">[del]</a>'.PHP_EOL;
					}
					echo '<br/>';
					echo '</div>'.PHP_EOL;
				}
				if ($counter > $shoutsonpage) {
					navigation('./gb.php?a=shouthistory&id='.$id.'&', $page, $all);
				}
			} else {
				echo 'No messages<br/>';
			}
			echo '<div class="center"><a href="./gb.php?a=default&id='.$id.'">'.$bookcs['title'].'</a></div>';
			bookfoot();

		}
?>

Of course, any suggestions are welcome.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
kevk3v Senior · 332 posts #6

Thanks 🙂 i definitely got an idea, flood related lol...

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

arnage Lead · 811 posts #7

Welcome. Cool. 🙂

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
softwarefreak Senior · 349 posts #13

Lynjun02 wrote: I cant InstalL it bitch

Sir, pls watch your words.

Look we are so gentle & polite, not even abusing u back asshole lol

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

kevk3v Senior · 332 posts #14

I guess this was for what i told barbara on facebook, what goes around comes around lol

Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

francis11 Newbie · 6 posts #15

How to fix this error?? Kindly help me..

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log

metulj Super moderator Principal · 1,726 posts #16

francis11 wrote: Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log

remove or rename ALL .htaccess files or enable mod_rewrite on server

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

raddien Newbie · 4 posts #17

k3v good Job but on your forum how can we add share links to facebook twitter,e.t.c? any help concerning these

sisore Newbie · 1 posts #18

Hello, sorry to bother you. You said installation will be "Upload, extract, edit file in inc/config.php, import aiochat.sql".

My question is which part of them i should edit? How can i import the sql? Is there any action i should take to activate it? Is it okay to edit config.php first before being uploaded? Because i have uploaded them all into my hosting but the page is plain blank :|

Sorry, but im a total noob in site building lol. Many thanks 😀

Mudy Newbie · 9 posts #19

i like this script, i will try it

Mudy Newbie · 9 posts #20

wat to do if member lost password?

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close