You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: OryNider <ory...@us...> - 2007-06-06 22:21:01
|
Update of /cvsroot/mxbb/mx_phpCA/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv488/language Log Message: Directory /cvsroot/mxbb/mx_phpCA/language added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 22:21:01
|
Update of /cvsroot/mxbb/mx_phpCA/ads_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv488/ads_mod Log Message: Directory /cvsroot/mxbb/mx_phpCA/ads_mod added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 22:21:01
|
Update of /cvsroot/mxbb/mx_phpCA/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv488/admin Log Message: Directory /cvsroot/mxbb/mx_phpCA/admin added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:48:40
|
Update of /cvsroot/mxbb/mx_glance/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7828/subSilver Added Files: glance_body.tpl glance_body_big.tpl Log Message: --- NEW FILE: glance_body.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN no_glance_news_and_recent --> <tr> <td class="row1" align="left" colspan="2">{no_glance_news_and_recent.L_NO_ITEMS}</td> </tr> <!-- END no_glance_news_and_recent --> <!-- BEGIN switch_glance_news --> <tr> <td class="catLeft" height="28"><span class="cattitle">{NEWS_HEADING}</span></td> </tr> <tr> <td class="row1" valign="top"><span class="genmed"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <!-- END switch_glance_news --> <!-- BEGIN news --> <tr> <td nowrap valign="top">{news.BULLET}</td> <td valign="top" width="100%"><span class="genmed"> <a title="{L_LAST_REPLY}: {news.POST_TIME}" href="{news.TOPIC_LINK}" class="genmed">{news.TOPIC_TITLE}</a></span><br><span class="gensmall" nowrap="nowrap">{news.TOPIC_TIME}</span></td> </tr> <!-- END news --> <!-- BEGIN switch_glance_news --> </table> </span></td> </tr> <!-- END switch_glance_news --> <!-- BEGIN switch_glance_recent --> <tr> <td class="catLeft" height="28"><span class="cattitle">{RECENT_HEADING}</span></td> </tr> <tr> <td class="row1" valign="top" height="100%"><span class="genmed"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <!-- END switch_glance_recent --> <!-- BEGIN recent --> <tr> <td nowrap valign="top">{recent.BULLET}</td> <td valign="top" width="100%"> <p style="margin-top: 0; margin-bottom: 0"><span class="genmed"> <a class="genmed" title="{recent.TOPIC_TIME}" href="{recent.TOPIC_LINK}">{recent.TOPIC_TITLE}</a></span> <br /><span class="gensmall"> {L_WRITEN_BY}: {recent.TOPIC_POSTER}</span> <br /><span class="genmed"> <span class="gensmall"> ({recent.TOPIC_REPLIES}) {L_COMMENTS}</span></span> </p> <p style="margin-top: 0; margin-bottom: 0" align="right"><span class="gensmall" nowrap="nowrap"> {L_LAST_BY}: {recent.LAST_POSTER} </span> </td> </tr> <!-- END recent --> <!-- BEGIN switch_glance_recent --> </table> </span></td> </tr> <!-- END switch_glance_recent --> </table> --- NEW FILE: glance_body_big.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN switch_glance_news --> <tr> <th class="thCornerL" height="28" align="center" width="30"> <!-- <span class="newsbutton" onClick="rollup_contract(this, 'phpbbGlance_news');">--> <!-- BEGIN switch_news_on --> - <!-- END switch_news_on --> <!-- BEGIN switch_news_off --> + <!-- END switch_news_off --> </span> </th> <th class="thTop" height="28" align="left"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><th align="left"> {NEWS_HEADING} </th> <th align="right"> {switch_glance_news.PREV_URL} {switch_glance_news.NEXT_URL} </th> </tr> </table> </th> <th class="thTop" width="100" align="center" nowrap="nowrap"> {L_FORUM} </th> <th class="thTop" width="100" align="center" nowrap="nowrap"> {L_AUTHOR} </th> <th class="thTop" width="50" align="center" nowrap="nowrap"> {L_REPLIES} </th> <th class="thCornerR" align="center" nowrap="nowrap"> {L_LASTPOST} </th> </tr> <!-- BEGIN switch_news_on --> <tbody id="phpbbGlance_news" style="display: ;"> <!-- END switch_news_on --> <!-- BEGIN switch_news_off --> <tbody id="phpbbGlance_news" style="display: none;"> <!-- END switch_news_off --> <!-- END switch_glance_news --> <!-- BEGIN news --> <tr> <td nowrap="nowrap" valign="middle" class="row1" align="center" width="30"><a title="{news.TOPIC_TIME}" title="{news.TOPIC_TIME}" href="{news.TOPIC_LINK}">{news.BULLET}</a></td> <td valign="middle" width="100%" class="row1"><span class="genmed"><a href="{news.TOPIC_LINK}" class="genmed">{news.TOPIC_TITLE}</a></span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed"><a href="{news.FORUM_LINK}" class="genmed">{news.FORUM_TITLE}</a></span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{news.TOPIC_POSTER}</span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">{news.TOPIC_REPLIES}</span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{news.POST_TIME}<br />{news.LAST_POSTER}</span></td> </tr> <!-- END news --> </tbody> <tr> <td class="spaceRow" colspan="6" height="1"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/spacer.gif" alt="" width="1" height="1" /></td> </tr> <!-- BEGIN switch_glance_recent --> <tr> <th class="thCornerL" height="28" align="center" width="30"> <!-- <span class="newsbutton" onClick="rollup_contract(this, 'phpbbGlance_recent');">--> <!-- BEGIN switch_recent_on --> - <!-- END switch_recent_on --> <!-- BEGIN switch_recent_off --> + <!-- END switch_recent_off --> </span> </th> <th class="thTop" height="28" align="left"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><th align="left"> {RECENT_HEADING} </th> <th align="right"> {switch_glance_recent.PREV_URL} {switch_glance_recent.NEXT_URL} </th> </tr> </table> </th> <th class="thTop" width="100" align="center" nowrap="nowrap"> {L_FORUM} </th> <th class="thTop" width="100" align="center" nowrap="nowrap"> {L_AUTHOR} </th> <th class="thTop" width="50" align="center" nowrap="nowrap"> {L_REPLIES} </th> <th class="thCornerR" align="center" nowrap="nowrap"> {L_LASTPOST} </th> </tr> <!-- BEGIN switch_recent_on --> <tbody id="phpbbGlance_recent" style="display: ;"> <!-- END switch_recent_on --> <!-- BEGIN switch_recent_off --> <tbody id="phpbbGlance_recent" style="display: none;"> <!-- END switch_recent_off --> <!-- END switch_glance_recent --> <!-- BEGIN recent --> <tr> <td nowrap="nowrap" valign="middle" class="row1" align="center" width="30"><a title="{recent.TOPIC_TIME}" title="{recent.TOPIC_TIME}" href="{recent.TOPIC_LINK}">{recent.BULLET}</a></td> <td valign="middle" width="100%" class="row1"><span class="genmed"><a href="{recent.TOPIC_LINK}" class="genmed">{recent.TOPIC_TITLE}</a></span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed"><a href="{recent.FORUM_LINK}" class="genmed">{recent.FORUM_TITLE}</a></span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{recent.TOPIC_POSTER}</span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">{recent.TOPIC_REPLIES}</span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{recent.POST_TIME}<br />{recent.LAST_POSTER}</span></td> </tr> <!-- END recent --> </tbody> </table> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:48:39
|
Update of /cvsroot/mxbb/mx_glance/templates/Avalanche In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7828/Avalanche Added Files: glance_body.tpl glance_body_big.tpl Log Message: --- NEW FILE: glance_body.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN no_glance_news_and_recent --> <tr> <td class="row1" align="left" colspan="2">{no_glance_news_and_recent.L_NO_ITEMS}</td> </tr> <!-- END no_glance_news_and_recent --> <!-- BEGIN switch_glance_news --> <tr> <td class="catLeft" height="28"><span class="cattitle">{NEWS_HEADING}</span></td> </tr> <tr> <td class="row1" valign="top"><span class="genmed"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <!-- END switch_glance_news --> <!-- BEGIN news --> <tr> <td nowrap valign="top">{news.BULLET}</td> <td valign="top" width="100%"><span class="genmed"> <a title="{L_LAST_REPLY}: {news.POST_TIME}" href="{news.TOPIC_LINK}" class="genmed">{news.TOPIC_TITLE}</a></span><br><span class="gensmall" nowrap="nowrap">{news.TOPIC_TIME}</span></td> </tr> <!-- END news --> <!-- BEGIN switch_glance_news --> </table> </span></td> </tr> <!-- END switch_glance_news --> <!-- BEGIN switch_glance_recent --> <tr> <td class="catLeft" height="28"><span class="cattitle">{RECENT_HEADING}</span></td> </tr> <tr> <td class="row1" valign="top" height="100%"><span class="genmed"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <!-- END switch_glance_recent --> <!-- BEGIN recent --> <tr> <td nowrap valign="top">{recent.BULLET}</td> <td valign="top" width="100%"> <p style="margin-top: 0; margin-bottom: 0"><span class="genmed"> <a class="genmed" title="{recent.TOPIC_TIME}" href="{recent.TOPIC_LINK}">{recent.TOPIC_TITLE}</a></span> <br /><span class="gensmall"> {L_WRITEN_BY}: {recent.TOPIC_POSTER}</span> <br /><span class="genmed"> <span class="gensmall"> ({recent.TOPIC_REPLIES}) {L_COMMENTS}</span></span> </p> <p style="margin-top: 0; margin-bottom: 0" align="right"><span class="gensmall" nowrap="nowrap"> {L_LAST_BY}: {recent.LAST_POSTER} </span> </td> </tr> <!-- END recent --> <!-- BEGIN switch_glance_recent --> </table> </span></td> </tr> <!-- END switch_glance_recent --> </table> <table width="100%" cellspacing="0" border="0" cellpadding="0" style="border-bottom:none;"> <tr> <td class="left_bottom"><span class="gensmall"> </span></td> <td class="middle_bottom3"><span class="gensmall"> </span></td> <td class="middle_bottom2"><span class="gensmall"> </span></td> <td class="middle_bottom" align="center"> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false">{L_BACK_TO_TOP}</a></span> </td> <td class="right_bottom"><span class="gensmall"> </span></td> </tr> </table> --- NEW FILE: glance_body_big.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN switch_glance_news --> <tr> <th class="thCornerL" height="28" align="center" width="30"> <!-- <span class="newsbutton" onClick="rollup_contract(this, 'phpbbGlance_news');">--> <!-- BEGIN switch_news_on --> - <!-- END switch_news_on --> <!-- BEGIN switch_news_off --> + <!-- END switch_news_off --> </span> </th> <th width="200" height="30" align="justify"> <table width="120" cellpadding="0" cellspacing="0" border="0"> <tr><th align="left"> {NEWS_HEADING} </th> <th align="right"> {switch_glance_news.PREV_URL} {switch_glance_news.NEXT_URL} </th> </tr> </table> </th> <th class="thTop" width="100" align="center" nowrap="nowrap"> {L_FORUM} </th> <th class="thTop" width="100" align="center" nowrap="nowrap"> {L_AUTHOR} </th> <th class="thTop" width="50" align="center" nowrap="nowrap"> {L_REPLIES} </th> <th class="thCornerR" width="50%" align="center" nowrap="nowrap"> {L_LASTPOST} </th> </tr> <!-- BEGIN switch_news_on --> <tbody id="phpbbGlance_news" style="display: ;"> <!-- END switch_news_on --> <!-- BEGIN switch_news_off --> <tbody id="phpbbGlance_news" style="display: none;"> <!-- END switch_news_off --> <!-- END switch_glance_news --> <!-- BEGIN news --> <tr> <td nowrap="nowrap" valign="middle" class="row1" align="center" width="30"><a href="{news.TOPIC_LINK}">{news.BULLET}</a></td> <td valign="middle" width="200" class="row1"><span class="genmed"><a alt="{news.TOPIC_TIME}" title="{news.TOPIC_TIME}" href="{news.TOPIC_LINK}" class="genmed">{news.TOPIC_TITLE}</a></span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed"><a href="{news.FORUM_LINK}" class="genmed">{news.FORUM_TITLE}</a></span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{news.TOPIC_POSTER}</span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">{news.TOPIC_REPLIES}</span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{news.POST_TIME}<br />{news.LAST_POSTER}</span></td> </tr> <!-- END news --> </tbody> <!-- <tr> <td class="spaceRow" colspan="6"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/spacer.gif" alt="" /></td> </tr> --> <!-- BEGIN switch_glance_recent --> <tr> <th class="thCornerL" height="28" align="center" width="30"> <!-- <span class="newsbutton" onClick="rollup_contract(this, 'phpbbGlance_recent');">--> <!-- BEGIN switch_recent_on --> - <!-- END switch_recent_on --> <!-- BEGIN switch_recent_off --> + <!-- END switch_recent_off --> </span> </th> <th width="200" height="30" align="justify"> <table width="120" cellpadding="0" cellspacing="0" border="0"> <tr><th align="left"> {RECENT_HEADING} </th> <th align="right"> {switch_glance_recent.PREV_URL} {switch_glance_recent.NEXT_URL} </th> </tr> </table> </th> <th class="thTop" width="100%" align="center" nowrap="nowrap"> {L_FORUM} </th> <th class="thTop" width="100%" align="center" nowrap="nowrap"> {L_AUTHOR} </th> <th class="thTop" width="50" align="center" nowrap="nowrap"> {L_REPLIES} </th> <th class="thCornerR" width="50%" align="center" nowrap="nowrap"> {L_LASTPOST} </th> </tr> <!-- BEGIN switch_recent_on --> <tbody id="phpbbGlance_recent" style="display: ;"> <!-- END switch_recent_on --> <!-- BEGIN switch_recent_off --> <tbody id="phpbbGlance_recent" style="display: none;"> <!-- END switch_recent_off --> <!-- END switch_glance_recent --> <!-- BEGIN recent --> <tr> <td nowrap="nowrap" valign="middle" class="row1" align="center" width="20"><a title="{recent.TOPIC_TIME}" href="{recent.TOPIC_LINK}">{recent.BULLET}</a></td> <td valign="middle" width="100%" class="row1"><span class="genmed"><a href="{recent.TOPIC_LINK}" class="genmed">{recent.TOPIC_TITLE}</a></span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed"><a href="{recent.FORUM_LINK}" class="genmed">{recent.FORUM_TITLE}</a></span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{recent.TOPIC_POSTER}</span></td> <td valign="middle" class="row2" nowrap="nowrap" align="center"><span class="genmed">{recent.TOPIC_REPLIES}</span></td> <td valign="middle" class="row3" nowrap="nowrap" align="center"><span class="genmed">{recent.POST_TIME}<br />{recent.LAST_POSTER}</span></td> </tr> <!-- END recent --> </tbody> </table> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:48:31
|
Update of /cvsroot/mxbb/mx_glance/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7537/lang_romanian Added Files: index.htm lang_admin.php lang_main.php Log Message: --- NEW FILE: lang_main.php --- <?php // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); setlocale(LC_ALL, "ro"); // Module $lang['glance_news_heading'] = "Ultimile Noutãþi"; $lang['glance_recent_heading'] = "Discuþii Recente"; $lang['comments'] = 'comentarii'; $lang['writen_by'] = 'scris de'; $lang['last_by'] = 'ultimul mesaj'; $lang['last_reply'] = 'utimul mesaj la'; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); $lang['Glance_news_forum_id'] = "ID Forum Glance de Noutãþi"; $lang['Glance_num_news'] = "Numãrul noutãþilor de afiºat"; $lang['Glance_num_recent'] = "Numãrul postãrilor curente"; $lang['Glance_table_width'] = "Mãrime implicitã block"; $lang['Glance_show_new_bullets'] = "Aratã bulleþi Nou"; $lang['Glance_track'] = "Track"; $lang['Glance_auth_read'] = "Auth read"; $lang['Glance_news_forum'] = "Forum Noutãþi"; $lang['Glance_use_large'] = "Style"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:48:31
|
Update of /cvsroot/mxbb/mx_glance/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7537/lang_english Added Files: index.htm lang_admin.php lang_main.php Log Message: --- NEW FILE: lang_main.php --- <?php // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); // Module $lang['glance_news_heading'] = "Latest Site News"; $lang['glance_recent_heading'] = "Recent Discussions"; $lang['comments'] = 'comments'; $lang['writen_by'] = 'writen by'; $lang['last_by'] = 'last reply'; $lang['last_reply'] = 'last comment'; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); $lang['Glance_news_forum_id'] = "Glance news forum id"; $lang['Glance_num_news'] = "Number of News to display"; $lang['Glance_num_recent'] = "Number of recent posts"; $lang['Glance_table_width'] = "Table width - block"; $lang['Glance_show_new_bullets'] = "Show new bullets"; $lang['Glance_track'] = "Track"; $lang['Glance_auth_read'] = "Auth read"; $lang['Glance_news_forum'] = "News forums"; $lang['Glance_use_large'] = "Style"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:48:02
|
Update of /cvsroot/mxbb/mx_glance In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6660 Added Files: db_install.php db_upgrade.php index.htm mx_glance.pak mx_glance.php mx_install_readme.htm Log Message: --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_glance * @version $Id: db_upgrade.php,v 1.1 2007/06/06 21:47:49 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '2.3.3'; $mx_module_copy = 'mxBB <i> - At A Glace</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; $message = "<b>Upgrading!</b><br/><br/>"; $sql = array(); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: mx_install_readme.htm --- <html> <head> <title>Mx Portal installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link, a:active, a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url('../../install/templates/subSilver/images/cellpic2.jpg'); background-repeat: repeat-y } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url('../../install/templates/subSilver/images/cellpic3.gif'); } td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { background-image: url('../../install/templates/subSilver/images/cellpic1.gif'); background-color:#D1D7DC; border: medium solid #FFFFFF; height: 28px } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat, td.catHead, td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right, td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen, .genmed, .gensmall { color : #000000; } a.gen, a.genmed, a.gensmall { color: #006699; text-decoration: none; } a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle, h1, h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input, textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- if ( 0 ) { window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table> <tr> <td colspan="2"><p><b><font face="Tahoma">MX Module - mx_glance<br> v. </font></b><font face="Tahoma"><b>2.3.3</b></font></p> <p><font face="Tahoma"> <span style="line-height: normal; font-weight:bold">Module</span> <br /> - tested with Mx Portal v. 2.8.0</font></p> <p><font face="Tahoma"><strong>Authors</strong><br /> blulegend, Jack Kan, OryNider, netclectic<br /> <br /> <span style="font-weight: bold">Description</span> <br /> The MX Module is an addon product for the mxBB-portal. This module / block is showing latest news and recent topics on any page.Customizable to show only news, only recent topics, or both. Will check the authorization of users and only show allowed topics.</font></p> <p><font face="Tahoma"><strong>Features</strong> <br /> Easy to use and install/uninstall module.</font></p> <p> <font face="Tahoma"> <br /> I. <a href="#install">Installation instructions</a> <br /> <br /> II. <a href="#themes">Additional styles</a> <br /> <br /> III. <a href="#languages">Additional languages</a><br /> <br /> <a target="_blank" class="postlink" href="http://pubory.uv.ro/potal/"> </a> <br /> <br /><a name="install"> <br /> <span style="font-weight: bold">I. Installation Instructions</span> <br /> To install this module, follow these instructions.</a></font></p> <font face="Tahoma">To summarize:<br> If installing from scratch, use import module in the AdminCP.<br> If upgrading, upgrade from AdminCP<br> If uninstalling, use the delete feature in the AdminCP</font></p> <p style="margin-top: 0; margin-bottom: 0"> <font face="Tahoma"> <br /> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> <font size="2">Back to Top</font></a></span><font size="2"> </font> <br /> <br /><b>II. Additional Styles</b> <br> This module is compatible with any theme/style. <br> <a name="themes"> </font></p> <p style="margin-top: 0; margin-bottom: 0"><font face="Tahoma"> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> <font size="2">Back to Top</font></a></span><font size="2"> </font> <br /><a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> First check to see if your language is already translated. </a> <br /> <br /> If exists, download and install in the modules/mx_glance/language folder. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. <br /> <br /> <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> <font size="2">Back to Top</font></a></span><font size="2"> </font> </font></p> <p> <font face="Tahoma">/Mx Development Team</font></p> </td> </tr> </table> </body> </html> --- NEW FILE: db_install.php --- <?php /** * * @package mxBB Portal Module - mx_glance * @version $Id: db_install.php,v 1.1 2007/06/06 21:47:48 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '2.3.3'; $mx_module_copy = 'mxBB <i> - At A Glance</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: mx_glance.pak --- module=+:62=+:Last News and Topics=+:modules/mx_glance/=+:Glance Module=+:0 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:62=+:73=+:Last News and Topics=+:Last News and Topics=+:mx_glance.php=+: parameter=+:73=+:137=+:Glance_news_forum_id=+:Number=+:1=+:=+:0 parameter=+:73=+:138=+:Glance_num_news=+:Number=+:1=+:=+:0 parameter=+:73=+:139=+:Glance_num_recent=+:Number=+:5=+:=+:0 parameter=+:73=+:140=+:Glance_table_width=+:Number=+:200=+:=+:0 parameter=+:73=+:141=+:Glance_show_new_bullets=+:Boolean=+:TRUE=+:=+:0=+:0 parameter=+:73=+:142=+:Glance_track=+:Boolean=+:TRUE=+:=+:0=+:0 parameter=+:73=+:143=+:Glance_auth_read=+:Boolean=+:FALSE=+:=+:0=+:0 parameter=+:73=+:144=+:Glance_use_large=+:Radio_single_select=+:vertical=+:a:2:{i:0;s:8:"vertical";i:1;s:10:"horizontal";}=+:0=+:20 parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Last News and Topics=+:Demo - Vertical block=+:30=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: mx_glance.php --- <?php /** * * @package mxBB Portal Module - mx_glance * @version $Id: mx_glance.php,v 1.1 2007/06/06 21:47:54 orynider Exp $ * @copyright (c) 2001-2006 blulegend, Jack Kan, OryNider * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( !function_exists( 'auth' ) ) { include_once($phpbb_root_path . 'includes/auth.'.$phpEx); } define('IN_GLANCE', true); // FORUM DIRECTORY // $glance_forum_dir = $phpbb_root_path; // // Read Block Settings // $title = $mx_block->block_info['block_title']; // // Setup config parameters // $glance_use_large = $mx_block->get_parameters( 'Glance_use_large' ); // NEWS FORUM ID // $glance_news_forum = $mx_block->get_parameters( 'Glance_news_forum' ); $glance_news_forum_id = $mx_block->get_parameters( 'Glance_news_forum_id' ); // NUMBER OF NEWS ARTICLES YOU WISH TO DISPLAY $glance_num_news = $mx_block->get_parameters( 'Glance_num_news' ); // NUMBER OF RECENT ARTICLES YOU WISH TO DISPLAY $glance_num_recent = $mx_block->get_parameters( 'Glance_num_recent' ); // TABLE WIDTH $glance_table_width = $mx_block->get_parameters( 'Glance_table_width' ); // CHANGE THE BULLET IF A TOPIC IS NEW? (true / false) $glance_show_new_bullets = $mx_block->get_parameters( 'Glance_show_new_bullets' ); // MESSAGE TRACKING WILL TRACK TO SEE IF A USER HAS READ THE TOPIC DURING THEIR SESSION (true / false) $glance_track = $mx_block->get_parameters( 'Glance_track' ); // SHOW TOPICS THE USER CAN VIEW, BUT NOT READ? (true / false) $glance_auth_read = $mx_block->get_parameters( 'Glance_auth_read' ); /* if ( empty($glance_news_forum) ) { $glance_news_forum = $auth_data_sql_msg; } if ( empty($glance_news_forum) ) { $glance_news_forum = -1; } */ // // Instantiate the mx_text class // include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); $mx_text = new mx_text(); $mx_text->init(true, false, false); // // Decode for display // $title = $mx_text->display($title); // // BEGIN OUTPUT // $template_tmp = $glance_use_large == 'horizontal' ? array('glance_output' => 'glance_body_big.tpl') : array('glance_output' => 'glance_body.tpl'); $template->set_filenames($template_tmp); // NEWS BULLET OLD $glance_news_bullet_old = '<span class="genmed"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // RECENT TOPIC BULLET OLD $glance_recent_bullet_old = '<span class="genmed"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // NEWS BULLET NEW $glance_news_bullet_new = '<span class="genmed" style="color:#FFA34F"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // RECENT TOPIC BULLET NEW $glance_recent_bullet_new = '<span class="genmed" style="color:#FFA34F"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // // Read language definition // if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } // // GET USER LAST VISIT // $glance_last_visit = $userdata['user_lastvisit']; $glance_recent_offset = $HTTP_GET_VARS['glance_recent_offset']; $glance_news_offset = $HTTP_GET_VARS['glance_news_offset']; // // MESSAGE TRACKING // if ( !isset($tracking_topics) && $glance_track ) $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : ''; // CHECK FOR BAD WORDS // // Define censored word matches // $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); // set the topic title sql depending on the character limit set in glance_config $sql_title = ($glance_topic_length) ? ", LEFT(t.topic_title, " . $glance_topic_length . ") as topic_title" : ", t.topic_title"; // // GET THE LATEST NEWS TOPIC // if ( $glance_num_news ) { $news_data = $db->sql_fetchrow($result); /* if ( 1 ) { $sql_select = ", p.post_time"; $sql_from = ", " . POSTS_TABLE . " p"; $sql_where = " AND p.post_id = t.topic_last_post_id"; } */ $sql = " SELECT f.forum_id, f.forum_name" . $sql_title . ", t.topic_id, t.topic_time, t.topic_last_post_id, t.topic_poster, t.topic_views, t.topic_replies, t.topic_type, t.topic_status, p2.post_time, p2.poster_id, u.username as last_username, u2.username as author_username FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u, " . USERS_TABLE . " u2 WHERE f.forum_id IN (" . $glance_news_forum_id . ") AND t.forum_id = f.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND t.topic_moved_id = 0 AND p2.poster_id = u.user_id AND t.topic_poster = u2.user_id ORDER BY t.topic_last_post_id DESC"; $sql .= ($glance_news_offset) ? " LIMIT " . $glance_news_offset . ", " . $glance_num_news : " LIMIT " . $glance_num_news; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query new news information", "", __LINE__, __FILE__, $sql); } $latest_news = array(); while ( $topic_row = $db->sql_fetchrow($result) ) { $topic_row['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_row['topic_title']) : $topic_row['topic_title']; $latest_news[] = $topic_row; } $db->sql_freeresult($result); // MOD NAV BEGIN // obtain the total number of topic for our news topic navigation bit $sql = "SELECT SUM(forum_topics) as topic_total FROM " . FORUMS_TABLE . " f WHERE f.forum_id IN (" . $glance_news_forum_id . ")"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query total topics information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $overall_news_topics = $row['topic_total']; $db->sql_freeresult($result); // MOD NAV END } // // GET THE LAST 5 TOPICS // if ( $glance_num_recent ) { $unauthed_forums = array(); $sql = "SELECT forum_id, auth_view FROM " . FORUMS_TABLE . " WHERE forum_id <> " . $glance_news_forum_id; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query new topic information", "", __LINE__, __FILE__, $sql); } $glance_auth_level = ( $glance_auth_read ) ? AUTH_VIEW : AUTH_ALL; $is_auth_ary = array(); $is_auth_ary = auth($glance_auth_level, AUTH_LIST_ALL, $userdata); $forumsignore = $glance_news_forum_id; $base_url = mx_this_url(); if ( $num_forums = count($is_auth_ary) ) { while ( list($forum_id, $auth_mod) = each($is_auth_ary) ) { $unauthed = false; if ( !$auth_mod['auth_view'] && $auth_mod['forum_id'] != $glance_news_forum_id ) { $unauthed = true; } if ( !$glance_auth_read && !$auth_mod['auth_read'] && $auth_mod['forum_id'] != $glance_news_forum_id ) { $unauthed = true; } if ( $unauthed ) { $forumsignore .= ($forumsignore) ? ',' . $forum_id : $forum_id; } } } $forumsignore .= ($forumsignore && $glance_recent_ignore) ? ',' : ''; $sql = " SELECT f.forum_id, f.forum_name" . $sql_title . ", t.topic_id, t.topic_time, t.topic_last_post_id, t.topic_poster, t.topic_views, t.topic_replies, t.topic_type, p2.post_time, p2.poster_id, u.username as last_username, u2.username as author_username FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u, " . USERS_TABLE . " u2 WHERE f.forum_id NOT IN (" . $forumsignore . $glance_recent_ignore . ") AND t.forum_id = f.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND t.topic_moved_id = 0 AND p2.poster_id = u.user_id AND t.topic_poster = u2.user_id ORDER BY t.topic_last_post_id DESC"; $sql .= ($glance_recent_offset) ? " LIMIT " . $glance_recent_offset . ", " . $glance_num_recent : " LIMIT " . $glance_num_recent; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query latest topic information", "", __LINE__, __FILE__, $sql); } $latest_topics = array(); $latest_anns = array(); $latest_stickys = array(); while ( $topic_row = $db->sql_fetchrow($result) ) { $topic_row['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_row['topic_title']) : $topic_row['topic_title']; switch ($topic_row['topic_type']) { case POST_ANNOUNCE: $latest_anns[] = $topic_row; break; case POST_STICKY: $latest_stickys[] = $topic_row; break; default: $latest_topics[] = $topic_row; break; } } $latest_topics = array_merge($latest_anns, $latest_stickys, $latest_topics); $db->sql_freeresult($result); // MOD NAV BEGIN // obtain the total number of topic for our recent topic navigation bit $sql = "SELECT SUM(forum_topics) as topic_total FROM " . FORUMS_TABLE . " f WHERE f.forum_id NOT IN (" . $forumsignore . $glance_recent_ignore . $glance_news_forum_id . ")"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query total topics information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $overall_total_topics = $row['topic_total']; $db->sql_freeresult($result); // MOD NAV END } if ( $glance_num_news ) { if ( !empty($latest_news) ) { $bullet_pre = 'glance_news_bullet'; for ( $i = 0; $i < count($latest_news); $i++ ) { if ( $userdata['session_logged_in'] ) { $unread_topics = false; $topic_id = $latest_news[$i]['topic_id']; if ( $latest_news[$i]['post_time'] > $glance_last_visit ) { $unread_topics = true; if( !empty($tracking_topics[$topic_id]) && $glance_track ) { if( $tracking_topics[$topic_id] >= $latest_news[$i]['post_time'] ) { $unread_topics = false; } } } $shownew = $unread_topics; } else { $unread_topics = false; $shownew = true; } $bullet_full = $bullet_pre . ( ( $shownew && $glance_show_new_bullets ) ? '_new' : '_old' ); $newest_code = ( $unread_topics && $glance_show_new_bullets ) ? '&view=newest' : ''; $topic_link = append_sid(PHPBB_URL . 'viewtopic.php?t=' . $latest_news[$i]['topic_id'] . $newest_code); // // MOD TODAY AT BEGIN // //if ( $board_config['time_today'] < $latest_news[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $latest_news[$i]['post_time'], $board_config['board_timezone'])); //} //else if ( $board_config['time_yesterday'] < $latest_topics[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $latest_news[$i]['post_time'], $board_config['board_timezone'])); //} // MOD TODAY AT END if ( $display_date == "TRUE" ) { $message_date = create_date($board_config['default_dateformat'], $latest_news[$i]['topic_time'], $board_config['board_timezone']); } else { $message_date = create_date($board_config['default_dateformat'], $latest_news[$i]['topic_time'], $board_config['board_timezone']); } $last_poster = ($latest_news[$i]['poster_id'] == ANONYMOUS ) ? ( ($latest_news[$i]['last_username'] != '' ) ? $latest_news[$i]['last_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_news[$i]['poster_id']) . '">' . $latest_news[$i]['last_username'] . '</a> '; $last_poster .= '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $latest_news[$i]['topic_last_post_id']) . '#' . $latest_news[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>'; $topic_poster = ($latest_news[$i]['topic_poster'] == ANONYMOUS ) ? ( ($latest_news[$i]['author_username'] != '' ) ? $latest_news[$i]['author_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_news[$i]['topic_poster']) . '">' . $latest_news[$i]['author_username'] . '</a> '; $last_post_time = create_date($board_config['default_dateformat'], $latest_news[$i]['post_time'], $board_config['board_timezone']); $template->assign_block_vars('news', array( 'BULLET' => $$bullet_full, 'TOPIC_TITLE' => $latest_news[$i]['topic_title'], 'TOPIC_LINK' => append_sid($topic_link), 'TOPIC_TIME' => $message_date, 'POST_TIME' => $last_post_time, 'TOPIC_POSTER' => $topic_poster, 'TOPIC_VIEWS' => $latest_news[$i]['topic_views'], 'TOPIC_REPLIES' => $latest_news[$i]['topic_replies'], 'LAST_POSTER' => $last_poster, 'FORUM_TITLE' => $latest_news[$i]['forum_name'], 'FORUM_LINK' => $glance_forum_dir . 'viewforum.php?f=' . $latest_news[$i]['forum_id'] )); } // MOD NAV BEGIN if (($glance_news_offset > 0) or ($glance_news_offset+$glance_num_news < $overall_news_topics)) { $new_url = '<a href="' . $glance_forum_dir . 'index.' . $phpEx . '?glance_news_offset='; if ($glance_news_offset > 0) { // if we're not on the first record, we can always go backwards $prev_news_url = ($glance_recent_offset > 0) ? $new_url . ($glance_news_offset-$glance_num_news) . '&glance_recent_offset=' . $glance_recent_offset . '" class="th"><< Prev ' . $glance_num_news . '</a>' : $new_url . ($glance_news_offset-$glance_num_news).'" class="th"><< Prev ' . $glance_num_news . '</a>'; } if ($glance_news_offset+$glance_num_news < $overall_total_topics) { // offset + limit gives us the maximum record number // that we could have displayed on this page. if it's // less than the total number of entries, that means // there are more entries to see, and we can go forward $next_news_url = ($glance_recent_offset > 0) ? $new_url . ($glance_news_offset+$glance_num_news) . '&glance_recent_offset=' . $glance_recent_offset . '" class="th">Next ' . $glance_num_news . ' >></a>' : $new_url . ($glance_news_offset+$glance_num_news).'" class="th">Next ' . $glance_num_news . ' >></a>'; } } // MOD NAV END } else { $glance_news_total_info = 'None'; $template->assign_block_vars('news', array( 'BULLET' => $glance_recent_bullet_old, 'LAST_POSTER' => 'None', 'TOPIC_POSTER' => 'None', 'TOPIC_AUTHOR' => 'None', 'TOPIC_REPLIES' => '0', 'TOPIC_TITLE' => 'None' )); } } if ( $glance_num_recent ) { $glance_info = 'counted recent'; $bullet_pre = 'glance_recent_bullet'; if ( !empty($latest_topics) ) { for ( $i = 0; $i < count($latest_topics); $i++ ) { if ( $userdata['session_logged_in'] ) { $unread_topics = false; $topic_id = $latest_topics[$i]['topic_id']; if ( $latest_topics[$i]['post_time'] > $glance_last_visit ) { $unread_topics = true; if( !empty($tracking_topics[$topic_id]) && $glance_track ) { if( $tracking_topics[$topic_id] >= $latest_topics[$i]['post_time'] ) { $unread_topics = false; } } } $shownew = $unread_topics; } else { $unread_topics = false; $shownew = true; } if ( $display_date == "TRUE" ) { $topic_date_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['topic_time'], $board_config['board_timezone']); } else { $topic_date_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['topic_time'], $board_config['board_timezone']); } $bullet_full = $bullet_pre . ( ( $shownew && $glance_show_new_bullets ) ? '_new' : '_old' ); $newest_code = ( $unread_topics && $glance_show_new_bullets ) ? '&view=newest' : ''; $topic_link = append_sid(PHPBB_URL . 'viewtopic.php?t=' . $latest_topics[$i]['topic_id'] . $newest_code); $last_post_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone']); $topic_poster = ($latest_topics[$i]['topic_poster'] == ANONYMOUS ) ? ( ($latest_topics[$i]['author_username'] != '' ) ? $latest_topics[$i]['author_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_topics[$i]['topic_poster']) . '">' . $latest_topics[$i]['author_username'] . '</a> '; $last_poster = ($latest_topics[$i]['poster_id'] == ANONYMOUS ) ? ( ($latest_topics[$i]['last_username'] != '' ) ? $latest_topics[$i]['last_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a alt="' . $last_post_time . '" title="' . $last_post_time . '" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_topics[$i]['poster_id']) . '">' . $latest_topics[$i]['last_username'] . '</a> '; $last_poster .= '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $latest_topics[$i]['topic_last_post_id']) . '#' . $latest_topics[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>'; // // MOD TODAY AT BEGIN // //if ( $board_config['time_today'] < $latest_topics[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone'])); //} //else if ( $board_config['time_yesterday'] < $latest_topics[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone'])); //} // MOD TODAY AT END $template->assign_block_vars('recent', array( 'BULLET' => $$bullet_full, 'TOPIC_LINK' => append_sid($topic_link), 'TOPIC_POSTS' => $latest_topics[$i]['topic_replies'], 'TOPIC_TIME' => $topic_date_time, 'TOPIC_TITLE' => $latest_topics[$i]['topic_title'], 'TOPIC_VIEWS' => $latest_topics[$i]['topic_views'], 'TOPIC_REPLIES' => $latest_topics[$i]['topic_replies'], 'POST_TIME' => $last_post_time, 'LAST_POSTER' => $last_poster, 'TOPIC_POSTER' => $topic_poster, 'TOPIC_AUTHOR' => $topic_poster, 'FORUM_TITLE' => $latest_topics[$i]['forum_name'], 'FORUM_LINK' => $glance_forum_dir . 'viewforum.php?f=' . $latest_topics[$i]['forum_id'] )); } // MOD NAV BEGIN if (($glance_recent_offset > 0) or ($glance_recent_offset+$glance_num_recent < $overall_total_topics)) { $new_url = '<a href="' . $glance_forum_dir . 'index.' . $phpEx . '?glance_recent_offset='; if ($glance_recent_offset > 0) { // if we're not on the first record, we can always go backwards $prev_recent_url = ($glance_news_offset > 0) ? $new_url . ($glance_recent_offset-$glance_num_recent) . '&glance_news_offset=' . $glance_news_offset . '" class="th"><< Prev ' . $glance_num_recent . '</a>' : $new_url . ($glance_recent_offset-$glance_num_recent).'" class="th"><< Prev ' . $glance_num_recent . '</a>'; } if ($glance_recent_offset+$glance_num_recent < $overall_total_topics) { // offset + limit gives us the maximum record number // that we could have displayed on this page. if it's // less than the total number of entries, that means // there are more entries to see, and we can go forward $next_recent_url = ($glance_news_offset > 0) ? $new_url . ($glance_recent_offset+$glance_num_recent) . '&glance_news_offset=' . $glance_news_offset . '" class="th">Next ' . $glance_num_recent . ' >></a>' : $new_url . ($glance_recent_offset+$glance_num_recent).'" class="th">Next ' . $glance_num_recent . ' >></a>'; } } // MOD NAV END } else { $glance_recent_total_info = 'None'; $template->assign_block_vars('recent', array( 'BULLET' => $glance_recent_bullet_old, 'LAST_POSTER' => 'None', 'TOPIC_POSTER' => 'None', 'TOPIC_AUTHOR' => 'None', 'TOPIC_REPLIES' => '0', 'TOPIC_TITLE' => 'None' )); } } if ( $glance_num_news ) { $template->assign_block_vars('switch_glance_news', array( 'NEXT_URL' => $next_news_url, 'PREV_URL' => $prev_news_url )); // MOD CAT ROLLOUT BEGIN //$news_on = !isset($HTTP_COOKIE_VARS['phpbbGlance_news']) || !empty($HTTP_COOKIE_VARS['phpbbGlance_news']) ? true : false; //if( $news_on ) //{ // $template->assign_block_vars('switch_glance_news.switch_news_on', array()); //} //else //{ // $template->assign_block_vars('switch_glance_news.switch_news_off', array()); //} // MOD CAT ROLLOUT END } if ( $glance_num_recent ) { $template->assign_block_vars('switch_glance_recent', array( 'NEXT_URL' => $next_recent_url, 'PREV_URL' => $prev_recent_url )); // MOD CAT ROLLOUT BEGIN //$recent_on = !isset($HTTP_COOKIE_VARS['phpbbGlance_recent']) || !empty($HTTP_COOKIE_VARS['phpbbGlance_recent']) ? true : false; //if( $recent_on ) //{ // $template->assign_block_vars('switch_glance_recent.switch_recent_on', array()); //} //else //{ // $template->assign_block_vars('switch_glance_recent.switch_recent_off', array()); //} // MOD CAT ROLLOUT END } if ($glance_news_total_info == 'None' && $glance_recent_total_info == 'None') { $template->assign_block_vars("no_glance_news_and_recent", array( 'L_NO_ITEMS' => $lang['No_items_found'] )); } $template->assign_vars(array( 'L_TITLE' => ( !empty($title) ? $title : 'Last Message' ), 'NEWS_HEADING' => ( !empty($lang['glance_news_heading']) ? $lang['glance_news_heading'] : 'Latest Site News' ), 'RECENT_HEADING' => ( !empty($lang['glance_recent_heading']) ? $lang['glance_recent_heading'] : 'Recent Discussions' ), 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_COMMENTS' => $lang['comments'], 'L_TOPICS' => $lang['Topics'], 'L_REPLIES' => $lang['Replies'], 'L_VIEWS' => $lang['Views'], 'L_LASTPOST' => $lang['Last_Post'], 'L_AUTHOR' => $lang['Author'], 'L_WRITEN_BY' => $lang['writen_by'], 'L_LAST_BY' => $lang['last_by'], 'L_LAST_REPLY' => $lang['last_reply'], 'L_FORUM' => $lang['Forum'], 'L_POSTS' => $lang['Posts'], 'L_NO_NEW_POSTS' => $lang['No_new_posts'], 'L_NEW_POSTS' => $lang['New_posts'], 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : $glance_table_width ), 'L_BACK_TO_TOP' => ( !empty($lang['Back_to_top']) ? $lang['Back_to_top'] : 'Back to Top' ) )); $template->pparse('glance_output'); // THE END ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:48:02
|
Update of /cvsroot/mxbb/mx_glance/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6660/language Added Files: index.htm Log Message: --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:47:57
|
Update of /cvsroot/mxbb/mx_glance/contrib In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6660/contrib Added Files: glance_body_old.tpl mx_glance_new.pak mx_glance_sdesc.php Log Message: --- NEW FILE: glance_body_old.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN switch_glance_news --> <tr> <td class="catLeft" height="28"><span class="cattitle">{NEWS_HEADING}</span></td> </tr> <tr> <td class="row1" valign="top"><span class="genmed"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <!-- END switch_glance_news --> <!-- BEGIN news --> <tr> <td nowrap valign="top">{news.BULLET}</td> <td valign="top" width="100%"><span class="genmed"> <a href="{news.TOPIC_LINK}" class="genmed">{news.TOPIC_TITLE}</a></span><br><span class="gensmall" nowrap="nowrap">{news.TOPIC_TIME}</span></td> </tr> <!-- END news --> <!-- BEGIN switch_glance_news --> </table> </span></td> </tr> <!-- END switch_glance_news --> <!-- BEGIN switch_glance_recent --> <tr> <td class="catLeft" height="28"><span class="cattitle">{RECENT_HEADING}</span></td> </tr> <tr> <td class="row1" valign="top" height="100%"><span class="genmed"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <!-- END switch_glance_recent --> <!-- BEGIN recent --> <tr> <td nowrap valign="top">{recent.BULLET}</td> <td valign="top" width="100%"><span class="genmed"> <a href="{recent.TOPIC_LINK}" class="genmed">{recent.TOPIC_TITLE}</a></span> <span class="gensmall"><br />{L_WRITEN_BY}: {recent.TOPIC_POSTER}</a> <br>({recent.TOPIC_REPLIES}) {L_COMMENTS}</span> </td> </tr> <!-- END recent --> <!-- BEGIN switch_glance_recent --> </table> </span></td> </tr> <!-- END switch_glance_recent --> </table> --- NEW FILE: mx_glance_new.pak --- module=+:62=+:Last News and Topics=+:modules/mx_glance/=+:Glance Module=+:0 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:62=+:73=+:Last News and Topics=+:Last News and Topics=+:mx_glance.php=+: parameter=+:73=+:137=+:Glance_news_forum_id=+:Number=+:1=+:=+:0 parameter=+:73=+:138=+:Glance_num_news=+:Number=+:1=+:=+:0 parameter=+:73=+:139=+:Glance_num_recent=+:Number=+:5=+:=+:0 parameter=+:73=+:140=+:Glance_table_width=+:Number=+:200=+:=+:0 parameter=+:73=+:141=+:Glance_show_new_bullets=+:Boolean=+:TRUE=+:=+:0 parameter=+:73=+:142=+:Glance_track=+:Boolean=+:TRUE=+:=+:0 parameter=+:73=+:143=+:Glance_auth_read=+:Boolean=+:FALSE=+:=+:0 parameter=+:73=+:144=+:Glance_use_large=+:Radio_single_select=+:vertical=+:a:2:{i:0;s:8:"vertical";i:1;s:10:"horizontal";}=+:0=+:20 parameter=+:73=+:145=+:Glance_news_forum=+:Function=+:=+:get_list_multiple("{parameter_id}[]", FORUMS_TABLE, 'forum_id', 'forum_name', "{parameter_value}", TRUE)=+:0 parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Last News and Topics=+:Demo block=+:30=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: mx_glance_sdesc.php --- <?php /** * * @package mxBB Portal Module - mx_glance * @version $Id: mx_glance_sdesc.php,v 1.1 2007/06/06 21:47:47 orynider Exp $ * @copyright (c) 2001-2006 blulegend, Jack Kan, OryNider * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ /******************************************************************************* * mx_glance.php ******************************************************************************** * History: *OryNider (31/01/2007) : 1st try *OryNider (20/02/2007) : modified for Simple Topic Description Mod - untested * to use rename/upload the file and add * {news.TOPIC_DESCRIPTION} / {recent.TOPIC_DESCRIPTION} * to your template files ;) ****************************************************************************** if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( !function_exists( 'auth' ) ) { include_once($phpbb_root_path . 'includes/auth.'.$phpEx); } define('IN_GLANCE', true); // FORUM DIRECTORY // $glance_forum_dir = $phpbb_root_path; // // Read Block Settings // $title = $mx_block->block_info['block_title']; // // Setup config parameters // $glance_use_large = $mx_block->get_parameters( 'Glance_use_large' ); // NEWS FORUM ID // $glance_news_forum = $mx_block->get_parameters( 'Glance_news_forum' ); $glance_news_forum_id = $mx_block->get_parameters( 'Glance_news_forum_id' ); // NUMBER OF NEWS ARTICLES YOU WISH TO DISPLAY $glance_num_news = $mx_block->get_parameters( 'Glance_num_news' ); // NUMBER OF RECENT ARTICLES YOU WISH TO DISPLAY $glance_num_recent = $mx_block->get_parameters( 'Glance_num_recent' ); // TABLE WIDTH $glance_table_width = $mx_block->get_parameters( 'Glance_table_width' ); // CHANGE THE BULLET IF A TOPIC IS NEW? (true / false) $glance_show_new_bullets = $mx_block->get_parameters( 'Glance_show_new_bullets' ); // MESSAGE TRACKING WILL TRACK TO SEE IF A USER HAS READ THE TOPIC DURING THEIR SESSION (true / false) $glance_track = $mx_block->get_parameters( 'Glance_track' ); // SHOW TOPICS THE USER CAN VIEW, BUT NOT READ? (true / false) $glance_auth_read = $mx_block->get_parameters( 'Glance_auth_read' ); /* if ( empty($glance_news_forum) ) { $glance_news_forum = $auth_data_sql_msg; } if ( empty($glance_news_forum) ) { $glance_news_forum = -1; } */ // // Instantiate the mx_text class // include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); $mx_text = new mx_text(); $mx_text->init(true, false, false); // // Decode for display // $title = $mx_text->display($title); // // BEGIN OUTPUT // $template_tmp = $glance_use_large == 'horizontal' ? array('glance_output' => 'glance_body_big.tpl') : array('glance_output' => 'glance_body.tpl'); $template->set_filenames($template_tmp); // NEWS BULLET OLD $glance_news_bullet_old = '<span class="genmed"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // RECENT TOPIC BULLET OLD $glance_recent_bullet_old = '<span class="genmed"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // NEWS BULLET NEW $glance_news_bullet_new = '<span class="genmed" style="color:#FFA34F"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // RECENT TOPIC BULLET NEW $glance_recent_bullet_new = '<span class="genmed" style="color:#FFA34F"><b>›</b> </span>'; // CAN ALSO BE AN IMAGE // // Read language definition // if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } // // GET USER LAST VISIT // $glance_last_visit = $userdata['user_lastvisit']; $glance_recent_offset = $HTTP_GET_VARS['glance_recent_offset']; $glance_news_offset = $HTTP_GET_VARS['glance_news_offset']; // // MESSAGE TRACKING // if ( !isset($tracking_topics) && $glance_track ) $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : ''; // CHECK FOR BAD WORDS // // Define censored word matches // $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); // set the topic title sql depending on the character limit set in glance_config $sql_title = ($glance_topic_length) ? ", LEFT(t.topic_title, " . $glance_topic_length . ") as topic_title" : ", t.topic_title"; // // GET THE LATEST NEWS TOPIC // if ( $glance_num_news ) { $news_data = $db->sql_fetchrow($result); /* if ( 1 ) { $sql_select = ", p.post_time"; $sql_from = ", " . POSTS_TABLE . " p"; $sql_where = " AND p.post_id = t.topic_last_post_id"; } */ $sql = " SELECT f.forum_id, f.forum_name" . $sql_title . ", t.topic_id, t.topic_time, t.topic_last_post_id, t.topic_poster, t.topic_views, t.topic_replies, t.topic_type, t.topic_status, p2.post_time, p2.poster_id, u.username as last_username, u2.username as author_username FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u, " . USERS_TABLE . " u2 WHERE f.forum_id IN (" . $glance_news_forum_id . ") AND t.forum_id = f.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND t.topic_moved_id = 0 AND p2.poster_id = u.user_id AND t.topic_poster = u2.user_id ORDER BY t.topic_last_post_id DESC"; $sql .= ($glance_news_offset) ? " LIMIT " . $glance_news_offset . ", " . $glance_num_news : " LIMIT " . $glance_num_news; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query new news information", "", __LINE__, __FILE__, $sql); } $latest_news = array(); while ( $topic_row = $db->sql_fetchrow($result) ) { $topic_row['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_row['topic_title']) : $topic_row['topic_title']; $latest_news[] = $topic_row; } $db->sql_freeresult($result); // MOD NAV BEGIN // obtain the total number of topic for our news topic navigation bit $sql = "SELECT SUM(forum_topics) as topic_total FROM " . FORUMS_TABLE . " f WHERE f.forum_id IN (" . $glance_news_forum_id . ")"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query total topics information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $overall_news_topics = $row['topic_total']; $db->sql_freeresult($result); // MOD NAV END } // // GET THE LAST 5 TOPICS // if ( $glance_num_recent ) { $unauthed_forums = array(); $sql = "SELECT forum_id, auth_view FROM " . FORUMS_TABLE . " WHERE forum_id <> " . $glance_news_forum_id; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query new topic information", "", __LINE__, __FILE__, $sql); } $glance_auth_level = ( $glance_auth_read ) ? AUTH_VIEW : AUTH_ALL; $is_auth_ary = array(); $is_auth_ary = auth($glance_auth_level, AUTH_LIST_ALL, $userdata); $forumsignore = $glance_news_forum_id; $base_url = mx_this_url(); if ( $num_forums = count($is_auth_ary) ) { while ( list($forum_id, $auth_mod) = each($is_auth_ary) ) { $unauthed = false; if ( !$auth_mod['auth_view'] && $auth_mod['forum_id'] != $glance_news_forum_id ) { $unauthed = true; } if ( !$glance_auth_read && !$auth_mod['auth_read'] && $auth_mod['forum_id'] != $glance_news_forum_id ) { $unauthed = true; } if ( $unauthed ) { $forumsignore .= ($forumsignore) ? ',' . $forum_id : $forum_id; } } } $forumsignore .= ($forumsignore && $glance_recent_ignore) ? ',' : ''; $sql = " SELECT f.forum_id, f.forum_name" . $sql_title . ", t.topic_id, t.topic_time, t.topic_last_post_id, t.topic_poster, t.topic_views, t.topic_replies, t.topic_type, t.topic_description, p2.post_time, p2.poster_id, u.username as last_username, u2.username as author_username FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u, " . USERS_TABLE . " u2 WHERE f.forum_id NOT IN (" . $forumsignore . $glance_recent_ignore . ") AND t.forum_id = f.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND t.topic_moved_id = 0 AND p2.poster_id = u.user_id AND t.topic_poster = u2.user_id ORDER BY t.topic_last_post_id DESC"; $sql .= ($glance_recent_offset) ? " LIMIT " . $glance_recent_offset . ", " . $glance_num_recent : " LIMIT " . $glance_num_recent; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query latest topic information", "", __LINE__, __FILE__, $sql); } $latest_topics = array(); $latest_anns = array(); $latest_stickys = array(); while ( $topic_row = $db->sql_fetchrow($result) ) { $topic_row['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_row['topic_title']) : $topic_row['topic_title']; switch ($topic_row['topic_type']) { case POST_ANNOUNCE: $latest_anns[] = $topic_row; break; case POST_STICKY: $latest_stickys[] = $topic_row; break; default: $latest_topics[] = $topic_row; break; } } $latest_topics = array_merge($latest_anns, $latest_stickys, $latest_topics); $db->sql_freeresult($result); // MOD NAV BEGIN // obtain the total number of topic for our recent topic navigation bit $sql = "SELECT SUM(forum_topics) as topic_total FROM " . FORUMS_TABLE . " f WHERE f.forum_id NOT IN (" . $forumsignore . $glance_recent_ignore . $glance_news_forum_id . ")"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query total topics information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $overall_total_topics = $row['topic_total']; $db->sql_freeresult($result); // MOD NAV END } if ( $glance_num_news ) { if ( !empty($latest_news) ) { $bullet_pre = 'glance_news_bullet'; for ( $i = 0; $i < count($latest_news); $i++ ) { if ( $userdata['session_logged_in'] ) { $unread_topics = false; $topic_id = $latest_news[$i]['topic_id']; if ( $latest_news[$i]['post_time'] > $glance_last_visit ) { $unread_topics = true; if( !empty($tracking_topics[$topic_id]) && $glance_track ) { if( $tracking_topics[$topic_id] >= $latest_news[$i]['post_time'] ) { $unread_topics = false; } } } $shownew = $unread_topics; } else { $unread_topics = false; $shownew = true; } $bullet_full = $bullet_pre . ( ( $shownew && $glance_show_new_bullets ) ? '_new' : '_old' ); $newest_code = ( $unread_topics && $glance_show_new_bullets ) ? '&view=newest' : ''; $topic_link = append_sid(PHPBB_URL . 'viewtopic.php?t=' . $latest_news[$i]['topic_id'] . $newest_code); // // MOD TODAY AT BEGIN // //if ( $board_config['time_today'] < $latest_news[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $latest_news[$i]['post_time'], $board_config['board_timezone'])); //} //else if ( $board_config['time_yesterday'] < $latest_topics[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $latest_news[$i]['post_time'], $board_config['board_timezone'])); //} // MOD TODAY AT END if ( $display_date == "TRUE" ) { $message_date = create_date($board_config['default_dateformat'], $latest_news[$i]['topic_time'], $board_config['board_timezone']); } else { $message_date = create_date($board_config['default_dateformat'], $latest_news[$i]['topic_time'], $board_config['board_timezone']); } $last_poster = ($latest_news[$i]['poster_id'] == ANONYMOUS ) ? ( ($latest_news[$i]['last_username'] != '' ) ? $latest_news[$i]['last_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_news[$i]['poster_id']) . '">' . $latest_news[$i]['last_username'] . '</a> '; $last_poster .= '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $latest_news[$i]['topic_last_post_id']) . '#' . $latest_news[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>'; $topic_poster = ($latest_news[$i]['topic_poster'] == ANONYMOUS ) ? ( ($latest_news[$i]['author_username'] != '' ) ? $latest_news[$i]['author_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_news[$i]['topic_poster']) . '">' . $latest_news[$i]['author_username'] . '</a> '; $last_post_time = create_date($board_config['default_dateformat'], $latest_news[$i]['post_time'], $board_config['board_timezone']); $last_topic_description = $latest_news[$i]['topic_description']; $template->assign_block_vars('news', array( 'BULLET' => $$bullet_full, 'TOPIC_TITLE' => $latest_news[$i]['topic_title'], 'TOPIC_LINK' => append_sid($topic_link), 'TOPIC_TIME' => $message_date, 'TOPIC_DESCRIPTION' => $last_topic_description, 'POST_TIME' => $last_post_time, 'TOPIC_POSTER' => $topic_poster, 'TOPIC_VIEWS' => $latest_news[$i]['topic_views'], 'TOPIC_REPLIES' => $latest_news[$i]['topic_replies'], 'LAST_POSTER' => $last_poster, 'FORUM_TITLE' => $latest_news[$i]['forum_name'], 'FORUM_LINK' => $glance_forum_dir . 'viewforum.php?f=' . $latest_news[$i]['forum_id'] )); } // MOD NAV BEGIN if (($glance_news_offset > 0) or ($glance_news_offset+$glance_num_news < $overall_news_topics)) { $new_url = '<a href="' . $glance_forum_dir . 'index.' . $phpEx . '?glance_news_offset='; if ($glance_news_offset > 0) { // if we're not on the first record, we can always go backwards $prev_news_url = ($glance_recent_offset > 0) ? $new_url . ($glance_news_offset-$glance_num_news) . '&glance_recent_offset=' . $glance_recent_offset . '" class="th"><< Prev ' . $glance_num_news . '</a>' : $new_url . ($glance_news_offset-$glance_num_news).'" class="th"><< Prev ' . $glance_num_news . '</a>'; } if ($glance_news_offset+$glance_num_news < $overall_total_topics) { // offset + limit gives us the maximum record number // that we could have displayed on this page. if it's // less than the total number of entries, that means // there are more entries to see, and we can go forward $next_news_url = ($glance_recent_offset > 0) ? $new_url . ($glance_news_offset+$glance_num_news) . '&glance_recent_offset=' . $glance_recent_offset . '" class="th">Next ' . $glance_num_news . ' >></a>' : $new_url . ($glance_news_offset+$glance_num_news).'" class="th">Next ' . $glance_num_news . ' >></a>'; } } // MOD NAV END } else { $glance_news_total_info = 'None'; $template->assign_block_vars('news', array( 'BULLET' => $glance_recent_bullet_old, 'LAST_POSTER' => 'None', 'TOPIC_POSTER' => 'None', 'TOPIC_AUTHOR' => 'None', 'TOPIC_REPLIES' => '0', 'TOPIC_TITLE' => 'None' )); } } if ( $glance_num_recent ) { $glance_info = 'counted recent'; $bullet_pre = 'glance_recent_bullet'; if ( !empty($latest_topics) ) { for ( $i = 0; $i < count($latest_topics); $i++ ) { if ( $userdata['session_logged_in'] ) { $unread_topics = false; $topic_id = $latest_topics[$i]['topic_id']; if ( $latest_topics[$i]['post_time'] > $glance_last_visit ) { $unread_topics = true; if( !empty($tracking_topics[$topic_id]) && $glance_track ) { if( $tracking_topics[$topic_id] >= $latest_topics[$i]['post_time'] ) { $unread_topics = false; } } } $shownew = $unread_topics; } else { $unread_topics = false; $shownew = true; } if ( $display_date == "TRUE" ) { $topic_date_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['topic_time'], $board_config['board_timezone']); } else { $topic_date_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['topic_time'], $board_config['board_timezone']); } $bullet_full = $bullet_pre . ( ( $shownew && $glance_show_new_bullets ) ? '_new' : '_old' ); $newest_code = ( $unread_topics && $glance_show_new_bullets ) ? '&view=newest' : ''; $topic_link = append_sid(PHPBB_URL . 'viewtopic.php?t=' . $latest_topics[$i]['topic_id'] . $newest_code); $last_post_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone']); $last_topic_description = $latest_topics[$i]['topic_description']; $topic_poster = ($latest_topics[$i]['topic_poster'] == ANONYMOUS ) ? ( ($latest_topics[$i]['author_username'] != '' ) ? $latest_topics[$i]['author_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_topics[$i]['topic_poster']) . '">' . $latest_topics[$i]['author_username'] . '</a> '; $last_poster = ($latest_topics[$i]['poster_id'] == ANONYMOUS ) ? ( ($latest_topics[$i]['last_username'] != '' ) ? $latest_topics[$i]['last_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a alt="' . $last_post_time . '" title="' . $last_post_time . '" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $latest_topics[$i]['poster_id']) . '">' . $latest_topics[$i]['last_username'] . '</a> '; $last_poster .= '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $latest_topics[$i]['topic_last_post_id']) . '#' . $latest_topics[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>'; // // MOD TODAY AT BEGIN // //if ( $board_config['time_today'] < $latest_topics[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Today_at'], create_date($board_config['default_timeformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone'])); //} //else if ( $board_config['time_yesterday'] < $latest_topics[$i]['post_time']) //{ // $last_post_time = sprintf($lang['Yesterday_at'], create_date($board_config['default_timeformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone'])); //} // MOD TODAY AT END $template->assign_block_vars('recent', array( 'BULLET' => $$bullet_full, 'TOPIC_LINK' => append_sid($topic_link), 'TOPIC_POSTS' => $latest_topics[$i]['topic_replies'], 'TOPIC_TIME' => $topic_date_time, 'TOPIC_DESCRIPTION' => $last_topic_description, 'TOPIC_TITLE' => $latest_topics[$i]['topic_title'], 'TOPIC_VIEWS' => $latest_topics[$i]['topic_views'], 'TOPIC_REPLIES' => $latest_topics[$i]['topic_replies'], 'POST_TIME' => $last_post_time, 'LAST_POSTER' => $last_poster, 'TOPIC_POSTER' => $topic_poster, 'TOPIC_AUTHOR' => $topic_poster, 'FORUM_TITLE' => $latest_topics[$i]['forum_name'], 'FORUM_LINK' => $glance_forum_dir . 'viewforum.php?f=' . $latest_topics[$i]['forum_id'] )); } // MOD NAV BEGIN if (($glance_recent_offset > 0) or ($glance_recent_offset+$glance_num_recent < $overall_total_topics)) { $new_url = '<a href="' . $glance_forum_dir . 'index.' . $phpEx . '?glance_recent_offset='; if ($glance_recent_offset > 0) { // if we're not on the first record, we can always go backwards $prev_recent_url = ($glance_news_offset > 0) ? $new_url . ($glance_recent_offset-$glance_num_recent) . '&glance_news_offset=' . $glance_news_offset . '" class="th"><< Prev ' . $glance_num_recent . '</a>' : $new_url . ($glance_recent_offset-$glance_num_recent).'" class="th"><< Prev ' . $glance_num_recent . '</a>'; } if ($glance_recent_offset+$glance_num_recent < $overall_total_topics) { // offset + limit gives us the maximum record number // that we could have displayed on this page. if it's // less than the total number of entries, that means // there are more entries to see, and we can go forward $next_recent_url = ($glance_news_offset > 0) ? $new_url . ($glance_recent_offset+$glance_num_recent) . '&glance_news_offset=' . $glance_news_offset . '" class="th">Next ' . $glance_num_recent . ' >></a>' : $new_url . ($glance_recent_offset+$glance_num_recent).'" class="th">Next ' . $glance_num_recent . ' >></a>'; } } // MOD NAV END } else { $glance_recent_total_info = 'None'; $template->assign_block_vars('recent', array( 'BULLET' => $glance_recent_bullet_old, 'LAST_POSTER' => 'None', 'TOPIC_POSTER' => 'None', 'TOPIC_AUTHOR' => 'None', 'TOPIC_REPLIES' => '0', 'TOPIC_TITLE' => 'None' )); } } if ( $glance_num_news ) { $template->assign_block_vars('switch_glance_news', array( 'NEXT_URL' => $next_news_url, 'PREV_URL' => $prev_news_url )); // MOD CAT ROLLOUT BEGIN //$news_on = !isset($HTTP_COOKIE_VARS['phpbbGlance_news']) || !empty($HTTP_COOKIE_VARS['phpbbGlance_news']) ? true : false; //if( $news_on ) //{ // $template->assign_block_vars('switch_glance_news.switch_news_on', array()); //} //else //{ // $template->assign_block_vars('switch_glance_news.switch_news_off', array()); //} // MOD CAT ROLLOUT END } if ( $glance_num_recent ) { $template->assign_block_vars('switch_glance_recent', array( 'NEXT_URL' => $next_recent_url, 'PREV_URL' => $prev_recent_url )); // MOD CAT ROLLOUT BEGIN //$recent_on = !isset($HTTP_COOKIE_VARS['phpbbGlance_recent']) || !empty($HTTP_COOKIE_VARS['phpbbGlance_recent']) ? true : false; //if( $recent_on ) //{ // $template->assign_block_vars('switch_glance_recent.switch_recent_on', array()); //} //else //{ // $template->assign_block_vars('switch_glance_recent.switch_recent_off', array()); //} // MOD CAT ROLLOUT END } if ($glance_news_total_info == 'None' && $glance_recent_total_info == 'None') { $template->assign_block_vars("no_glance_news_and_recent", array( 'L_NO_ITEMS' => $lang['No_items_found'] )); } $template->assign_vars(array( 'L_TITLE' => ( !empty($title) ? $title : 'Last Message' ), 'NEWS_HEADING' => ( !empty($lang['glance_news_heading']) ? $lang['glance_news_heading'] : 'Latest Site News' ), 'RECENT_HEADING' => ( !empty($lang['glance_recent_heading']) ? $lang['glance_recent_heading'] : 'Recent Discussions' ), 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_COMMENTS' => $lang['comments'], 'L_TOPICS' => $lang['Topics'], 'L_REPLIES' => $lang['Replies'], 'L_VIEWS' => $lang['Views'], 'L_LASTPOST' => $lang['Last_Post'], 'L_AUTHOR' => $lang['Author'], 'L_WRITEN_BY' => $lang['writen_by'], 'L_LAST_BY' => $lang['last_by'], 'L_LAST_REPLY' => $lang['last_reply'], 'L_FORUM' => $lang['Forum'], 'L_POSTS' => $lang['Posts'], 'L_NO_NEW_POSTS' => $lang['No_new_posts'], 'L_NEW_POSTS' => $lang['New_posts'], 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : $glance_table_width ), 'L_BACK_TO_TOP' => ( !empty($lang['Back_to_top']) ? $lang['Back_to_top'] : 'Back to Top' ) )); $template->pparse('glance_output'); // THE END ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:47:48
|
Update of /cvsroot/mxbb/mx_glance/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6660/admin Added Files: admin_mx_glance.php index.htm Log Message: --- NEW FILE: admin_mx_glance.php --- <?php define('IN_PORTAL', 1); $mx_root_path = '../' ; global $db; if ( empty( $block_id ) ) { $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'Last News and Topics' LIMIT 1"; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not query Last News and Topics module information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $block_id = $row[block_id]; } if( !empty($setmodules) ) { $module['Last_News_and_Topics']['General_Module_Settings'] = "admin/admin_mx_block_cp.php?mode=setting&block_id=$block_id"; return; } ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:46:49
|
Update of /cvsroot/mxbb/mx_glance/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5259/subSilver Log Message: Directory /cvsroot/mxbb/mx_glance/templates/subSilver added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:46:49
|
Update of /cvsroot/mxbb/mx_glance/templates/Avalanche In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5259/Avalanche Log Message: Directory /cvsroot/mxbb/mx_glance/templates/Avalanche added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:46:36
|
Update of /cvsroot/mxbb/mx_glance/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4720/lang_romanian Log Message: Directory /cvsroot/mxbb/mx_glance/language/lang_romanian added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:46:35
|
Update of /cvsroot/mxbb/mx_glance/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4720/lang_english Log Message: Directory /cvsroot/mxbb/mx_glance/language/lang_english added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:45:38
|
Update of /cvsroot/mxbb/mx_glance/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3580/templates Log Message: Directory /cvsroot/mxbb/mx_glance/templates added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:45:37
|
Update of /cvsroot/mxbb/mx_glance/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3580/language Log Message: Directory /cvsroot/mxbb/mx_glance/language added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:45:37
|
Update of /cvsroot/mxbb/mx_glance/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3580/admin Log Message: Directory /cvsroot/mxbb/mx_glance/admin added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:45:37
|
Update of /cvsroot/mxbb/mx_glance/contrib In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3580/contrib Log Message: Directory /cvsroot/mxbb/mx_glance/contrib added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-06 21:39:35
|
Update of /cvsroot/mxbb/mx_pageblock/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30368 Added Files: mx_module_parameters.tpl Log Message: --- NEW FILE: mx_module_parameters.tpl --- <!-- BEGIN switch_bbcodes --> <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_moz = 0; var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.{SELECT_NAME}.value.length < 2) { formErrors = "{L_EMPTY_MESSAGE}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { var txtarea = document.post.{SELECT_NAME}; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } function bbfontstyle(bbopen, bbclose) { var txtarea = document.post.{SELECT_NAME}; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { txtarea.value += bbopen + bbclose; txtarea.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; txtarea.focus(); return; } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbopen, bbclose); return; } else { txtarea.value += bbopen + bbclose; txtarea.focus(); } storeCaret(txtarea); } function bbstyle(bbnumber) { var txtarea = document.post.{SELECT_NAME}; txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D txtarea.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; txtarea.focus(); theSelection = ''; return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } txtarea.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag txtarea.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); txtarea.focus(); return; } storeCaret(txtarea); } // From http://www.massless.org/mozedit/ function mozWrap(txtarea, open, close) { var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; if (selEnd == 1 || selEnd == 2) selEnd = selLength; var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; return; } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <!-- END switch_bbcodes --> <!-- BEGIN tinyMCE --> <script language="javascript" type="text/javascript" src="{tinyMCE.PATH}modules/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", theme_advanced_toolbar_location : "top", plugins : "table", theme_advanced_buttons3_add_before : "tablecontrols, separator" }); </script> <!-- END tinyMCE --> <!-- Module Block Parameter --> <tr> <td class="row1" valign="top" width="25%"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td><span class="gen"><b>{L_BLOCK_INFO}</b></span> </td> </tr> <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="gensmall"> <!-- BEGIN switch_smilies --> <b>{L_EMOTICONS}</b> <!-- END switch_smilies --> </td> </tr> <!-- BEGIN smilies_row --> <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> <!-- END smilies_col --> </tr> <!-- END smilies_row --> <!-- BEGIN switch_smilies_extra --> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td> </tr> <!-- END switch_smilies_extra --> </table> </td> </tr> <tr> <td class="row1" valign="top" align="center"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{L_PAGEBLOCK_SETTINGS}<br />{L_CAT_PAGEURL}</span></td> </tr> <tr> <td class="row1" valign="top" align="center"> </td> </tr> </table> </td> <td class="row2" valign="top"><span class="gen"> <table width="450" border="0" cellspacing="0" cellpadding="2"> <!-- BEGIN switch_bbcodes --> <tr align="center" valign="middle"> <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> <tr> <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option> <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option> <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option> <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option> <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option> <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option> <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option> <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option> <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option> <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option> <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option> <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option> </select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> <option value="12" selected class="genmed">{L_FONT_NORMAL}</option> <option value="18" class="genmed">{L_FONT_LARGE}</option> <option value="24" class="genmed">{L_FONT_HUGE}</option> </select> </span> </td> <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> </table> </td> </tr> <tr> <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:550px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span> </td> </tr> <!-- END switch_bbcodes --> <!-- BEGIN textblock --> <tr> <td colspan="9" align="left"> <span class="cattitle"> {textblock.PARAMETER_TITLE}<hr> </span> <span class="genmed"> {textblock.PARAMETER_TYPE} </span> <span class="gensmall"> {textblock.PARAMETER_TYPE_EXPLAIN} </span> </td> </tr> <tr> <td colspan="9" align="left"> <span class="gen"> <textarea name="{SELECT_NAME}" rows="1" cols="35" wrap="virtual" style="width:90%" tabindex="3" class="post" {TEXTAREA_BBCODES_XTRA}>{textblock.TEXT}</textarea> </span> </td> </tr> <!-- END textblock --> </table> </td> </tr> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:39:34
|
Update of /cvsroot/mxbb/mx_pageblock/templates/pubOry/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv30239 Added Files: mx_module_parameters.tpl Log Message: --- NEW FILE: mx_module_parameters.tpl --- <!-- BEGIN switch_bbcodes --> <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_moz = 0; var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.{SELECT_NAME}.value.length < 2) { formErrors = "{L_EMPTY_MESSAGE}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { var txtarea = document.post.{SELECT_NAME}; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } function bbfontstyle(bbopen, bbclose) { var txtarea = document.post.{SELECT_NAME}; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { txtarea.value += bbopen + bbclose; txtarea.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; txtarea.focus(); return; } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbopen, bbclose); return; } else { txtarea.value += bbopen + bbclose; txtarea.focus(); } storeCaret(txtarea); } function bbstyle(bbnumber) { var txtarea = document.post.{SELECT_NAME}; txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D txtarea.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; txtarea.focus(); theSelection = ''; return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } txtarea.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag txtarea.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); txtarea.focus(); return; } storeCaret(txtarea); } // From http://www.massless.org/mozedit/ function mozWrap(txtarea, open, close) { var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; if (selEnd == 1 || selEnd == 2) selEnd = selLength; var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; return; } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <!-- END switch_bbcodes --> <!-- BEGIN tinyMCE --> <script language="javascript" type="text/javascript" src="{tinyMCE.PATH}modules/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", theme_advanced_toolbar_location : "top", plugins : "table", theme_advanced_buttons3_add_before : "tablecontrols, separator" }); </script> <!-- END tinyMCE --> <!-- Module Block Parameter --> <tr> <td class="row1" valign="top" width="25%"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td><span class="gen"><b>{L_BLOCK_INFO}</b></span> </td> </tr> <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="gensmall"> <!-- BEGIN switch_smilies --> <b>{L_EMOTICONS}</b> <!-- END switch_smilies --> </td> </tr> <!-- BEGIN smilies_row --> <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> <!-- END smilies_col --> </tr> <!-- END smilies_row --> <!-- BEGIN switch_smilies_extra --> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td> </tr> <!-- END switch_smilies_extra --> </table> </td> </tr> <tr> <td class="row1" valign="top" align="center"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{L_PAGEBLOCK_SETTINGS}<br />{L_CAT_PAGEURL}</span></td> </tr> <tr> <td class="row1" valign="top" align="center"> </td> </tr> </table> </td> <td class="row2" valign="top"><span class="gen"> <table width="450" border="0" cellspacing="0" cellpadding="2"> <!-- BEGIN switch_bbcodes --> <tr align="center" valign="middle"> <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> <tr> <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option> <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option> <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option> <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option> <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option> <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option> <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option> <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option> <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option> <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option> <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option> <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option> </select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> <option value="12" selected class="genmed">{L_FONT_NORMAL}</option> <option value="18" class="genmed">{L_FONT_LARGE}</option> <option value="24" class="genmed">{L_FONT_HUGE}</option> </select> </span> </td> <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> </table> </td> </tr> <tr> <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:550px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span> </td> </tr> <!-- END switch_bbcodes --> <!-- BEGIN textblock --> <tr> <td colspan="9" align="left"> <span class="cattitle"> {textblock.PARAMETER_TITLE}<hr> </span> <span class="genmed"> {textblock.PARAMETER_TYPE} </span> <span class="gensmall"> {textblock.PARAMETER_TYPE_EXPLAIN} </span> </td> </tr> <tr> <td colspan="9" align="left"> <span class="gen"> <textarea name="{SELECT_NAME}" rows="1" cols="35" wrap="virtual" style="width:90%" tabindex="3" class="post" {TEXTAREA_BBCODES_XTRA}>{textblock.TEXT}</textarea> </span> </td> </tr> <!-- END textblock --> </table> </td> </tr> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:39:05
|
Update of /cvsroot/mxbb/mx_pageblock/templates/SwiftBlue/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29861 Added Files: mx_module_parameters.tpl Log Message: --- NEW FILE: mx_module_parameters.tpl --- <!-- BEGIN switch_bbcodes --> <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_moz = 0; var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.{SELECT_NAME}.value.length < 2) { formErrors = "{L_EMPTY_MESSAGE}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { var txtarea = document.post.{SELECT_NAME}; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } function bbfontstyle(bbopen, bbclose) { var txtarea = document.post.{SELECT_NAME}; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { txtarea.value += bbopen + bbclose; txtarea.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; txtarea.focus(); return; } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbopen, bbclose); return; } else { txtarea.value += bbopen + bbclose; txtarea.focus(); } storeCaret(txtarea); } function bbstyle(bbnumber) { var txtarea = document.post.{SELECT_NAME}; txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D txtarea.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; txtarea.focus(); theSelection = ''; return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } txtarea.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag txtarea.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); txtarea.focus(); return; } storeCaret(txtarea); } // From http://www.massless.org/mozedit/ function mozWrap(txtarea, open, close) { var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; if (selEnd == 1 || selEnd == 2) selEnd = selLength; var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; return; } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <!-- END switch_bbcodes --> <!-- BEGIN tinyMCE --> <script language="javascript" type="text/javascript" src="{tinyMCE.PATH}modules/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "advanced", theme_advanced_toolbar_location : "top", plugins : "table", theme_advanced_buttons3_add_before : "tablecontrols, separator" }); </script> <!-- END tinyMCE --> <!-- Module Block Parameter --> <tr> <td class="row1" valign="top" width="25%"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td><span class="gen"><b>{L_BLOCK_INFO}</b></span> </td> </tr> <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="gensmall"> <!-- BEGIN switch_smilies --> <b>{L_EMOTICONS}</b> <!-- END switch_smilies --> </td> </tr> <!-- BEGIN smilies_row --> <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> <!-- END smilies_col --> </tr> <!-- END smilies_row --> <!-- BEGIN switch_smilies_extra --> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td> </tr> <!-- END switch_smilies_extra --> </table> </td> </tr> <tr> <td class="row1" valign="top" align="center"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{L_PAGEBLOCK_SETTINGS}<br />{L_CAT_PAGEURL}</span></td> </tr> <tr> <td class="row1" valign="top" align="center"> </td> </tr> </table> </td> <td class="row2" valign="top"><span class="gen"> <table width="450" border="0" cellspacing="0" cellpadding="2"> <!-- BEGIN switch_bbcodes --> <tr align="center" valign="middle"> <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> <tr> <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option> <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option> <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option> <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option> <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option> <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option> <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option> <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option> <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option> <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option> <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option> <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option> </select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> <option value="12" selected class="genmed">{L_FONT_NORMAL}</option> <option value="18" class="genmed">{L_FONT_LARGE}</option> <option value="24" class="genmed">{L_FONT_HUGE}</option> </select> </span> </td> <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> </table> </td> </tr> <tr> <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:550px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span> </td> </tr> <!-- END switch_bbcodes --> <!-- BEGIN textblock --> <tr> <td colspan="9" align="left"> <span class="cattitle"> {textblock.PARAMETER_TITLE}<hr> </span> <span class="genmed"> {textblock.PARAMETER_TYPE} </span> <span class="gensmall"> {textblock.PARAMETER_TYPE_EXPLAIN} </span> </td> </tr> <tr> <td colspan="9" align="left"> <span class="gen"> <textarea name="{SELECT_NAME}" rows="1" cols="35" wrap="virtual" style="width:90%" tabindex="3" class="post" {TEXTAREA_BBCODES_XTRA}>{textblock.TEXT}</textarea> </span> </td> </tr> <!-- END textblock --> </table> </td> </tr> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:38:50
|
Update of /cvsroot/mxbb/mx_pageblock/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29817/lang_english Added Files: lang_admin.php lang_main.php Log Message: --- NEW FILE: lang_main.php --- <?php /** * * @package mxBB Portal Module - mx_pageblock * @version $Id: lang_main.php,v 1.1 2007/06/06 21:38:45 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ $lang['nofile_exist'] = "The file to include does not exist"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_pageblock * @version $Id: lang_admin.php,v 1.1 2007/06/06 21:38:45 orynider Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // Parameter Types // $lang['ParType_pageBlock'] = "PageBlock Include"; $lang['ParType_pageBlock_info'] = "This is an PageBlock (include block)"; $lang['ParType_pageblock_type_select'] = "PageBlock Source"; // // Parameter Names // $lang['block_style'] = 'Block Border:'; $lang['title_style'] = 'Title Header Style:'; $lang['allow_bbcode'] = 'Allow BBCodes:'; $lang['allow_html'] = 'Allow Html:'; $lang['allow_smilies'] = 'Allow smilies:'; $lang['html_tags'] = 'Allowed Html tags:'; $lang['block_style_explain'] = 'Show border around pageblock:'; $lang['title_style_explain'] = 'Use css style for title row:'; $lang['pageblock_Settings'] = "PageBlock Settings"; $lang['Page_url'] = "Page URL<br />- Link to internal page (enter relative path)<br />'."; // // That's all Folks! // ------------------------------------------------- ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:38:50
|
Update of /cvsroot/mxbb/mx_pageblock/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29817/lang_romanian Added Files: lang_admin.php lang_main.php Log Message: --- NEW FILE: lang_main.php --- <?php $lang['nofile_exist'] = "The file to include does not exist"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /** ------------------------------------------------------------------------ * Subject : mxBB - a fully modular portal and CMS (for phpBB) * Author : Jon Ohlsson and the mxBB Team * Credits : The phpBB Group & Marc Morisette * Copyright : (C) 2002-2005 mxBB Portal * Email : jo...@mx... * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * * $Id: lang_admin.php,v 1.1 2007/06/06 21:38:46 orynider Exp $ */ /** * 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 2 of the License, or * (at your option) any later version. */ // // Parameter Types // $lang['ParType_pageBlock'] = "PageBloc Include"; $lang['ParType_pageBlock_info'] = "Acesta este un BlocText Include"; // // Parameter Names // $lang['block_style'] = "Bordura Bloc:"; $lang['title_style'] = "Titlu Stil Header:"; $lang['allow_bbcode'] = "Permite BBCod-uri:"; $lang['allow_html'] = "Permite Html:"; $lang['allow_smilies'] = "Permite zâmbete:"; $lang['html_tags'] = "Permite taguri Html:"; $lang['block_style_explain'] = "Aratã bordura în jurul bloctextului:"; $lang['title_style_explain'] = "Foloseºte stil css pentru titlu rând:"; $lang['pageblock_Settings'] = "PageBlock Settings"; $lang['Page_url'] = "Page URL<br />- Link to internal page (enter relative path)<br />'."; // // That's all Folks! // ------------------------------------------------- ?> |
|
From: OryNider <ory...@us...> - 2007-06-06 21:38:35
|
Update of /cvsroot/mxbb/mx_pageblock/pages In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29672/pages Added Files: index.htm index.php Log Message: --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: index.php --- <p style="margin-left: 1; margin-right: 1; margin-top: 1; margin-bottom: 1" align="justify"> This is a simple php file included in this <span style="font-weight: bold">mx_pageblock</span> demo block. The MX Module is an addon product for the <span style="font-weight: bold">mxBB-portal</span>. This module / block is bazed on mx_textblocks and does what php function include does. The page to include can be changed in blockCP so it's easy now to add your page or simple script to a portal page with no need to make a new simple module or hack. <br> <br> <span style="font-style: italic">Welcome, and thanks for using this module and the mxBB-Portal!</span> <br> <br> <img src="<?=$phpbb_root_path;?>images/smiles/icon_lol.gif" alt="Laughing" border="0" /> </p> |