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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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 \/
    PHP Code:
    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 :p 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 :P
    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 Code:
    <?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();

    ?>
    Attached Files
    Last edited by kevk3v; 10.01.13, 05:56.
    Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

    #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
    ------------------

    Comment


      #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:

      PHP Code:
      CREATE TABLE IF NOT EXISTS `shout` (
        `
      idmediumint(9NOT NULL AUTO_INCREMENT,
        `
      usertext NOT NULL,
        `
      messagetext NOT NULL,
        `
      timeint(10NOT NULL,
        
      PRIMARY KEY (`id`)
      ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=
      ... and check it for some period of time, for me its 24h:

      PHP Code:
      $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

      Comment


        #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 Code:
        <?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
        Last edited by kevk3v; 10.01.13, 22:37.
        Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

        Comment


          #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.
          PHP Code:
                      // 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&amp;shoutDel&amp;shouted='.$shoutid.'&amp;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&amp;id='.$id.'" class="buttom">Shout</a>'.PHP_EOL;
                          echo 
          '|<a href="./gb.php?a=shouthistory&amp;id='.$id.'">History</a>';
                          echo 
          '</div>'.PHP_EOL;
                      }
                      
          // And the rest of page... 
          And these are add pages and listing history.

          PHP Code:
                      /* 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&amp;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&amp;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($count0));
                      
          $all ceil($counter $shoutsonpage);
                      
          $page = isset($_GET['page']) ? realint($_GET['page']) : 1;
                      
          $cshout $page $shoutsonpage $shoutsonpage;
                      if (
          $page $all$page $all;
                      
          $start $page == : ($page 1) * $shoutsonpage;

                      
          bookhead('ShoutBox History');
                      echo 
          '<div class="center">'.PHP_EOL;
                      if (isset(
          $bookadmin)) {
                          echo 
          '<a href="./index.php?a=panel&amp;gbEdit&amp;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 == 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&amp;shoutDel&amp;shouted='.$shoutid.'&amp;id='.$id.'">[del]</a>'.PHP_EOL;
                              }
                              echo 
          '<br/>';
                              echo 
          '</div>'.PHP_EOL;
                          }
                          if (
          $counter $shoutsonpage) {
                              
          navigation('./gb.php?a=shouthistory&amp;id='.$id.'&amp;'$page$all);
                          }
                      } else {
                          echo 
          'No messages<br/>';
                      }
                      echo 
          '<div class="center"><a href="./gb.php?a=default&amp;id='.$id.'">'.$bookcs['title'].'</a></div>';
                      
          bookfoot();

                  }
          ?> 
          Of course, any suggestions are welcome.
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment


            #6
            Thanks
            i definitely got an idea, flood related lol...
            Last edited by kevk3v; 10.01.13, 18:42.
            Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

            Comment


              #7
              Welcome. Cool.
              <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

              Comment


                #8
                very nice sir

                Comment


                  #9
                  Originally posted by hi_jakkk View Post
                  very nice sir
                  thank yew
                  Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

                  Comment


                    #10
                    one suggestion ur gallery add it in catagories like for male and female and by users
                    ________________
                    Jacques
                    jacques@gw-designs.co.za
                    http://coding.biz.tm
                    Come join and lets make it a place to learn all the noobies how to code
                    __________________

                    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

                    Comment


                      #11
                      Nice!, thanks will do!
                      Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

                      Comment


                        #12
                        I cant InstalL it bitch

                        Comment


                          #13
                          Hmmm well, that's good.
                          It should stay that way...
                          Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

                          Comment


                            #14
                            Originally posted by Lynjun02 View Post
                            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

                            Comment


                              #15
                              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

                              Comment

                              Working...
                              X