paulscriptsmods-checkin Mailing List for paulscriptsmods (Page 3)
Status: Beta
Brought to you by:
paulsohier
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(225) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(93) |
Feb
(107) |
Mar
(41) |
Apr
(58) |
May
(866) |
Jun
(587) |
Jul
(56) |
Aug
|
Sep
(30) |
Oct
|
Nov
(124) |
Dec
(6) |
2007 |
Jan
(76) |
Feb
(50) |
Mar
(10) |
Apr
(47) |
May
(61) |
Jun
(34) |
Jul
(6) |
Aug
(9) |
Sep
(24) |
Oct
(8) |
Nov
|
Dec
(2) |
From: Paul S. <pau...@us...> - 2007-06-20 18:46:14
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml/xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15948/includes/cortex-xml/xml Modified Files: Tag: phpbb3_ver xml_element.php xml_writer.php Log Message: More cortex related stuff Index: xml_element.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml/xml/Attic/xml_element.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** xml_element.php 20 Jun 2007 17:29:56 -0000 1.1.2.1 --- xml_element.php 20 Jun 2007 18:46:15 -0000 1.1.2.2 *************** *** 100,107 **** } ! function output_xml($no_cache = false, $exit = false) { $xml_writer = cortex_xml::factory('writer'); ! $xml_writer->format_data($this, true); $xml_writer->output_data($no_cache, $exit); } --- 100,107 ---- } ! function output_xml($no_cache = false, $exit = true) { $xml_writer = cortex_xml::factory('writer'); ! $xml_writer->format_data($this, false); $xml_writer->output_data($no_cache, $exit); } Index: xml_writer.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml/xml/Attic/xml_writer.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** xml_writer.php 20 Jun 2007 17:29:56 -0000 1.1.2.1 --- xml_writer.php 20 Jun 2007 18:46:15 -0000 1.1.2.2 *************** *** 153,157 **** if ( $include_doctype ) { ! $this->xml_data = '<?xml version="1.0" encoding="' . $this->xml_encoding . '"? >' . "\n"; } --- 153,157 ---- if ( $include_doctype ) { ! $this->xml_data = '<?xml version="1.0" encoding="' . $this->xml_encoding . '"?'.'>' . "\n"; } *************** *** 172,176 **** function output_data($no_cache = false, $exit = false) { ! ob_clean(); header('Content-type: text/xml'); --- 172,176 ---- function output_data($no_cache = false, $exit = false) { ! @ob_clean(); header('Content-type: text/xml'); |
From: Paul S. <pau...@us...> - 2007-06-20 18:46:14
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15948 Modified Files: Tag: phpbb3_ver ajax.php Log Message: More cortex related stuff Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.22 retrieving revision 1.21.2.23 diff -C2 -d -r1.21.2.22 -r1.21.2.23 *** ajax.php 19 Jun 2007 14:42:41 -0000 1.21.2.22 --- ajax.php 20 Jun 2007 18:46:14 -0000 1.21.2.23 *************** *** 16,20 **** $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($phpbb_root_path . 'common.' . $phpEx); error_reporting(0);//Disable error reporting, can be bad for our headers ;) --- 16,33 ---- $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! define('CORTEX_PATH', $phpbb_root_path); // To lazy to change cortex <3 ! ! include ($phpbb_root_path . 'common.' . $phpEx); ! include ($phpbb_root_path . 'includes/cortex-xml/xml.' . $phpEx); ! include ($phpbb_root_path . 'includes/cortex-xml/util.' . $phpEx); ! include ($phpbb_root_path . 'includes/cortex-xml/exception.' . $phpEx); ! ! ! $object = new cortex_xml_element('xml'); ! $object->root = true; ! ! // $object->output_xml(); ! // exit; error_reporting(0);//Disable error reporting, can be bad for our headers ;) |
From: Paul S. <pau...@us...> - 2007-06-20 17:30:02
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml/xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19022/root/includes/cortex-xml/xml Added Files: Tag: phpbb3_ver xml_element.php xml_reader.php xml_writer.php Log Message: EEEk, Added cortext XML class, written by coronis.nl (Thanks Vic!) for generating XML. --- NEW FILE: xml_element.php --- <?php /** * XML element * * @package Cortex * @subpackage cortex_xml * * @copyright 2006 Coronis - http://www.coronis.nl * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * See copyright.txt for more information * * @version $Id: xml_element.php,v 1.1.2.1 2007/06/20 17:29:56 paulsohier Exp $ */ /** * cortex_xml_element class * * @package Cortex * @subpackage cortex_xml */ class cortex_xml_element { /** * Name of the XML element * * @access public * @var string */ var $name; /** * Element attributes * * @access public * @var array */ var $attributes; /** * Element's contents * * @access public * @var string */ var $content; /** * Element's child elements * * @access public * @var array */ var $children; var $root = false; /** * cortex_xml_element constructor * * @access public * @param string Element name * @return void */ function cortex_xml_element($name = '') { $this->name = $name; } /** * Find a child element by its name * * @access public * @param string Child name * @return mixed Child object on success, otherwise FALSE */ function get_child($child_name, $get_contents = false) { for ( $i = 0, $_i = sizeof($this->children); $i < $_i; $i++ ) { if ( $this->children[$i]->name == $child_name ) { if ( $get_contents ) { return $this->children[$i]->content; } else { return $this->children[$i]; } } } return false; } function get_xml($include_doctype = true) { $xml_writer = cortex_xml::factory('writer'); return $xml_writer->format_data($this, $include_doctype); } function output_xml($no_cache = false, $exit = false) { $xml_writer = cortex_xml::factory('writer'); $xml_writer->format_data($this, true); $xml_writer->output_data($no_cache, $exit); } function add_attribute($attribute_name, $attribute_value) { $this->attributes[$attribute_name] = $attribute_value; } function set_attributes($attributes) { $this->attributes = $attributes; } function add_child(&$child) { @$this->children[] =& $child; } function set_parent($parent) { $parent->children[] = $this; } function get_child_by_attribute($attribute_name, $attribute_value, $get_contents = false) { for ( $i = 0, $_i = sizeof($this->children); $i < $_i; $i++ ) { if ( isset($this->children[$i]->attributes[$attribute_name]) && $this->children[$i]->attributes[$attribute_name] == $attribute_value ) { if ( $get_contents ) { return $this->children[$i]->content; } else { return $this->children[$i]; } } } return false; } } ?> --- NEW FILE: xml_reader.php --- <?php /** * XML reader * * @package Cortex * @subpackage cortex_xml * * @copyright 2006 Coronis - http://www.coronis.nl * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * See copyright.txt for more information * * @version $Id: xml_reader.php,v 1.1.2.1 2007/06/20 17:29:56 paulsohier Exp $ */ /** * cortex_xml_reader class * * @package Cortex * @subpackage cortex_xml */ class cortex_xml_reader extends cortex_xml { /** * Raw XML data * * @access public * @var string */ var $xml_raw; /** * Root XML element (object of cortex_xml_element) * * @access public * @var object */ var $root_element; /** * Parse an XML file * * @access public * @param string Filename * @return object Root XML element (object of cortex_xml_element) */ function parse_file($filename) { $this->xml_raw = @file_get_contents($filename); if ( $this->xml_raw === false ) { new cortex_exception('cortex_xml_reader: Could not parse XML', 'Input file "' . $filename . '" could not be loaded'); } return $this->parse_data(); } /** * Parse the XML data in $this->xml_raw * * @access public * @return object Root XML element (object of cortex_xml_element) */ function parse_data($xml_raw = '') { if ( !empty($xml_raw) ) { $this->xml_raw = $xml_raw; } $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 0); xml_parse_into_struct($parser, $this->xml_raw, $tags); xml_parser_free($parser); $elements = array(); $stack = array(); foreach ( $tags as $tag ) { $index = sizeof($elements); if ( $tag['type'] == 'complete' || $tag['type'] == 'open' ) { $elements[$index] = new cortex_xml_element(); $elements[$index]->name = $tag['tag']; if (array_key_exists('attributes', $tag)) $elements[$index]->attributes = $tag['attributes']; if (array_key_exists('value', $tag)) $elements[$index]->content = trim($tag['value']); if ( $tag['type'] == 'open' ) { $elements[$index]->children = array(); $stack[sizeof($stack)] = &$elements; $elements = &$elements[$index]->children; } } if ( $tag['type'] == 'close' ) { $elements = &$stack[sizeof($stack) - 1]; unset($stack[sizeof($stack) - 1]); } } $this->root_element = $elements[0]; return $this->root_element; } } ?> --- NEW FILE: xml_writer.php --- <?php /** * XML writer * * @package Cortex * @subpackage cortex_xml * * @copyright 2006 Coronis - http://www.coronis.nl * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * See copyright.txt for more information * * @version $Id: xml_writer.php,v 1.1.2.1 2007/06/20 17:29:56 paulsohier Exp $ */ /** * cortex_xml_writer class * * @package Cortex * @subpackage cortex_xml */ class cortex_xml_writer extends cortex_xml { /** * Raw XML data * * @access protected * @var string */ var $xml_data = ''; var $xml_indent = " "; var $xml_stylesheet = ''; var $xml_charset = 'utf-8'; /** * Convert a cortex_xml_element into raw XML * * @access public * @param object cortex_xml_element object * @param int Number of tabs we should indent * @return string XML */ function object_to_xml($object, $indent = 0) { $data = ''; if ($object->root === true) { $data .= '<?xml version="1.0" encoding="' . $this->xml_charset . '" standalone="yes"?'.'>'; $data .= "\n"; if ($this->xml_stylesheet != '') { $data .= '<?xml-stylesheet type="text/xsl" href="' . $this->xml_stylesheet . '"?'.'>'; } $data .= "\n" . str_pad('', $indent, $this->xml_indent, STR_PAD_LEFT) . '<' . $object->name; } else { $data .= "\n" . str_pad('', $indent, $this->xml_indent, STR_PAD_LEFT) . '<' . $object->name; } $indent += strlen($this->xml_indent); // Attributes if ( is_array($object->attributes) ) { foreach ( $object->attributes as $attribute => $attribute_value ) { $data .= ' ' . $attribute . '="' . $attribute_value . '"'; } } if (is_array($object->children) || is_array($object->content) || !($object->content === null)) { $data .= ">"; // Children if ( is_array($object->children) ) { foreach ( $object->children as $child_element ) { $data .= $this->object_to_xml($child_element, $indent); } } // Content (array)... this is a quick 'n dirty way of having multiple // elements elseif ( is_array($object->content) ) { foreach ( $object->content as $element => $element_value ) { $data .= str_pad('', $indent, $this->xml_indent, STR_PAD_LEFT) . '<' . $element . ">" . $this->cdata($element_value) . '</' . $element . ">\n"; } } // Content (string) else { $data .= $this->cdata($object->content); } // Closing tag $indent -= strlen($this->xml_indent); if ( is_array($object->children) ) { $data .= "\n" . str_pad('', $indent, $this->xml_indent, STR_PAD_LEFT) . '</' . $object->name . '>'; } else { $data .= '</' . $object->name . '>'; } } else { $data .= " />"; } return $data; } /** * Return <![CDATA[$contents]]> * * @access protected * @param string Contents to escape * @return string Escaped contents on success, otherwise original string */ function cdata($contents) { $contents = ( $this->xml_encoding == 'utf-8' ) ? utf8_encode(trim($contents)) : trim($contents); if ( preg_match('/\<(.*?)\>/xsi', $contents) ) { return '<![CDATA[' . $contents . ']]>'; } return $contents; } /** * Convert an object of cortex_xml_element and its children to a valid XML file * * @access public * @param object Object of cortex_xml_element * @return string XML data */ function format_data($object, $include_doctype) { $this->xml_data = ''; if ( $include_doctype ) { $this->xml_data = '<?xml version="1.0" encoding="' . $this->xml_encoding . '"? >' . "\n"; } $this->xml_data .= $this->object_to_xml($object); return $this->xml_data; } /** * Directly output the data to the client * * @access public * @param bool Set to TRUE to send the 'no-cache' header. Should be done in order * to prevent headaches and other mental disorders when using AJAX in IE * @param bool Set to TRUE to call exit() after having sent the data * @return null */ function output_data($no_cache = false, $exit = false) { ob_clean(); header('Content-type: text/xml'); if ( $no_cache ) { header('Pragma: no-cache'); header('Cache-Control: no-cache'); header('Expires: ' . date('r', 0)); } print $this->xml_data; if ( $exit ) { exit(); } } /** * Write $this->xml_data to a file * * @access public * @param string filename to write to * @return void */ function save_file($filename) { if ( !@file_put_contents($filename, $this->xml_data) ) { new cortex_exception('Could not store XML data', 'Could not write to "' . $filename . '"'); } } } ?> |
From: Paul S. <pau...@us...> - 2007-06-20 17:29:58
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19022/root/includes/cortex-xml Added Files: Tag: phpbb3_ver xml.php Log Message: EEEk, Added cortext XML class, written by coronis.nl (Thanks Vic!) for generating XML. --- NEW FILE: xml.php --- <?php /** * XML class * * @package Cortex * @subpackage cortex_xml * * @copyright 2006 Coronis - http://www.coronis.nl * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * See copyright.txt for more information * * @version $Id: xml.php,v 1.1.2.1 2007/06/20 17:29:56 paulsohier Exp $ */ /** * We also need the cortex_xml_element class */ //require(CORTEX_PATH . 'cortex/xml/xml_element.php'); /** * cortex_xml class * * @abstract * @package Cortex * @subpackage cortex_xml */ class cortex_xml { /** * XML encoding * * @access protected * @var string */ var $xml_encoding = ''; /** * Setup $type XML class * * @final * @access public * @param string XML class to load * @param string XML encoding * @return object New xml object */ function factory($type, $xml_encoding = 'utf-8') { $xml_class = 'cortex_xml_' . $type; if ( !cortex_util::class_exists($xml_class) ) { if ( !file_exists(CORTEX_PATH . 'cortex/xml/xml_' . $type . '.php') ) { new cortex_exception('cortex_xml: Could not initialize XML class', 'File for XML operation "' . $type . '" could not be found'); } require(CORTEX_PATH . 'cortex/xml/xml_' . $type . '.php'); } $xml_object = new $xml_class(); $xml_object->set_encoding($xml_encoding); return $xml_object; } /** * Set content encoding * * @access protected * @param string XML encoding * @return void */ function set_encoding($xml_encoding) { $this->xml_encoding = trim($xml_encoding); } } ?> |
From: Paul S. <pau...@us...> - 2007-06-20 17:29:57
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19022 Modified Files: Tag: phpbb3_ver install.xml Log Message: EEEk, Added cortext XML class, written by coronis.nl (Thanks Vic!) for generating XML. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.17 retrieving revision 1.19.2.18 diff -C2 -d -r1.19.2.17 -r1.19.2.18 *** install.xml 19 Jun 2007 14:42:41 -0000 1.19.2.17 --- install.xml 20 Jun 2007 17:29:56 -0000 1.19.2.18 *************** *** 90,93 **** --- 90,94 ---- <change>Fixed a small JS error</change> <change>Changed way the subsilver version is displayed. Looks lot beter now</change> + <change>Modified way of generating XML, using a class written by coronis.nl</change> </changelog> </entry> *************** *** 112,115 **** --- 113,122 ---- <file from="root/language/en/mods/shout.php" to="language/en/mods/shout.php" /> <file from="root/bbcode.js" to="bbcode.js" /> + + <file from="root/includes/cortex-xml/xml.php" to="root/includes/cortex-xml/xml.php"> + <file from="root/includes/cortex-xml/xml/xml_element.php" to="root/includes/cortex-xml/xml/xml_element.php"> + <file from="root/includes/cortex-xml/xml/xml_reader.php" to="root/includes/cortex-xml/xml/xml_reader.php"> + <file from="root/includes/cortex-xml/xml/xml_writer.php" to="root/includes/cortex-xml/xml/xml_writer.php"> + </copy> <open src="includes/constants.php"> |
From: Paul S. <pau...@us...> - 2007-06-20 17:29:06
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml/xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18866/xml Log Message: Directory /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml/xml added to the repository --> Using per-directory sticky tag `phpbb3_ver' |
From: Paul S. <pau...@us...> - 2007-06-20 17:29:01
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18616/cortex-xml Log Message: Directory /cvsroot/paulscriptsmods/ajax_shout/root/includes/cortex-xml added to the repository --> Using per-directory sticky tag `phpbb3_ver' |
From: Paul S. <pau...@us...> - 2007-06-19 14:43:06
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27443 Modified Files: Tag: phpbb3_ver install.xml Log Message: We love bugs, do we? Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.16 retrieving revision 1.19.2.17 diff -C2 -d -r1.19.2.16 -r1.19.2.17 *** install.xml 19 Jun 2007 13:13:48 -0000 1.19.2.16 --- install.xml 19 Jun 2007 14:42:41 -0000 1.19.2.17 *************** *** 88,91 **** --- 88,93 ---- <change>Fixed wrong path to language file.</change> <change>XHTML compitable fix</change> + <change>Fixed a small JS error</change> + <change>Changed way the subsilver version is displayed. Looks lot beter now</change> </changelog> </entry> *************** *** 168,179 **** ]]></find> <action type="before-add"><![CDATA[ ! <table class="tablebg" width="100%" cellspacing="1"> ! <tr> ! <td class="cat"><h4>{L_SHOUTBOX}</h4></td> ! </tr> ! <tr> ! <td width="100%" class="row2" valign="middle"><p id="shoutbox"></p></td> ! </tr> ! </table> <script type="text/javascript"> --- 170,183 ---- ]]></find> <action type="before-add"><![CDATA[ ! <div class="forabg"> ! <ul class="topiclist"> ! <li class="header"> ! <dl> ! <dt><h4>{L_SHOUTBOX}</h4></dt> ! </dl> ! </li> ! </ul> ! <span id="shoutbox"></span> ! </div> <script type="text/javascript"> |
From: Paul S. <pau...@us...> - 2007-06-19 14:43:02
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27443/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: We love bugs, do we? Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.21 retrieving revision 1.21.2.22 diff -C2 -d -r1.21.2.21 -r1.21.2.22 *** ajax.php 19 Jun 2007 09:53:50 -0000 1.21.2.21 --- ajax.php 19 Jun 2007 14:42:41 -0000 1.21.2.22 *************** *** 937,941 **** if (i < total_pages) { ! page_string.appendChild(cp()); } } --- 937,941 ---- if (i < total_pages) { ! p.appendChild(cp()); } } |
From: Paul S. <pau...@us...> - 2007-06-19 13:13:48
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25847 Modified Files: Tag: phpbb3_ver install.xml Log Message: XHTML fix Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.15 retrieving revision 1.19.2.16 diff -C2 -d -r1.19.2.15 -r1.19.2.16 *** install.xml 19 Jun 2007 09:53:50 -0000 1.19.2.15 --- install.xml 19 Jun 2007 13:13:48 -0000 1.19.2.16 *************** *** 87,90 **** --- 87,91 ---- <changelog lang="en"> <change>Fixed wrong path to language file.</change> + <change>XHTML compitable fix</change> </changelog> </entry> *************** *** 154,158 **** <action type="before-add"><![CDATA[ <script type="text/javascript" src="bbcode.js"></script> ! <script language="javascript" type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> </open> --- 155,159 ---- <action type="before-add"><![CDATA[ <script type="text/javascript" src="bbcode.js"></script> ! <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> </open> *************** *** 188,192 **** <action type="before-add"><![CDATA[ <script type="text/javascript" src="bbcode.js"></script> ! <script language="javascript" type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> </open> --- 189,193 ---- <action type="before-add"><![CDATA[ <script type="text/javascript" src="bbcode.js"></script> ! <script type="text/javascript" src="{U_SHOUT}"></script>]]></action> </edit> </open> |
From: Paul S. <pau...@us...> - 2007-06-19 09:53:50
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14606/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: Small bug. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.20 retrieving revision 1.21.2.21 diff -C2 -d -r1.21.2.20 -r1.21.2.21 *** ajax.php 18 Jun 2007 19:17:14 -0000 1.21.2.20 --- ajax.php 19 Jun 2007 09:53:50 -0000 1.21.2.21 *************** *** 23,27 **** $user->session_begin(false); $auth->acl($user->data); ! $user->setup('shout'); // We have our own error handling! --- 23,27 ---- $user->session_begin(false); $auth->acl($user->data); ! $user->setup('mods/shout'); // We have our own error handling! |
From: Paul S. <pau...@us...> - 2007-06-19 09:53:50
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14606 Modified Files: Tag: phpbb3_ver install.xml Log Message: Small bug. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.14 retrieving revision 1.19.2.15 diff -C2 -d -r1.19.2.14 -r1.19.2.15 *** install.xml 18 Jun 2007 19:20:24 -0000 1.19.2.14 --- install.xml 19 Jun 2007 09:53:50 -0000 1.19.2.15 *************** *** 2,5 **** --- 2,6 ---- <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?> <!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Although MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD. No support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/--> + <!-- $Id --> <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.0.xsd"> <header> *************** *** 26,30 **** <major>0</major> <minor>0</minor> ! <revision>2</revision> </mod-version> <installation> --- 27,31 ---- <major>0</major> <minor>0</minor> ! <revision>3</revision> </mod-version> <installation> *************** *** 74,80 **** <change>Changed empty message check</change> <change>Fixed refreshing of pagination</change> - </changelog> </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> --- 75,92 ---- <change>Changed empty message check</change> <change>Fixed refreshing of pagination</change> </changelog> </entry> + + <entry> + <date>2007-xx-xx</date> + <rev-version> + <major>0</major> + <minor>0</minor> + <revision>3</revision> + </rev-version> + <changelog lang="en"> + <change>Fixed wrong path to language file.</change> + </changelog> + </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> *************** *** 108,112 **** <find><![CDATA[ // The following assigns all _common_ variables that may be used at any point in a template. $template->assign_vars(array(]]></find> ! <action type="before-add"><![CDATA[ $user->add_lang('shout');]]></action> <action type="after-add"><![CDATA[ "U_SHOUT" => append_sid("{$phpbb_root_path}ajax.$phpEx", 'm=js'),]]></action> </edit> --- 120,124 ---- <find><![CDATA[ // The following assigns all _common_ variables that may be used at any point in a template. $template->assign_vars(array(]]></find> ! <action type="before-add"><![CDATA[ $user->add_lang('mods/shout');]]></action> <action type="after-add"><![CDATA[ "U_SHOUT" => append_sid("{$phpbb_root_path}ajax.$phpEx", 'm=js'),]]></action> </edit> |
From: Paul S. <pau...@us...> - 2007-06-18 19:20:25
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8335 Modified Files: Tag: phpbb3_ver install.xml Log Message: release. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.13 retrieving revision 1.19.2.14 diff -C2 -d -r1.19.2.13 -r1.19.2.14 *** install.xml 18 Jun 2007 19:17:14 -0000 1.19.2.13 --- install.xml 18 Jun 2007 19:20:24 -0000 1.19.2.14 *************** *** 53,57 **** </entry> <entry> ! <date>2007-xx-xx</date> <rev-version> <major>0</major> --- 53,57 ---- </entry> <entry> ! <date>2007-06-18</date> <rev-version> <major>0</major> |
From: Paul S. <pau...@us...> - 2007-06-18 19:17:13
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7178 Modified Files: Tag: phpbb3_ver install.xml Log Message: bugs Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.12 retrieving revision 1.19.2.13 diff -C2 -d -r1.19.2.12 -r1.19.2.13 *** install.xml 18 Jun 2007 19:09:09 -0000 1.19.2.12 --- install.xml 18 Jun 2007 19:17:14 -0000 1.19.2.13 *************** *** 195,198 **** --- 195,199 ---- list-style-type: none; margin: 0; + height:30px; } |
From: Paul S. <pau...@us...> - 2007-06-18 19:17:13
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7178/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: bugs Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.19 retrieving revision 1.21.2.20 diff -C2 -d -r1.21.2.19 -r1.21.2.20 *** ajax.php 18 Jun 2007 19:10:10 -0000 1.21.2.19 --- ajax.php 18 Jun 2007 19:17:14 -0000 1.21.2.20 *************** *** 1111,1115 **** row = !row; - li.style.height = '26px'; var dl = ce('dl'); var dd = ce('dd'); --- 1111,1114 ---- |
From: Paul S. <pau...@us...> - 2007-06-18 19:10:11
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4284 Modified Files: Tag: phpbb3_ver ajax.php Log Message: changed empty message check. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.18 retrieving revision 1.21.2.19 diff -C2 -d -r1.21.2.18 -r1.21.2.19 *** ajax.php 18 Jun 2007 19:09:09 -0000 1.21.2.18 --- ajax.php 18 Jun 2007 19:10:10 -0000 1.21.2.19 *************** *** 278,282 **** document.getElementById('msg_txt').appendChild(tn('<?php echo $user->lang['sending']; ?>')); ! if (document.getElementById('bericht').value == '' || document.getElementById('bericht').value.length < 3) { document.getElementById('msg_txt').innerHTML = ''; --- 278,282 ---- document.getElementById('msg_txt').appendChild(tn('<?php echo $user->lang['sending']; ?>')); ! if (document.getElementById('bericht').value == '') { document.getElementById('msg_txt').innerHTML = ''; |
From: Paul S. <pau...@us...> - 2007-06-18 19:09:09
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4152 Modified Files: Tag: phpbb3_ver install.xml Log Message: subsilver support. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.11 retrieving revision 1.19.2.12 diff -C2 -d -r1.19.2.11 -r1.19.2.12 *** install.xml 18 Jun 2007 16:17:43 -0000 1.19.2.11 --- install.xml 18 Jun 2007 19:09:09 -0000 1.19.2.12 *************** *** 112,116 **** </edit> </open> ! <open src="styles/template/index_body.html"> <edit> <find><![CDATA[<!-- IF NEWEST_USER --> --- 112,116 ---- </edit> </open> ! <open src="styles/prosilver/template/index_body.html"> <edit> <find><![CDATA[<!-- IF NEWEST_USER --> *************** *** 145,148 **** --- 145,224 ---- </edit> </open> + + <open src="styles/subsilver2/template/index_body.html"> + <edit> + <find><![CDATA[<!-- IF not S_USER_LOGGED_IN --> + <br clear="all" /> + + <form method="post" action="{S_LOGIN_ACTION}"> + + ]]></find> + <action type="before-add"><![CDATA[ + <table class="tablebg" width="100%" cellspacing="1"> + <tr> + <td class="cat"><h4>{L_SHOUTBOX}</h4></td> + </tr> + <tr> + <td width="100%" class="row2" valign="middle"><p id="shoutbox"></p></td> + </tr> + </table> + + <script type="text/javascript"> + display_shoutbox = true; + load_shout(); + </script> + ]]></action> + </edit> + </open> + <open src="styles/subsilver2/template/overall_header.html"> + <edit> + <find><![CDATA[</head>]]></find> + <action type="before-add"><![CDATA[ + <script type="text/javascript" src="bbcode.js"></script> + <script language="javascript" type="text/javascript" src="{U_SHOUT}"></script>]]></action> + </edit> + </open> + <open src="styles/subsilver2/theme/stylesheet.css"> + <edit> + <find><![CDATA[.username-coloured { + font-weight: bold; + }]]> + </find> + <action type="after-add"><![CDATA[ul.topiclist { + display: block; + list-style-type: none; + margin: 0; + } + + ul.topiclist li { + display: block; + list-style-type: none; + margin: 0; + } + + ul.topiclist dl { + position: relative; + } + + ul.topiclist li.row dl { + padding: 2px 0; + } + + ul.topiclist dt { + display: block; + width: 50%; + padding-left: 5px; + padding-right: 5px; + } + + ul.topiclist dd { + display: block; + float: left; + padding: 4px 0; + } + ]]> + </action> + </edit> + </open> </action-group> </mod> |
From: Paul S. <pau...@us...> - 2007-06-18 19:09:09
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4152/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: subsilver support. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.17 retrieving revision 1.21.2.18 diff -C2 -d -r1.21.2.17 -r1.21.2.18 *** ajax.php 18 Jun 2007 16:17:43 -0000 1.21.2.17 --- ajax.php 18 Jun 2007 19:09:09 -0000 1.21.2.18 *************** *** 195,198 **** --- 195,199 ---- { // Write the base. + var basis = ce('ul'); basis.className = 'topiclist forums'; *************** *** 256,260 **** el.type = 'button'; ! el.className = 'button1'; el.onclick = function() --- 257,261 ---- el.type = 'button'; ! el.className = 'button1 btnmain'; el.onclick = function() *************** *** 361,365 **** el.value = el.defaultValue = '<?php echo $user->lang['smilies']; ?>'; el.type = 'button'; ! el.className = 'button2'; el.onclick = function() --- 362,366 ---- el.value = el.defaultValue = '<?php echo $user->lang['smilies']; ?>'; el.type = 'button'; ! el.className = 'button2 btnmain'; el.onclick = function() *************** *** 448,452 **** var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2'; bbcode.accesskey = 'b'; bbcode.name = bbcode.id = 'addbbcode0'; --- 449,453 ---- var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2 btnmain'; bbcode.accesskey = 'b'; bbcode.name = bbcode.id = 'addbbcode0'; *************** *** 465,469 **** var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2'; bbcode.accesskey = 'i'; bbcode.name = bbcode.id = 'addbbcode2'; --- 466,470 ---- var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2 btnmain'; bbcode.accesskey = 'i'; bbcode.name = bbcode.id = 'addbbcode2'; *************** *** 482,486 **** var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2'; bbcode.accesskey = 'u'; bbcode.name = bbcode.id = 'addbbcode4'; --- 483,487 ---- var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2 btnmain'; bbcode.accesskey = 'u'; bbcode.name = bbcode.id = 'addbbcode4'; *************** *** 499,503 **** var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2'; bbcode.accesskey = 'p'; bbcode.name = bbcode.id = 'addbbcode6'; --- 500,504 ---- var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2 btnmain'; bbcode.accesskey = 'p'; bbcode.name = bbcode.id = 'addbbcode6'; *************** *** 515,519 **** var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2'; bbcode.accesskey = 'w'; bbcode.name = bbcode.id = 'addbbcode8'; --- 516,520 ---- var bbcode = ce('input'); bbcode.type = 'button'; ! bbcode.className = 'button2 btnmain'; bbcode.accesskey = 'w'; bbcode.name = bbcode.id = 'addbbcode8'; *************** *** 1101,1109 **** } var posts = document.getElementById('msg'); ! posts.innerHTML = ''; for (var i = (tmp.length - 1); i >= 0 ; i--) { var li = ce('li'); ! li.className = 'row'; var dl = ce('dl'); var dd = ce('dd'); --- 1102,1115 ---- } var posts = document.getElementById('msg'); ! posts.innerHTML = ''; ! ! var row = false; for (var i = (tmp.length - 1); i >= 0 ; i--) { var li = ce('li'); ! li.className = (!row) ? 'row row1' : 'row row2'; ! row = !row; ! ! li.style.height = '26px'; var dl = ce('dl'); var dd = ce('dd'); *************** *** 1111,1114 **** --- 1117,1122 ---- var inh = tmp[i]; dt.style.width = '15%'; + dt.style.styleFloat = dt.style.cssFloat = 'left'; + dd.style.styleFloat = dd.style.cssFloat = 'left'; dd.style.paddingLeft = '3px'; *************** *** 1133,1137 **** button.value = button.defaultValue = ' X '; button.type = 'button'; ! button.className = 'button2'; button.onclick = function() --- 1141,1145 ---- button.value = button.defaultValue = ' X '; button.type = 'button'; ! button.className = 'button2 btnmain'; button.onclick = function() *************** *** 1194,1198 **** button.value = button.defaultValue = ' ? '; button.type = 'button'; ! button.className = 'button2'; button.ip = inh.getElementsByTagName('shout_ip')[0].childNodes[0].nodeValue; --- 1202,1206 ---- button.value = button.defaultValue = ' ? '; button.type = 'button'; ! button.className = 'button2 btnmain'; button.ip = inh.getElementsByTagName('shout_ip')[0].childNodes[0].nodeValue; |
From: Paul S. <pau...@us...> - 2007-06-18 16:17:48
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3007 Modified Files: Tag: phpbb3_ver install.xml Log Message: New pagination system added (Like is used in normal phpBB like in viewtopic.) Fixed some bugs within the old pagination system Fixed refreshing of pagination. Only thing to do for release is adding subsilver support now :) Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.10 retrieving revision 1.19.2.11 diff -C2 -d -r1.19.2.10 -r1.19.2.11 *** install.xml 8 Jun 2007 21:35:52 -0000 1.19.2.10 --- install.xml 18 Jun 2007 16:17:43 -0000 1.19.2.11 *************** *** 68,75 **** <change>Underline bbcode wasnt working (Mrtb)</change> <change>U bbcode button wasnt underlined (Mrtb)(Dont work with firefox!)</change> ! <change>moved language file to mods directory.</change> <change>Fixed underlined space in bbcode button (ZeroT)</change> <change>Rewrited pagination functions</change> ! <change>subsilver2 compitable.</change> </changelog> --- 68,77 ---- <change>Underline bbcode wasnt working (Mrtb)</change> <change>U bbcode button wasnt underlined (Mrtb)(Dont work with firefox!)</change> ! <change>Moved language file to mods directory.</change> <change>Fixed underlined space in bbcode button (ZeroT)</change> <change>Rewrited pagination functions</change> ! <change>Subsilver2 compitable</change> ! <change>Changed empty message check</change> ! <change>Fixed refreshing of pagination</change> </changelog> |
From: Paul S. <pau...@us...> - 2007-06-18 16:17:48
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3007/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: New pagination system added (Like is used in normal phpBB like in viewtopic.) Fixed some bugs within the old pagination system Fixed refreshing of pagination. Only thing to do for release is adding subsilver support now :) Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.16 retrieving revision 1.21.2.17 diff -C2 -d -r1.21.2.16 -r1.21.2.17 *** ajax.php 8 Jun 2007 21:35:52 -0000 1.21.2.16 --- ajax.php 18 Jun 2007 16:17:43 -0000 1.21.2.17 *************** *** 72,76 **** var post_info = timer_in = last = null; var display_shoutbox = false; ! var start = reload = first = true; var smilies = false; var count = 0; --- 72,76 ---- var post_info = timer_in = last = null; var display_shoutbox = false; ! var start = first = true; var smilies = false; var count = 0; *************** *** 311,317 **** document.getElementById('post_message').style.display = 'block'; count = 0;// Set count to 0, because otherwise user willn't see his message - reload = true; clearTimeout(timer_in); ! timer_in = setTimeout('reload_post()', 200); setTimeout('last = 0;', 500); } --- 311,316 ---- document.getElementById('post_message').style.display = 'block'; count = 0;// Set count to 0, because otherwise user willn't see his message clearTimeout(timer_in); ! timer_in = setTimeout('reload_post();reload_page();', 200); setTimeout('last = 0;', 500); } *************** *** 489,493 **** bbcode.style.textDecoration = 'underline'; bbcode.style.width = '33px'; - bbcode.style.height = '50px' bbcode.onclick = function() { --- 488,491 ---- *************** *** 774,782 **** function reload_page() { - if (!reload) - { - // No reload needed, return. - return; - } if (hnr.readyState == 4 || hnr.readyState == 0) { --- 772,775 ---- *************** *** 791,795 **** if (hnr.readyState == 4) { - reload = false; xml = hnr.responseXML; if (check_error(xml)) --- 784,787 ---- *************** *** 807,811 **** f.innerHTML = ''; var d = ce('div'); - var j = 1; if (nr < <?php echo $shout_number; ?>) --- 799,802 ---- *************** *** 814,822 **** } ! for (var i = 0; i < nr ; i = i + <?php echo $shout_number; ?>) { a = ce('a'); ! a.appendChild(tn(j)); ! a.c = i; a.href = "javascript:;"; a.onclick = function() --- 805,956 ---- } ! var per_page = <?php echo $shout_number; ?>; ! ! var total_pages = Math.ceil(nr / per_page); ! ! if (total_pages == 1 || !nr) { + return; + } + + on_page = Math.floor(count / per_page) + 1; + + var p = ce('span'); + var a = ce('a'); + var b = ce('strong'); + + if (on_page == 1) + { + b.appendChild(tn('1')); + p.appendChild(b); + b = ce('strong'); + } + else + { + a.c = ((on_page - 2) * per_page); + a.href = "javascript:;"; + a.onclick = function() + { + count = this.c; + last = 0; // Reset last, otherwise it will not be loaded. + clearTimeout(timer_in); + reload_post(); + reload_page(); + } + + a.appendChild(tn('<?php echo $user->lang['PREVIOUS']; ?>')); + + p.appendChild(a); + + p.appendChild(tn(' ')); + + a = ce('a'); + + a.c = 0; + a.href = "javascript:;"; + a.onclick = function() + { + count = this.c; + last = 0; // Reset last, otherwise it will not be loaded. + clearTimeout(timer_in); + reload_post(); + reload_page(); + } + + a.appendChild(tn('1')); + + p.appendChild(a); a = ce('a'); ! } ! ! if (total_pages > 5) ! { ! var start_cnt = Math.min(Math.max(1, on_page - 4), total_pages - 5); ! var end_cnt = Math.max(Math.min(total_pages, on_page + 4), 6); ! ! p.appendChild((start_cnt > 1) ? tn(' ... ') : cp()); ! ! for (var i = start_cnt + 1; i < end_cnt; i++) ! { ! if (i == on_page) ! { ! b.appendChild(tn(i)); ! p.appendChild(b); ! b = ce('strong'); ! } ! else ! { ! a.c = (i - 1) * per_page; ! a.href = "javascript:;"; ! a.onclick = function() ! { ! count = this.c; ! last = 0; // Reset last, otherwise it will not be loaded. ! clearTimeout(timer_in); ! reload_post(); ! reload_page(); ! } ! ! a.appendChild(tn(i)); ! ! p.appendChild(a); ! a = ce('a'); ! } ! if (i < end_cnt - 1) ! { ! p.appendChild(cp()); ! } ! } ! ! p.appendChild((end_cnt < total_pages) ? tn(' ... ') : cp()); ! } ! else ! { ! p.appendChild(cp()); ! for (var i = 2; i < total_pages; i++) ! { ! if (i == on_page) ! { ! b.appendChild(tn(i)); ! p.appendChild(b); ! b = ce('strong'); ! } ! else ! { ! a.c = (i - 1) * per_page; ! a.href = "javascript:;"; ! a.onclick = function() ! { ! count = this.c; ! last = 0; // Reset last, otherwise it will not be loaded. ! clearTimeout(timer_in); ! reload_post(); ! reload_page(); ! } ! ! a.appendChild(tn(i)); ! ! p.appendChild(a); ! a = ce('a'); ! } ! if (i < total_pages) ! { ! page_string.appendChild(cp()); ! } ! } ! } ! ! if (on_page == total_pages) ! { ! b.appendChild(tn(total_pages)); ! p.appendChild(b); ! b = ce('strong'); ! } ! else ! { ! ! a = ce('a'); ! ! a.c = ((total_pages - 1) * per_page); a.href = "javascript:;"; a.onclick = function() *************** *** 824,837 **** count = this.c; last = 0; // Reset last, otherwise it will not be loaded. - reload = true; clearTimeout(timer_in); reload_post(); } ! d.appendChild(a); ! d.appendChild(tn(' ')); ! j++; ! } ! f.appendChild(d); } } --- 958,991 ---- count = this.c; last = 0; // Reset last, otherwise it will not be loaded. clearTimeout(timer_in); reload_post(); + reload_page(); } ! ! a.appendChild(tn(total_pages)); ! ! p.appendChild(a); ! a = ce('a'); ! a.c = ((on_page) * per_page); ! a.href = "javascript:;"; ! a.onclick = function() ! { ! count = this.c; ! last = 0; // Reset last, otherwise it will not be loaded. ! clearTimeout(timer_in); ! reload_post(); ! reload_page(); ! } ! ! a.appendChild(tn('<?php echo $user->lang['NEXT']; ?>')); ! ! p.appendChild(tn(' ')); ! ! p.appendChild(a); ! a = ce('a'); ! } ! ! f.appendChild(p); } } *************** *** 847,851 **** hnr.send(null); } - setTimeout("reload_page();", 500); } function reload_post() --- 1001,1004 ---- *************** *** 896,903 **** posts.appendChild(tn('<?php echo $user->lang['no_message']; ?>')); } - else - { - reload = false; - } } else --- 1049,1052 ---- *************** *** 905,909 **** if (hin.readyState == 4 || hin.readyState == 0) { - reload = true; last = xml.getElementsByTagName('last')[0].childNodes[0].nodeValue; // Lets got some nice things :D --- 1054,1057 ---- *************** *** 915,919 **** if (hin.readyState == 4) { - reload = true; if (!hin.responseXML) { --- 1063,1066 ---- *************** *** 1021,1024 **** --- 1168,1172 ---- clearTimeout(timer_in); reload_post(); + reload_page(); } } *************** *** 1194,1197 **** --- 1342,1352 ---- return document.createTextNode(e); } + function cp() + { + var sep = ce('span'); + sep.className = 'page-sep'; + sep.appendChild(tn('<?php echo $user->lang['COMMA_SEPARATOR'];?>')); + return sep; + } function check_error(xml) { |
From: Paul S. <pau...@us...> - 2007-06-08 21:35:58
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/language/en/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26190/root/language/en/mods Added Files: Tag: phpbb3_ver shout.php Log Message: Lot of bug fixes. --- NEW FILE: shout.php --- <?php /** * * shout [English] * * @package language * @version $Id: shout.php,v 1.1.2.1 2007/06/08 21:35:52 paulsohier Exp $ * @copyright (c) 2005 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * DO NOT CHANGE */ if (empty($lang) || !is_array($lang)) { $lang = array(); } // DEVELOPERS PLEASE NOTE // // All language files should use UTF-8 as their encoding and the files must not contain a BOM. // // Placeholders can now contain order information, e.g. instead of // 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows // translators to re-order the output of data while ensuring it remains correct // // You do not need this where single placeholders are used, e.g. 'Message %d' is fine // equally where a string contains only two placeholders which are used to wrap text // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine /** * NOTE: Most of the language items are used in javascript * If you want to use quotes or other chars that need escaped, be sure you escape them double * (Especially for ', you must use \\\' instead of \'. For " you only need to use \". */ /** * @TODO:Change this to uppercase things. */ $lang = array_merge($lang, array( 'missing_div' => 'The shoutbox div cann\\\'t be found.', 'loading' => 'Loading', 'post_message' => 'Post message', 'sending' => 'Sending message.', 'message_empty' => 'Message is empty.', 'invalid_xml' => 'The xml is invalid: tr/td without table', 'invalid_el' => 'Invalid element: ', 'xml_er' => 'XML error.', 'no_message' => 'There are no messages.', 'no_ajax' => 'No ajax', 'js_err' => 'There has been a JavaScript error. \nError:', 'line' => 'Line', 'file' => 'File', 'flood_error' => 'Flood error', 'posted' => 'Message posted.', //Added in 0.0.3 'no_quote' => 'Don\\\'t use list, quote or code bbcode.', 'smilies' => 'Smilies', 'del_shout' => 'Are you sure you want to delete this shout?', 'no_shout_id' => 'No shout id.', 'msg_del_done' => 'Message deleted', 'SHOUTBOX' => 'Shoutbox', )); ?> |
From: Paul S. <pau...@us...> - 2007-06-08 21:35:57
|
Update of /cvsroot/paulscriptsmods/ajax_shout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26190 Modified Files: Tag: phpbb3_ver install.xml Log Message: Lot of bug fixes. Index: install.xml =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/install.xml,v retrieving revision 1.19.2.9 retrieving revision 1.19.2.10 diff -C2 -d -r1.19.2.9 -r1.19.2.10 *** install.xml 28 May 2007 10:23:26 -0000 1.19.2.9 --- install.xml 8 Jun 2007 21:35:52 -0000 1.19.2.10 *************** *** 26,30 **** <major>0</major> <minor>0</minor> ! <revision>1</revision> </mod-version> <installation> --- 26,30 ---- <major>0</major> <minor>0</minor> ! <revision>2</revision> </mod-version> <installation> *************** *** 52,55 **** --- 52,78 ---- </changelog> </entry> + <entry> + <date>2007-xx-xx</date> + <rev-version> + <major>0</major> + <minor>0</minor> + <revision>2</revision> + </rev-version> + <changelog lang="en"> + <change>Update code to fit code guidelines a bit more</change> + <change>Dont display page numbers when there is only 1 page (xsnslaine)</change> + <change>Changed way of handling errors (Bug by xsnslaine)</change> + <change>Refresh shoutbox after deleting message (Mrtb)</change> + <change>Added 3px left padding to message (dr.death)</change> + <change>Usernames where not bold displayed when user has a color (dr.death)</change> + <change>Underline bbcode wasnt working (Mrtb)</change> + <change>U bbcode button wasnt underlined (Mrtb)(Dont work with firefox!)</change> + <change>moved language file to mods directory.</change> + <change>Fixed underlined space in bbcode button (ZeroT)</change> + <change>Rewrited pagination functions</change> + <change>subsilver2 compitable.</change> + + </changelog> + </entry> </history> <meta name="generator" content="Phpbb.ModTeam.Tools (c#)" /> *************** *** 66,73 **** shout_bbcode_flags int(11) unsigned NOT NULL default '7', PRIMARY KEY (shout_id) ! );</sql> <copy> <file from="root/ajax.php" to="ajax.php" /> ! <file from="root/language/en/shout.php" to="language/en/shout.php" /> <file from="root/bbcode.js" to="bbcode.js" /> </copy> --- 89,97 ---- shout_bbcode_flags int(11) unsigned NOT NULL default '7', PRIMARY KEY (shout_id) ! ); ! </sql> <copy> <file from="root/ajax.php" to="ajax.php" /> ! <file from="root/language/en/mods/shout.php" to="language/en/mods/shout.php" /> <file from="root/bbcode.js" to="bbcode.js" /> </copy> |
From: Paul S. <pau...@us...> - 2007-06-08 21:35:57
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/language/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26190/root/language/en Removed Files: Tag: phpbb3_ver shout.php Log Message: Lot of bug fixes. --- shout.php DELETED --- |
From: Paul S. <pau...@us...> - 2007-06-08 21:35:52
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26190/root Modified Files: Tag: phpbb3_ver ajax.php Log Message: Lot of bug fixes. Index: ajax.php =================================================================== RCS file: /cvsroot/paulscriptsmods/ajax_shout/root/ajax.php,v retrieving revision 1.21.2.15 retrieving revision 1.21.2.16 diff -C2 -d -r1.21.2.15 -r1.21.2.16 *** ajax.php 1 Jun 2007 11:16:51 -0000 1.21.2.15 --- ajax.php 8 Jun 2007 21:35:52 -0000 1.21.2.16 *************** *** 486,492 **** bbcode.accesskey = 'u'; bbcode.name = bbcode.id = 'addbbcode4'; ! bbcode.value = bbcode.defaultValue = ' U '; bbcode.style.textDecoration = 'underline'; bbcode.style.width = '33px'; bbcode.onclick = function() { --- 486,493 ---- bbcode.accesskey = 'u'; bbcode.name = bbcode.id = 'addbbcode4'; ! bbcode.value = bbcode.defaultValue = 'U'; bbcode.style.textDecoration = 'underline'; bbcode.style.width = '33px'; + bbcode.style.height = '50px' bbcode.onclick = function() { *************** *** 717,720 **** --- 718,728 ---- function add_style(el, s) { + var c = el.getAttribute('class'); + + if (c != null) + { + s.className = c; + } + f = el.getAttribute("style"); *************** *** 756,759 **** --- 764,771 ---- s.style.color = f2[1]; break; + + case 'text-decoration': + s.style.textDecoration = f2[1]; + break; } } *************** *** 796,799 **** --- 808,817 ---- var d = ce('div'); var j = 1; + + if (nr < <?php echo $shout_number; ?>) + { + return; + } + for (var i = 0; i < nr ; i = i + <?php echo $shout_number; ?>) { *************** *** 946,949 **** --- 964,969 ---- var inh = tmp[i]; dt.style.width = '15%'; + + dd.style.paddingLeft = '3px'; var s = ce('span'); *************** *** 984,990 **** if (hdelete.readyState == 4) { - clearTimeout(timer_in); xml = hdelete.responseXML; - document.getElementById('msg').innerHTML = ''; if (check_error(xml)) --- 1004,1008 ---- *************** *** 996,1003 **** else { ! document.getElementById('msg').appendChild(tn('<?php echo $user->lang['msg_del_done']; ?>')); } ! setTimeout("reload_post();",10000); ! last = 0;//Reset last, because if we delete the last message, the next messages cannot load correctly. } } --- 1014,1024 ---- else { ! message('<?php echo $user->lang['msg_del_done']; ?>'); } ! setTimeout("document.getElementById('msg_txt').innerHTML = ''",3000); ! ! last = 0;// Reset last, because if we delete the last message, the next messages cannot load correctly. ! clearTimeout(timer_in); ! reload_post(); } } *************** *** 1034,1038 **** dd.appendChild(button); dl.appendChild(dd); ! dd = ce('dd'); <?php } --- 1055,1061 ---- dd.appendChild(button); dl.appendChild(dd); ! dd = ce('dd'); ! ! dd.style.paddingLeft = '3px'; <?php } |
From: Paul S. <pau...@us...> - 2007-06-08 21:35:18
|
Update of /cvsroot/paulscriptsmods/ajax_shout/root/language/en/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26140/mods Log Message: Directory /cvsroot/paulscriptsmods/ajax_shout/root/language/en/mods added to the repository --> Using per-directory sticky tag `phpbb3_ver' |