MOD download & history

This shoutbox, fully integrates in phpbb2, support smilies and bbcode
this shoutbox is a shoutbox written for phpbb2, therefor it makes uses of templates and language files

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby Niels on Wed 07. Jan, 2004 21:24

ok, I have now change how the error will display on index,
new version is 1.0.10.
to upgrade:
replace the included files with the lates version
the folowing 3 files have been changed.

shoutbox.php
shoutbox_max.php
shoubox_body.tpl

note: if you haven't allready made the upgrade to 1.0.9. - simply skip that - since this upgrade will also make the changes needed in 1.0.9.
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Sat 28. Feb, 2004 23:37

I have now updated the shout box to version 1.1.0.

this version change now include bbcode buttons into the index page, and at same time I have removed the need for "extra permission MOD", since this step was apperently to difficult for most users.. :D
the permission control is now hard coded into the files (shout*.php)

to upgrade you will need to replace the included files, and add the newly included file bbcode.js

after the upgrade your index shout will also have the same bbcodes availble as here on mods.db9.dk

you do not need to un-install the "extra permission mod", how ever, if you are not using it for any other use, you are advided to roll it back.
the changes done to the DB can be rolled back by the script found in the mod (remove_perm_db_update.php)
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Mon 08. Mar, 2004 13:46

latest version of shoutbox, did have some inoing html errors, witch prevented it from working prober, I have updated the mod as described in this topic
http://mods.db9.dk/viewtopic.php?t=4366

Thanks to the users looking into this
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Wed 10. Mar, 2004 22:39

I have upladed new version, this have removed the change into page_header.php as no longer needed - since extra permission mod is no longer required

no update info availble, as it shoulden't be nessesary
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 11. Mar, 2004 23:24

version updated to 1.1.4. I did still forget a minor detail in index_body.tpl

you should remove the templates "switch" witch prevent displaying of the shoutbox from index_body.tpl (redo index_body.tpl)

this version is the "lazy version" as it's not posible to hide the shoutbox from guests - but I guess no one wan't to do that, so it doesen't matter :D
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 18. Mar, 2004 23:14

a user have reported, that latest version of shoutbox, did not have the copy command for the bbcode.js
this is now corrected in version 1.1.5.

Code: Select all
copy root/templates/subSilver/bbcode.js to templates/subSilver/bbcode.js
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

SECURITY UPDATE

Postby Niels on Sun 04. Sep, 2005 23:24

SECURITY UPDATE
The shoutbox_max.php have been updated to version 1.0.4. please replace this file as soon as posible.

This was reported by alcaeus

the full fix is posted here:
Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
shoutbox_max.php

#
#-----[ FIND ]------------------------------------------------
#
//
// Was a highlight request part of the URI?
//
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
   // Split words and phrases
   $highlight = trim(strip_tags(htmlspecialchars($HTTP_GET_VARS['highlight'])));
   $words = explode(' ', $highlight);

   for($i = 0; $i < count($words); $i++)
   {
      if ( trim($words[$i]) != '' )
      {
         $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#'));
      }
   }
   unset($words);
   $highlight = urlencode($highlight);
}


#
#-----[ REPLACE WITH ]----------------------------------------
#
//
// Was a highlight request part of the URI?
//
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
   // Split words and phrases
   $words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));

   for($i = 0; $i < sizeof($words); $i++)
   {
      if (trim($words[$i]) != '')
      {
         $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#'));
      }
   }
   unset($words);

   $highlight = urlencode($HTTP_GET_VARS['highlight']);
   $highlight_match = phpbb_rtrim($highlight_match, "\\");
}


#
#-----[ FIND ]------------------------------------------------
#
      $shout = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . $highlight_match . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $shout . '<'), 1, -1));


#
#-----[ REPLACE WITH ]----------------------------------------
#
      $shout = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '<span style=\"color:#" . $theme['fontcolor3'] . "\"><b>\\\\1</b></span>', '\\0')", '>' . $shout . '<'), 1, -1));


#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Previous

Return to Fully integrated shoutbox [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron