Welcome, Guest. Please Login or Register.
November 28, 2024, 08:44:24 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.2] Ultimate Shoutbox v.1.3 « previous next »
Pages: 1 2 3 [4] 5 Reply Ignore Print
Author Topic: [Done 1.5.2] Ultimate Shoutbox v.1.3  (Read 12657 times)
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #45 on: May 24, 2003, 05:53:59 PM »
Reply with quote

the "view all" timestamps are server ones.

any chance of a tweak to take in account the offset?  ;D
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #46 on: May 25, 2003, 03:32:12 AM »
Reply with quote

It should be fixed in the latest version...  you can download just shout.php in the first post in this thread.
Logged
loudog
Noobie
*
Posts: 19


I'm a llama!

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #47 on: May 25, 2003, 07:43:26 AM »
Reply with quote

Just FYI this seems to work with Version 1.53 with no problems. I went to boardmod, uninstalled shoutbox, then downloaded version yabb se update 1.53 (which is only two files different--- instantmessage.php, and index.php) I saved the old versions of index.php, and instantmessage.php just in case) then added the two new versions. Once I did that, I then went back to boardmod, and re-intalled shoutbox, and uploaded only index.php, and instantmessage.php the second time, since none of the other files had changed in 1.53. It sounds complicated, but it took me about 5 minutes. And thanks again Greg, my board members love it, especialy on slow days.

PS: You will also (on boardmod) have to uninstall, then re-install smilies mod, I figured that out after the fact, so it would be easier to do them both at the same time, if you have smilies installed.
« Last Edit: May 25, 2003, 08:34:02 AM by loudog » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #48 on: May 27, 2003, 05:06:01 AM »
Reply with quote

This is what I have done to only keep 8 shouts.

Added to bottom of shout function.

