[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.
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

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

Post by mej284 »

Phrozius wrote:Well I got this working.. kinda.. it functions but the formating is all outa wack

http://www.qldaeromodeler.com

If you have the time can you have a peek and make a suggestion.

Cheers.

Open: Index_body.html
Find:

Code: Select all

<!-- INCLUDE chat_body.html --> 
Add above that line

Code: Select all

 <br />
Go to ACP>Styles>templates fresh style you are working on.
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
gsrheetrclhock
Registered User
Posts: 3
Joined: Sun May 10, 2009 1:53 pm

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

Post by gsrheetrclhock »

I'm wondering if there is a way to delete chat messages older than a day?
It doesn't look right for my forum when chat messages are accumulated from day one up until current.

Any suggestions would be much appreciated. :idea:
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

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

Post by spaceace »

gsrheetrclhock wrote:I'm wondering if there is a way to delete chat messages older than a day?
It doesn't look right for my forum when chat messages are accumulated from day one up until current.

Any suggestions would be much appreciated. :idea:
at the bottom of the first post of this topic ;)

that code can be put into the shout.php as well as the chat.php and anytime a member visits chat, it will purge any message that is not shown ;)
sfvigil
Registered User
Posts: 1
Joined: Mon May 11, 2009 4:51 am

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

Post by sfvigil »

Im having troubble with the installation. I did everithing the instructions says, twice, and Im getting this error.
http://miamitvchannel.com/foro/
Error 500 - Internal server error

An internal server error has occured!
Please try again later.
Any ideas on what could be the problem? Thank you for your time!
kham619
Registered User
Posts: 89
Joined: Wed Apr 22, 2009 10:46 pm
Location: san diego, ca, USA

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

Post by kham619 »

BBC Codes in Chat,

I can't get my Youtube links to work in chat. Is it possible???
mc0676
Registered User
Posts: 81
Joined: Thu Oct 14, 2004 2:23 pm

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

Post by mc0676 »

Can i ask why in admin panel i don't have any option to set the chat mod ?

It work fine, of course.
User avatar
phreakwars
Registered User
Posts: 239
Joined: Thu Feb 22, 2007 4:57 am
Location: Polaris Industries

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

Post by phreakwars »

kham619 wrote:BBC Codes in Chat,

I can't get my Youtube links to work in chat. Is it possible???
Yes, but not recommended unless you have auto refresh turned off. It will keep restarting the video every few seconds otherwise.
.
.
MODS by me: Default Topic Icon
User avatar
ickleo
Registered User
Posts: 5
Joined: Tue May 12, 2009 3:48 am
Contact:

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

Post by ickleo »

Hi love the Mod :)

Is there a way that I can set the chat to only keep records of last 24 hrs, so that the db doesnt increase eternally lol

Also is there a way to reduce the chat height padding for each post in the shout box to say just the height of the line of text?

Thanks in advance ;)
User avatar
ickleo
Registered User
Posts: 5
Joined: Tue May 12, 2009 3:48 am
Contact:

Re: [Beta] AJAX Chat/Shoutbox Mod

Post by ickleo »

Handyman` wrote:
DKY wrote:RTFM = Read The Flippin Manual
rotfl… I've never heard that one before.
@Jerx, do you have any idea how hard it is to talk to you without calling you a jerx? ;)
Anyways, it is a planned feature… but probably not for a couple months.
I'm working my way down my mod list updating mods and releasing new versions.

But I decided not to prune anything for Beta 7 because I'm going to have a logs page where you can view past posts… so I don't want anything deleted yet.

But you can clean out the chat with a db query similar to this:

Code: Select all

DELETE FROM phpbb_chat WHERE time < 1177625700
of course change the timestamp to whatever you need it to be.
That timestamp will delete everything that is older than April 24th.

Sorry for my ignorance and lack of edumacation :D but this time stamp is minutes?
mc0676
Registered User
Posts: 81
Joined: Thu Oct 14, 2004 2:23 pm

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

Post by mc0676 »

mc0676 wrote:Can i ask why in admin panel i don't have any option to set the chat mod ?

It work fine, of course.
Some guys has my same problem ?
Why i can manage the chat from admin panel ?
bentinho
Registered User
Posts: 31
Joined: Tue Mar 31, 2009 8:56 am

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

Post by bentinho »

Hey there, thanks for this great MOD!

I must admit that I haven't read all pages in this topic, so sorry if it has already been asked before.

But where/how exactly can I find the log if I want to review messages or let my members read messages made in the chatbox, older than the ones viewable in the chat itself?

And also where/how to delete the log every once in a while, to keep the database clean?

Thanks!
Last edited by bentinho on Wed May 13, 2009 10:03 am, edited 1 time in total.
Free Awareness - Free your Awareness

For Meditation, Consciousness, Self Realization, Enlightenment, See:
Free Awareness Forum
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

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

Post by mej284 »

mc0676 wrote:
mc0676 wrote:Can i ask why in admin panel i don't have any option to set the chat mod ?

It work fine, of course.
Some guys has my same problem ?
Why i can manage the chat from admin panel ?
This is simple enough, it has not be set up yet. That is why this is a beta and not a release.
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
kham619
Registered User
Posts: 89
Joined: Wed Apr 22, 2009 10:46 pm
Location: san diego, ca, USA

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

Post by kham619 »

Mej284, Can you please help me out? I like this chatbody, however, its missing smilies and Buttons that you have on your other code you made. I tried to put your code into this chatbody, its was visible but didn't work. http://www.warorphans.net The code you made was the one with the view more smilies dropbox.
Also, if you go to the site, when we type, from the board style, there is a line going through the first Letter....where to adjust???
Peter77sx wrote:It's sloppy and annoying. I don't use this mod anymore, but you can use this modified layout of chat_body.html i used for my own...i changed it to have it look 'normal' on both ie and FF.

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}">
            <!-- IF U_ACP or U_MCP -->
                  <a href="javascript:delete_post('{chatrow.MESSAGE_ID}')" title="{L_DELETE_POST}" style="float:right;"><b>X</a></b>
            <!-- ENDIF -->
<span class="time"  style="font-size: 6pt"> <b> &#0171; {chatrow.TIME} &#0187;
</b></span><br>
            <span class="author" id="profile{postrow.POST_ID}">{chatrow.USERNAME_FULL}</span>: <span class="content">{chatrow.MESSAGE}</span>

         </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 = 1500;
   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: 85%;
         height:200px;
         overflow:auto;
         float:left;
      }
      #chat {
         width: 100%;
         text-align:left;
      }
      #chat * {
         margin:1px;
         padding:2px;
         min-height:0px;
      }
      .post {
         font-size:1.2em;
      }
      .postprofile {
         min-height: 5px !important;
      }
      .chatform {
         width: 90%;
         text-align:center;
      }
      .onlinelist {
         width: 15%;
         overflow:auto;
         height:200px;
      }
      .users {
         width: 90%;
         text-align: left;
         text-indent: 5px;
         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_CHAT -->
      <style type="text/css">
      <!--
         .shouts {
            height:200px;
         }
         .onlinelist {
            height:400px;
         }
         
      -->
      </style>
   <!-- ENDIF -->
<!-- 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"/>  
         
               </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}">
                     <!-- IF U_ACP or U_MCP -->
                           <a href="javascript:delete_post('{chatrow.MESSAGE_ID}')" title="{L_DELETE_POST}" style="float:right;"><b>X</a></b>
                     <!-- ENDIF -->


<span class="time"  style="font-size: 6pt"> <b> &#0171; {chatrow.TIME} &#0187;
</b></span><br>
            <span class="author" id="profile{postrow.POST_ID}">{chatrow.USERNAME_FULL}</span>: <span class="content">{chatrow.MESSAGE}</span>

                  </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 -->
User avatar
mej284
Registered User
Posts: 1126
Joined: Fri Nov 02, 2007 11:38 am

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

Post by mej284 »

@kham619

You can PM me with your question. Since your problem does not pertain to this mod go ahead an PM with your question. Please provide all information and all edits you may have done to switch over so I can better understand the problem.
I do not respond to unsolicited PM's

Skin-lab styles
SubMerged Style
sTimulated
Registered User
Posts: 91
Joined: Fri Mar 27, 2009 4:16 pm
Contact:

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

Post by sTimulated »

Hi all :)
I'm in the right thread now hehe

I'm having problems trying to install this mod.

I think I've placed all files to where they need to be?
When editing the files do I include it like this....

//-- mod : AJAX Chat ----------------------------------------------------
//-- add
'CHAT' => 'Chat',
'CHAT_EXPLAIN' => 'Chat Center',
//-- fin mod : AJAX Chat ------------------------------------------------

Or like this

'CHAT' => 'Chat',
'CHAT_EXPLAIN' => 'Chat Center',

I'm doing this all manually or should I be using automod?

I cannot get the chat_install to err install?
When I browse to it I just get a text page?

Not at all sure where I've gone wrong?

Also,now when I go to my forum I get....
General Error
SQL ERROR [ mysqli ]

Table 'stimulated.phpbb_chat' doesn't exist [1146]

An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.


I guess this will be fixed when I can get chat_install to work?
Locked

Return to “[3.0.x] Abandoned MODs”