// Find and delete old shouts.
 $result = mysql_query('SELECT count(id), MIN(id) FROM shoutbox);
 list ($shoutcount, $id) = mysql_fetch_row($result);
 mysql_free_result($result);

 if($shoutcount - 8 > 0)
    mysql_query('DELETE FROM shoutbox WHERE id='.$id);
Logged

haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #49 on: May 27, 2003, 12:46:13 PM »
Reply with quote

Quote from: David on May 27, 2003, 05:06:01 AM
This is what I have done to only keep 8 shouts.

Added to bottom of shout function.

// Find and delete old shouts.
 $result = mysql_query('SELECT count(id), MIN(id) FROM shoutbox);
 list ($shoutcount, $id) = mysql_fetch_row($result);
 mysql_free_result($result);

 if($shoutcount - 8 > 0)
    mysql_query('DELETE FROM shoutbox WHERE id='.$id);


There is already a function in the shout.php file that does this, and can be called from the "view all shouts" page if you are an admin.  If you wish to have the shoutbox do this automatically, you should find this code:header("Location: $HTTP_POST_VARS[qstr]");
}


and add above it:
delete_all_shouts();


The delete_all_shouts function is as follows:function delete_all_shouts()
{
   global $txt, $color, $cgi, $img, $imagesdir, $db_prefix, $modSettings, $realNames, $scripturl;


   $result = mysql_query("SELECT id FROM {$db_prefix}shoutbox ORDER BY ID") or database_error(__FILE__, __LINE__);

//count the rows returned
   $rows = mysql_num_rows($result);

//subtrack the shoutlimit from the last row to be deleted
   $i = $rows - $modSettings['shoutlimit'];

   if ($i > 0) {
//find the id number for that row
      mysql_data_seek($result, ($i-1));
      $r = mysql_fetch_array($result);

      $delpoint = $r['id'];

//delete everything in the database that has that id or lower
      $result = mysql_query("DELETE FROM {$db_prefix}shoutbox WHERE id<='$delpoint'");
         if (!$result) { fatal_error($pptxt[16]); }

      }
   shout_archive();
}
« Last Edit: May 27, 2003, 12:46:59 PM by greghaase » Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #50 on: May 28, 2003, 08:10:29 PM »
Reply with quote

My shoutbox has just stopped working??

It looks like it has just got full! It scrolling the old messages.

When you try to add though... it just click thru.. but doesnt add? (no error message)

I have emptied it (view all and delete), still no good.

check the mysql tables too.. looks ok.

Any ideas?
Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #51 on: May 29, 2003, 11:32:58 PM »
Reply with quote

found out what was causing it to just stop.

the ID in the shoutbox table is only a tinyint.. so once it got to 127.. that was it.

changed it to INT.. all is well again now  ;D
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #52 on: May 30, 2003, 05:30:54 PM »
Reply with quote

umm...  I think that came up in the thread over at PfaBB and I suggested everyone change it.  Sorry I forgot to bring it up over here.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #53 on: June 08, 2003, 06:56:29 PM »
Reply with quote

If you htmlspecialchar you should de entity it too.

$message=html_entity_decode($r['message'], ENT_QUOTES);
Logged

haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #54 on: June 09, 2003, 12:23:54 AM »
Reply with quote

Quote from: David on June 08, 2003, 06:56:29 PM
If you htmlspecialchar you should de entity it too.

$message=html_entity_decode($r['message'], ENT_QUOTES);

I'll look into it.  I took 99% of the $message code from a 1.5.1 version of Sources/Post.php.  There's no entity decode in that version.
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #55 on: June 09, 2003, 12:25:44 AM »
Reply with quote

Quote from: greghaase on June 09, 2003, 12:23:54 AM
I'll look into it.  I took 99% of the $message code from a 1.5.1 version of Sources/Post.php.  There's no entity decode in that version.
It didn't seem to become an issue until things like

"'
''"
'''

etc

I've also done quite a bit of rewriting of it for the copy for BN so it performs as we needed.  Mainly removed all the different options.  I am more than willing to help clean up the code of your next version if you want.
« Last Edit: June 09, 2003, 12:45:06 AM by David » Logged

haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #56 on: June 09, 2003, 12:39:31 AM »
Reply with quote

Quote from: David on June 09, 2003, 12:25:44 AM
I am more than willing to help clean up the code of your next version if you want.

Sorry, I didn't realize it was so sloppy.  I've been told by others that my code is fairly clean for someone who never looked at php source until January of this year.   I tell you what.  I'll give it another go when Enigma comes out, and if I have trouble getting it to work, I'll let you know.
Logged
haase
Full Member
***
Posts: 224


Do you feel lucky?

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #57 on: June 09, 2003, 12:56:48 AM »
Reply with quote

Actually, I spoke too soon.  I would like to see what you've done.  I'm at the point in coding where the only way I'm going to be getting any better is for someone to comb through it and tell give me ideas.  How about after the new version of Yabb SE comes out, I'll convert the mod and send it to you for review before I release it.
Logged
Herby
Noobie
*
Posts: 11


I'm a llama!

Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #58 on: July 16, 2003, 08:26:01 PM »
Reply with quote

I have installed shout box with supermod. I found the settings of the shout box in the supermod-settings-admin-panel.

But there is no shout box at the frontpage of my yabbse 1.54-board. I thougt, I had to integrate the tag "<yabb shout>" into my template, but no success. What I have to do???

Thank you so much!

Herbert
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[Done 1.5.2] Ultimate Shoutbox v.1.3
« Reply #59 on: July 17, 2003, 01:36:53 PM »
Reply with quote

Quote from: Herby on July 16, 2003, 08:26:01 PM
I have installed shout box with supermod. I found the settings of the shout box in the supermod-settings-admin-panel.

But there is no shout box at the frontpage of my yabbse 1.54-board. I thougt, I had to integrate the tag "<yabb shout>" into my template, but no success. What I have to do???

Thank you so much!

Herbert

You should probably ask supermod about this.  Who knows what changes they might have had to make to the code to get it to fit.
Try going to supermod.org and ask them for help.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Pages: 1 2 3 [4] 5 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.2] Ultimate Shoutbox v.1.3 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.062 seconds with 20 queries.