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-14 10:13:45
|
Update of /cvsroot/mxbb/mx_smartor/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6888 Removed Files: admin_album_config.php Log Message: fixed the new welvome block and removed some old droped/changed file names. --- admin_album_config.php DELETED --- |
|
From: OryNider <ory...@us...> - 2007-06-14 10:13:45
|
Update of /cvsroot/mxbb/mx_smartor/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6927 Removed Files: lang_hierarchy_album.php lang_main.php Log Message: fixed the new welvome block and removed some old droped/changed file names. --- lang_hierarchy_album.php DELETED --- --- lang_main.php DELETED --- |
|
From: OryNider <ory...@us...> - 2007-06-14 10:13:13
|
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver/images/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6838/templates/subSilver/images/lang_english Added Files: guest_avatar.png Log Message: fixed the new welvome block and removed some old droped/changed file names. --- NEW FILE: guest_avatar.png --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-14 10:13:13
|
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6838/templates/subSilver Modified Files: subSilver.cfg welcome_body.tpl Log Message: fixed the new welvome block and removed some old droped/changed file names. Index: subSilver.cfg =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/subSilver.cfg,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** subSilver.cfg 13 Jun 2007 18:46:45 -0000 1.3 --- subSilver.cfg 14 Jun 2007 10:13:08 -0000 1.4 *************** *** 101,104 **** --- 101,105 ---- $mx_images['icon_dot'] = "$current_smartor_images/icon_dot.gif"; $mx_images['default_avatar'] = "$current_smartor_images/default_avatar.png"; + $mx_images['guest_avatar'] = "$current_smartor_images/" . LANG . "/guest_avatar.png"; // Use standard phpBB graphics Index: welcome_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/welcome_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** welcome_body.tpl 14 Jun 2007 07:43:24 -0000 1.2 --- welcome_body.tpl 14 Jun 2007 10:13:08 -0000 1.3 *************** *** 12,15 **** --- 12,16 ---- <span class="gen">{L_WELCOME_USER}<br /> <br />{L_WELCOME_MSG}</span> <!-- BEGIN welcome_user_logged_out --> + {AVATAR_IMG} <div align="center"> <form action="{S_LOGIN_ACTION}" method="post" style="margin-bottom:0px;"> *************** *** 113,122 **** <!-- END welcome_user_logged_in --> <!-- BEGIN welcome_user_logged_out --> ! <img ! src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <span class="gensmall">{L_SEARCH_LATEST}: <a href="{U_SEARCH_LATEST_24}" class="gensmall">24h</a> <a href="{U_SEARCH_LATEST_48}" class="gensmall">48h</a> <a ! href="{U_SEARCH_LATEST_72}" class="gensmall">72h</a></span><br /><img ! src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a> <!-- END welcome_user_logged_out --> --- 114,124 ---- <!-- END welcome_user_logged_in --> <!-- BEGIN welcome_user_logged_out --> ! <!-- BEGIN welcome_old --> ! <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <span class="gensmall">{L_SEARCH_LATEST}: <a href="{U_SEARCH_LATEST_24}" class="gensmall">24h</a> <a href="{U_SEARCH_LATEST_48}" class="gensmall">48h</a> <a ! href="{U_SEARCH_LATEST_72}" class="gensmall">72h</a></span><br /> ! <!-- END welcome_old --> ! <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a> <!-- END welcome_user_logged_out --> |
|
From: OryNider <ory...@us...> - 2007-06-14 10:13:12
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6838 Modified Files: welcome.php Log Message: fixed the new welvome block and removed some old droped/changed file names. Index: welcome.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/welcome.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** welcome.php 14 Jun 2007 07:43:24 -0000 1.2 --- welcome.php 14 Jun 2007 10:13:08 -0000 1.3 *************** *** 50,54 **** $view_jump_to = $mx_block->get_parameters( 'View_JumpTo' ) == 'TRUE' ? TRUE : FALSE; //$default_avatar = $mx_block->get_parameters( 'Default_Avatar' ); ! $default_avatar = $mx_images['default_avatar']; $view_postcount = $mx_block->get_parameters( 'View_PostCount' ) == 'TRUE' ? TRUE : FALSE; //$report_page = intval($mx_block->get_parameters( 'Report_Page' )); --- 50,55 ---- $view_jump_to = $mx_block->get_parameters( 'View_JumpTo' ) == 'TRUE' ? TRUE : FALSE; //$default_avatar = $mx_block->get_parameters( 'Default_Avatar' ); ! $default_avatar = $mx_images['default_avatar']; ! $guest_avatar = $mx_images['guest_avatar']; $view_postcount = $mx_block->get_parameters( 'View_PostCount' ) == 'TRUE' ? TRUE : FALSE; //$report_page = intval($mx_block->get_parameters( 'Report_Page' )); *************** *** 192,196 **** if( empty($avatar_img) && !empty($default_avatar) ) { ! $avatar_img = '<img src="' . $mx_images['default_avatar'] . '" alt="" border="0" />'; } --- 193,204 ---- if( empty($avatar_img) && !empty($default_avatar) ) { ! if( $user_id == ANONYMOUS ) ! { ! $avatar_img = '<img src="' . $guest_avatar . '" alt="" border="0" />'; ! } ! else ! { ! $avatar_img = '<img src="' . $default_avatar . '" alt="" border="0" />'; ! } } |
|
From: OryNider <ory...@us...> - 2007-06-14 10:13:12
|
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6838/templates/subSilver/images Modified Files: default_avatar.png Log Message: fixed the new welvome block and removed some old droped/changed file names. Index: default_avatar.png =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/images/default_avatar.png,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvs1VLC9E and /tmp/cvsrK4zrp differ |
|
From: OryNider <ory...@us...> - 2007-06-14 07:43:28
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27324 Modified Files: welcome.php Log Message: added check whatever autologin is enabled or not. Index: welcome.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/welcome.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** welcome.php 13 Jun 2007 18:46:43 -0000 1.1 --- welcome.php 14 Jun 2007 07:43:24 -0000 1.2 *************** *** 283,286 **** --- 283,294 ---- $register_msg = sprintf($register_msg, '<a href="'.append_sid(PHPBB_URL.'profile.'.$phpEx.'?mode=register').'">', '</a>'); $template->assign_block_vars('welcome_user_logged_out', array()); + + // + // Allow autologin? + // + if (!isset($board_config['allow_autologin']) || $board_config['allow_autologin'] ) + { + $template->assign_block_vars('switch_allow_autologin', array()); + } } $user_link = ( $user_id != ANONYMOUS ) ? '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=editprofile&".$userdata['user_id']).'">'.$username.'</a>' : $lang['Guest']; |
|
From: OryNider <ory...@us...> - 2007-06-14 07:43:28
|
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27324/templates/subSilver Modified Files: welcome_body.tpl Log Message: added check whatever autologin is enabled or not. Index: welcome_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/welcome_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** welcome_body.tpl 13 Jun 2007 18:46:45 -0000 1.1 --- welcome_body.tpl 14 Jun 2007 07:43:24 -0000 1.2 *************** *** 39,43 **** <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> ! <input class="text" type="checkbox" name="autologin" value="ON" /> {L_LOG_ME_IN}</span> </td> </tr> --- 39,46 ---- <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> ! <!-- BEGIN switch_allow_autologin --> ! <input class="text" type="checkbox" name="autologin" /> {L_LOG_ME_IN}<br /> ! <!-- END switch_allow_autologin --> ! <!--<input class="text" type="checkbox" name="autologin" value="ON" /> {L_LOG_ME_IN}</span>--> </td> </tr> |
|
From: OryNider <ory...@us...> - 2007-06-13 18:47:26
|
Update of /cvsroot/mxbb/mx_smartor/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26675/language/lang_english Modified Files: lang_admin.php lang_main_album.php Log Message: A new welcome block has been added thta will display random pictures from the smartor personal gallery or the avatar picture if personal gallery has not created. Index: lang_main_album.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/language/lang_english/lang_main_album.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** lang_main_album.php 7 Jun 2007 20:13:35 -0000 1.7 --- lang_main_album.php 13 Jun 2007 18:46:44 -0000 1.8 *************** *** 297,299 **** --- 297,313 ---- $lang['No_Personal_Category_admin'] = 'You are not allowed to manage your personal gallery categories'; + + // + // Welcome + // + $lang['Welcome'] = "Welcome"; + $lang['Welcome_User'] = "Welcome, %s !"; + $lang['Search_at'] = "Search at"; + $lang['Advanced_search'] = "Advanced Search"; + $lang['Search_unread'] = "View unread posts"; + $lang['Search_self_topics'] = "Topics you've started"; + $lang['Search_self_posts'] = "View all your posts"; + $lang['Posts_since_last_visit'] = "Posts since last visit"; + $lang['View_latest'] = "View latest"; + ?> \ No newline at end of file Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/language/lang_english/lang_admin.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** lang_admin.php 7 Jun 2007 20:13:35 -0000 1.5 --- lang_admin.php 13 Jun 2007 18:46:44 -0000 1.6 *************** *** 51,54 **** --- 51,69 ---- $lang['override_yes'] = 'Use Block Settings'; $lang['override_no'] = 'Use fixed mappings (see below)'; + + // Welcome block + $lang['Welcome_Msg'] = "<b>Welcome Message:</b>"; + $lang['Welcome_Msginfo'] = "This message will be visible for all users."; + $lang['Register_Msg'] = "<b>Register Message:</b>"; + $lang['Register_Msginfo'] = "This message will only be visible for anonymous users to encourage them to register.<br />Tip: Use <b>%s</b> twice to enclose the string you want as a link to register."; + $lang['Vertical_Layout'] = "<b>Vertical Layout:</b>"; + $lang['Vertical_Layoutinfo'] = "Select if you wish to display this block with a <b>Vertical</b> or <b>Horizontal</b> layout."; + $lang['View_JumpTo'] = "<b>View JumpTo:</b>"; + $lang['View_JumpToinfo'] = "Select if you wish to display a <b>JumpToForum</b> box.<br /><u>Note:</u> Disable this feature if you use <b>Vertical layout</b>. Probably, it will make your block wider than the page column where you place this block. But, it could be useful, if you select <b>Horizontal layout</b>."; + $lang['Default_Avatar'] = "<b>Default Avatar:</b>"; + $lang['Default_Avatarinfo'] = "Image to be used as default welcome avatar. Will be shown when logged in user has no avatar.<br /><u>Note:</u> Relative path for this image is \"modules/mx_tinies/avatars\"."; + $lang['View_PostCount'] = "<b>View Post Count:</b>"; + $lang['View_PostCountinfo'] = "Specify if you wish to display the post count next to <u>View posts since last visit</u> and <u>View unread posts</u> links, shown when a user is logged in."; + // // That's all Folks! |
|
From: OryNider <ory...@us...> - 2007-06-13 18:47:26
|
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26675/templates/subSilver Modified Files: subSilver.cfg Added Files: welcome_body.tpl Log Message: A new welcome block has been added thta will display random pictures from the smartor personal gallery or the avatar picture if personal gallery has not created. Index: subSilver.cfg =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/templates/subSilver/subSilver.cfg,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** subSilver.cfg 7 Jun 2007 20:13:46 -0000 1.2 --- subSilver.cfg 13 Jun 2007 18:46:45 -0000 1.3 *************** *** 99,102 **** --- 99,104 ---- $mx_images['green_dot'] = "$current_smartor_images/green_dot.png"; $mx_images['yellow_dot'] = "$current_smartor_images/yellow_dot.png"; + $mx_images['icon_dot'] = "$current_smartor_images/icon_dot.gif"; + $mx_images['default_avatar'] = "$current_smartor_images/default_avatar.png"; // Use standard phpBB graphics --- NEW FILE: welcome_body.tpl --- <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> <!-- BEGIN welcome_vertical_layout --> <th class="thHead">{L_WELCOME}</th> <!-- END welcome_vertical_layout --> <!-- BEGIN welcome_horizontal_layout --> <th class="thHead" colspan="2">{L_WELCOME}</th> <!-- END welcome_horizontal_layout --> </tr> <tr> <td class="row1" align="center" valign="middle"> <span class="gen">{L_WELCOME_USER}<br /> <br />{L_WELCOME_MSG}</span> <!-- BEGIN welcome_user_logged_out --> <div align="center"> <form action="{S_LOGIN_ACTION}" method="post" style="margin-bottom:0px;"> <table width="90%" cellpadding="0" cellspacing="0" border="0" class="forumline"> <tr> <td class="catHead" align="center"><b> {L_LOGIN} </b></td> </tr> <tr> <td class="row2" align="center"> <table width="100%" cellpadding="4" cellspacing="0" border="0"> <tr> <td align="right" valign="middle"> <span class="gensmall">{L_USERNAME}:</span> </td> <td align="left" valign="middle"> <span class="gensmall"><input class="post" type="text" name="username" size="10" /></span> </td> </tr> <tr> <td align="right" valign="middle"> <span class="gensmall">{L_PASSWORD}:</span> </td> <td align="left" valign="middle"> <span class="gensmall"><input class="post" type="password" name="password" size="10" /></span> </td> </tr> <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> <input class="text" type="checkbox" name="autologin" value="ON" /> {L_LOG_ME_IN}</span> </td> </tr> <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span> </td> </tr> <tr> <td align="center" valign="middle" colspan="2"><span class="gensmall"> <a href="{U_FORGOTTEN_PSW}" class="gensmall">{L_FORGOTTEN_PSW}</a></span> </td> </tr> </table> </td> </tr> </table> </form> </div> <br /> <span class="gensmall">{L_REGISTER_MSG}</span> <br /> <br /> <!-- END welcome_user_logged_out --> <!-- BEGIN welcome_user_logged_in --> {AVATAR_IMG} <span class="gensmall"> <br /> <br /> {LAST_VISIT_DATE} <br /> </span> <!-- END welcome_user_logged_in --> <!-- BEGIN welcome_vertical_layout --> <span class="gensmall"> <br /> </span> <!-- END welcome_vertical_layout --> <!-- BEGIN welcome_horizontal_layout --> </td> <td class="row1" align="center" valign="middle"> <!-- END welcome_horizontal_layout --> <div class="gensmall"> {CURRENT_TIME} <br /><br /> {S_TIMEZONE} <br /><br /> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td align="left"> <!-- BEGIN welcome_user_logged_in --> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNREAD}" class="gensmall">{L_SEARCH_UNREAD}</a><br /> <!-- BEGIN welcome_old --> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_SELF_TOPICS}" class="gensmall">{L_SEARCH_SELF_TOPICS}</a><br /> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_SELF_POSTS}" class="gensmall">{L_SEARCH_SELF_POSTS}</a><br /> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <span class="gensmall">{L_SEARCH_LATEST}: <a href="{U_SEARCH_LATEST_24}" class="gensmall">24h</a> <a href="{U_SEARCH_LATEST_48}" class="gensmall">48h</a> <a href="{U_SEARCH_LATEST_72}" class="gensmall">72h</a></span><br /> <!-- END welcome_old --> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a><br /> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_PRIVATE_MSGS}" class="gensmall">{L_PRIVATE_MSGS}</a> <!-- END welcome_user_logged_in --> <!-- BEGIN welcome_user_logged_out --> <img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <span class="gensmall">{L_SEARCH_LATEST}: <a href="{U_SEARCH_LATEST_24}" class="gensmall">24h</a> <a href="{U_SEARCH_LATEST_48}" class="gensmall">48h</a> <a href="{U_SEARCH_LATEST_72}" class="gensmall">72h</a></span><br /><img src="{IMG_ICON_DOT}" border="0" width="5" height="5" /> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a> <!-- END welcome_user_logged_out --> </td> </tr> </table> <br /> </div> {JUMPBOX} </td> </tr> </table> <br clear="all" /> |
|
From: OryNider <ory...@us...> - 2007-06-13 18:47:26
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26675 Modified Files: Smartor_album.pak Added Files: welcome.php Log Message: A new welcome block has been added thta will display random pictures from the smartor personal gallery or the avatar picture if personal gallery has not created. Index: Smartor_album.pak =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/Smartor_album.pak,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Smartor_album.pak 7 Jun 2007 20:13:00 -0000 1.8 --- Smartor_album.pak 13 Jun 2007 18:46:40 -0000 1.9 *************** *** 15,17 **** --- 15,26 ---- parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Smartor_toplist=+:Demo block=+:72=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 + New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 + function=+:61=+:73=+:Smartor: Welcome=+:=+:welcome.php=+: + parameter=+:73=+:137=+:Welcome_Msg=+:Text=+:Have a nice day !=+:=+:0=+:0 + parameter=+:73=+:138=+:Register_Msg=+:Text=+:Not a member? %sClick here and Register Now!%s=+:=+:0=+:0 + parameter=+:73=+:139=+:View_JumpTo=+:Boolean=+:FALSE=+:=+:0=+:0 + parameter=+:73=+:140=+:Vertical_Layout=+:Boolean=+:TRUE=+:=+:0=+:0 + parameter=+:73=+:141=+:View_PostCount=+:Boolean=+:TRUE=+:=+:0=+:0 + parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 + block=+:=+:Smartor: Welcome=+:Demo block=+:73=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: welcome.php --- <?php /** * * @package mxBB Portal Module - mx_smartor * @version $Id: welcome.php,v 1.1 2007/06/13 18:46:43 orynider Exp $ * @copyright (c) 2003 [Marc Ferran] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } else { $is_block = TRUE; } $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // // Start session management // $mx_user->init($user_ip, PAGE_INDEX); // // End session management // // // Read block Configuration // $title = $mx_block->block_info['block_title']; // $block_config = read_block_config($block_id); $block_size = ( !empty($block_size) ? $block_size : '100%' ); $album_root_path = $module_root_path . 'album_mod/'; include($album_root_path . 'album_common.' . $phpEx); // // Read block Configuration // $welcome_msg = $mx_block->get_parameters( 'Welcome_Msg' ); $register_msg = $mx_block->get_parameters( 'Register_Msg' ); $vertical_layout = $mx_block->get_parameters( 'Vertical_Layout' ) == 'TRUE' ? TRUE : FALSE; $view_jump_to = $mx_block->get_parameters( 'View_JumpTo' ) == 'TRUE' ? TRUE : FALSE; //$default_avatar = $mx_block->get_parameters( 'Default_Avatar' ); $default_avatar = $mx_images['default_avatar']; $view_postcount = $mx_block->get_parameters( 'View_PostCount' ) == 'TRUE' ? TRUE : FALSE; //$report_page = intval($mx_block->get_parameters( 'Report_Page' )); $report_page = '0'; // ------------------------------------ // Check the request // ------------------------------------ if( isset($HTTP_POST_VARS['user_id']) ) { $user_id = intval($HTTP_POST_VARS['user_id']); } else if( isset($HTTP_GET_VARS['user_id']) ) { $user_id = intval($HTTP_GET_VARS['user_id']); } else { $user_id = $userdata['user_id']; } // // END check request // // ------------------------------------ // Check $user_id // ------------------------------------ if( ($user_id < 1) and (!$userdata['session_logged_in']) ) { $user_id = ANONYMOUS; } // ------------------------------------ // Get the username of this gallery's owner // ------------------------------------ $sql = "SELECT username FROM ". USERS_TABLE ." WHERE user_id = $user_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not get the username of this category owner', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $username = $row['username']; if( empty($username) ) { $username = ( !empty($userdata['username']) ? $userdata['username'] : $lang['Guest'] ); } // -------------------------------------------------------------------------------- // Block Procedure // -------------------------------------------------------------------------------- // ------------------------------------ // Check Permissions // ------------------------------------ $personal_gallery_access = personal_gallery_access(1,1); // // END check permissions // if( isset($HTTP_GET_VARS['start']) ) { $start = intval($HTTP_GET_VARS['start']); } else if( isset($HTTP_POST_VARS['start']) ) { $start = intval($HTTP_POST_VARS['start']); } else { $start = 0; } $pics_per_page = $album_config['rows_per_page'] * $album_config['cols_per_page']; // ------------------------------------ // Count Pics // ------------------------------------ $sql = "SELECT COUNT(pic_id) AS count FROM ". ALBUM_TABLE ." WHERE pic_cat_id = ". PERSONAL_GALLERY ." AND pic_user_id = $user_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not count pics', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $total_pics = $row['count']; // ------------------------------------ // Get User Avatar... // ------------------------------------ //$avatar_img = ''; if ($total_pics > 0) { $avatar_img = '<img src="' . this_smartor_mxurl("smartor_mode=random_personal_thumbnail&user_id=". $user_id, TRUE) . '" alt="" border="0" />'; } elseif ( $userdata['user_avatar_type'] && $userdata['user_allowavatar'] ) { switch( $userdata['user_avatar_type'] ) { case USER_AVATAR_UPLOAD: $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="'.PHPBB_URL.$board_config['avatar_path'].'/'.$userdata['user_avatar'].'" alt="" border="0" />' : ''; break; case USER_AVATAR_REMOTE: $img_width = ''; if( ($img_info = @getimagesize($userdata['user_avatar'])) !== FALSE ) { if( $img_info[0] > $board_config['avatar_max_width'] ) { $img_width = ' width="'.$board_config['avatar_max_width'].'"'; } } $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="'.$userdata['user_avatar'].'"'.$img_width.' alt="" border="0" />' : ''; break; case USER_AVATAR_GALLERY: $avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="'.PHPBB_URL.$board_config['avatar_gallery_path'].'/'.$userdata['user_avatar'].'" alt="" border="0" />' : ''; break; } } if( empty($avatar_img) && !empty($default_avatar) ) { $avatar_img = '<img src="' . $mx_images['default_avatar'] . '" alt="" border="0" />'; } // // This is the template used to render this block. // $template->set_filenames(array( 'welcome_body' => 'welcome_body.tpl') ); // // Activate template switches for Vertical/Horizontal Layout... // if( $vertical_layout ) { $template->assign_block_vars('welcome_vertical_layout', array()); } else { $template->assign_block_vars('welcome_horizontal_layout', array()); } // // Get User Dependent Information... // if( $userdata['session_logged_in'] ) { $s_last_visit = create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']); if( $view_postcount ) { $sql = 'SELECT t.topic_status, t.forum_id, t.topic_id, p2.post_time' . ' FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p, ' . POSTS_TABLE . ' p2' . ' WHERE p.post_id = t.topic_first_post_id' . ' AND p2.post_id = t.topic_last_post_id' . ' AND p2.post_time > ' . $userdata['user_lastvisit'] . ' AND t.forum_id IN (' . get_auth_forum() . ')'; if( ($result = $db->sql_query($sql)) == TRUE ) { $unread_posts = 0; $rowset = $db->sql_fetchrowset($result); $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); for( $i = 0; $i < count($rowset); $i++ ) { if( $rowset[$i]['topic_status'] == TOPIC_MOVED ) { continue; } if ( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { $topic_id = $rowset[$i]['topic_id']; if( !empty($tracking_topics[$topic_id]) ) { if( $tracking_topics[$topic_id] > $row['post_time'] ) { continue; } } $forum_id = $rowset[$i]['forum_id']; if( !empty($tracking_forums[$forum_id]) ) { if( $tracking_forums[$forum_id] > $rowset[$i]['post_time'] ) { continue; } } if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { if( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $rowset[$i]['post_time'] ) { continue; } } } $unread_posts++; } $s_search_new = $lang['Posts_since_last_visit'].' ('.count($rowset).')'; $s_search_unread = $lang['Search_unread'].' ('.$unread_posts.')'; } } $template->assign_block_vars('welcome_user_logged_in', array()); $template->assign_block_vars('welcome_user_admin_' . ($userdata['user_level'] == ADMIN ? 'on' : 'off'), array()); } else { $s_last_visit = ''; $register_msg = sprintf($register_msg, '<a href="'.append_sid(PHPBB_URL.'profile.'.$phpEx.'?mode=register').'">', '</a>'); $template->assign_block_vars('welcome_user_logged_out', array()); } $user_link = ( $user_id != ANONYMOUS ) ? '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=editprofile&".$userdata['user_id']).'">'.$username.'</a>' : $lang['Guest']; if( $report_page == 0 ) { $u_view_topics = $phpbb_root_path.'viewtopic.'.$phpEx.'?report_id='; } else { $u_view_topics = PORTAL_URL.'index.'.$phpEx.'?page='.$report_page.'&report_id='; } $u_unread = append_sid($u_view_topics.'unread'); $u_egostarted = append_sid($u_view_topics.'egostarted'); // // Setup common template vars and display the block. // $template->assign_vars(array( 'L_WELCOME' => $lang['Welcome'], 'L_WELCOME_USER' => sprintf($lang['Welcome_User'], $user_link), 'L_WELCOME_MSG' => ( empty($welcome_msg) ) ? '' : $welcome_msg.'<br /><br />', 'AVATAR_IMG' => $avatar_img, 'S_LOGIN_ACTION' => append_sid(PORTAL_URL.'login.'.$phpEx), 'L_USERNAME' => $lang['Username'], 'L_PASSWORD' => $lang['Password'], 'L_LOGIN' => $lang['Login'], 'L_LOG_ME_IN' => $lang['Log_me_in'], 'L_FORGOTTEN_PSW' => $lang['Forgotten_password'], 'U_FORGOTTEN_PSW' => append_sid(PHPBB_URL.'profile.'.$phpEx.'?mode=sendpassword'), 'L_REGISTER' => $lang['Register'], 'U_REGISTER' => append_sid(PHPBB_URL.'profile.'.$phpEx.'?mode=register'), 'L_REGISTER_MSG' => $register_msg, 'IMG_ICON_DOT' => PORTAL_URL . $mx_images['icon_dot'], 'L_SEARCH_NEW' => ( isset($s_search_new) ) ? $s_search_new : $lang['Posts_since_last_visit'], 'U_SEARCH_NEW' => append_sid(PHPBB_URL.'search.'.$phpEx.'?search_id=newposts'), 'L_SEARCH_UNREAD' => ( isset($s_search_unread) ) ? $s_search_unread : $lang['Search_unread'], 'U_SEARCH_UNREAD' => $u_unread, 'L_SEARCH_LATEST' => $lang['View_latest'], 'U_SEARCH_LATEST_24' => append_sid($u_view_topics.'24h'), 'U_SEARCH_LATEST_48' => append_sid($u_view_topics.'48h'), 'U_SEARCH_LATEST_72' => append_sid($u_view_topics.'72h'), 'L_SEARCH_SELF_TOPICS' => $lang['Search_self_topics'], 'U_SEARCH_SELF_TOPICS' => $u_egostarted, 'L_SEARCH_SELF_POSTS' => $lang['Search_self_posts'], 'U_SEARCH_SELF_POSTS' => append_sid(PHPBB_URL.'search.'.$phpEx.'?search_id=egosearch'), 'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'], 'U_SEARCH_UNANSWERED' => append_sid(PHPBB_URL.'search.'.$phpEx.'?search_id=unanswered'), 'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], 'U_MARK_READ' => append_sid(PHPBB_URL.'index.'.$phpEx . "?mark=forums"), 'L_PRIVATE_MSGS' => $lang['Private_Messages'].' ('.$userdata['user_new_privmsg'].')', 'U_PRIVATE_MSGS' => append_sid(PHPBB_URL.'privmsg.'.$phpEx.'?folder=inbox'), 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])])) ); if( $view_jump_to ) { make_jumpbox(PHPBB_URL.'viewforum.'.$phpEx); } $template->pparse('welcome_body'); ?> |
|
From: OryNider <ory...@us...> - 2007-06-13 18:46:55
|
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26675/templates/subSilver/images Added Files: default_avatar.png icon_dot.gif Log Message: A new welcome block has been added thta will display random pictures from the smartor personal gallery or the avatar picture if personal gallery has not created. --- NEW FILE: default_avatar.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_dot.gif --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-13 18:46:55
|
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26675/includes Added Files: album_personal_random.php Log Message: A new welcome block has been added thta will display random pictures from the smartor personal gallery or the avatar picture if personal gallery has not created. --- NEW FILE: album_personal_random.php --- <?php /** * * @package mxBB Portal Module - mx_smartor * @version $Id: album_personal_random.php,v 1.1 2007/06/13 18:46:45 orynider Exp $ * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // MX if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } define('ALBUM_MOD_PATH', 'album_mod/'); // Get general album information if (!isset($album_root_path) || empty($album_root_path)) { $album_root_path = $module_root_path . ALBUM_MOD_PATH . ''; } include_once($album_root_path . 'album_common.'.$phpEx); include_once($album_root_path . 'album_image_class.'.$phpEx); // ------------------------------------ // Check the request // ------------------------------------ if( isset($HTTP_POST_VARS['user_id']) ) { $user_id = intval($HTTP_POST_VARS['user_id']); } else if( isset($HTTP_GET_VARS['user_id']) ) { $user_id = intval($HTTP_GET_VARS['user_id']); } else { $user_id = $userdata['user_id']; //$user_id = '2'; } // // END check request // // ------------------------------------ // Check $user_id // ------------------------------------ if( ($user_id < 1) and (!$userdata['session_logged_in']) ) { $user_id = ANONYMOUS; } // ------------------------------------ // Get the username of this gallery's owner // ------------------------------------ $sql = "SELECT username FROM ". USERS_TABLE ." WHERE user_id = $user_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not get the username of this category owner', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $username = $row['username']; if( empty($username) ) { $username = ( !empty($userdata['username']) ? $userdata['username'] : $lang['Guest'] ); } // ------------------------------------ // Check Permissions // ------------------------------------ $personal_gallery_access = personal_gallery_access(1,1); // // END check permissions // // ------------------------------------ // Build the thumbnail page // ------------------------------------ if( isset($HTTP_GET_VARS['start']) ) { $start = intval($HTTP_GET_VARS['start']); } else if( isset($HTTP_POST_VARS['start']) ) { $start = intval($HTTP_POST_VARS['start']); } else { $start = 0; } if( isset($HTTP_GET_VARS['sort_method']) ) { switch ($HTTP_GET_VARS['sort_method']) { case 'pic_title': $sort_method = 'pic_title'; break; case 'pic_view_count': $sort_method = 'pic_view_count'; break; case 'rating': $sort_method = 'rating'; break; case 'comments': $sort_method = 'comments'; break; case 'new_comment': $sort_method = 'new_comment'; break; default: $sort_method = $album_config['sort_method']; } } else if( isset($HTTP_POST_VARS['sort_method']) ) { switch ($HTTP_POST_VARS['sort_method']) { case 'pic_title': $sort_method = 'pic_title'; break; case 'pic_view_count': $sort_method = 'pic_view_count'; break; case 'rating': $sort_method = 'rating'; break; case 'comments': $sort_method = 'comments'; break; case 'new_comment': $sort_method = 'new_comment'; break; default: $sort_method = $album_config['sort_method']; } } else { $sort_method = $album_config['sort_method']; } if( isset($HTTP_GET_VARS['sort_order']) ) { switch ($HTTP_GET_VARS['sort_order']) { case 'ASC': $sort_order = 'ASC'; break; case 'DESC': $sort_order = 'DESC'; break; default: $sort_order = $album_config['sort_order']; } } else if( isset($HTTP_POST_VARS['sort_order']) ) { switch ($HTTP_POST_VARS['sort_order']) { case 'ASC': $sort_order = 'ASC'; break; case 'DESC': $sort_order = 'DESC'; break; default: $sort_order = $album_config['sort_order']; } } else { $sort_order = $album_config['sort_order']; } $pics_per_page = $album_config['rows_per_page'] * $album_config['cols_per_page']; // ------------------------------------ // Count Pics // ------------------------------------ $sql = "SELECT COUNT(pic_id) AS count FROM ". ALBUM_TABLE ." WHERE pic_cat_id = ". PERSONAL_GALLERY ." AND pic_user_id = $user_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not count pics', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $total_pics = $row['count']; // ------------------------------------ // Build up // ------------------------------------ if ($total_pics > 0) { $limit_sql = ($start == 0) ? $pics_per_page : $start .','. $pics_per_page; $sql = "SELECT p.pic_id, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_time, p.pic_view_count, p.pic_lock, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment FROM ". ALBUM_TABLE ." AS p LEFT JOIN ". ALBUM_RATE_TABLE ." AS r ON p.pic_id = r.rate_pic_id LEFT JOIN ". ALBUM_COMMENT_TABLE ." AS c ON p.pic_id = c.comment_pic_id WHERE p.pic_cat_id = ". PERSONAL_GALLERY ." AND p.pic_user_id = $user_id GROUP BY p.pic_id ORDER BY $sort_method $sort_order LIMIT $limit_sql"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query pics information', '', __LINE__, __FILE__, $sql); } $picrow = array(); while( $row = $db->sql_fetchrow($result) ) { $picrow[] = $row; } // -------------------------------- // Thumbnails table // -------------------------------- for ($i = 0; $i < count($picrow); $i += $album_config['cols_per_page']) { $template->assign_block_vars('picrow', array()); for ($j = $i; $j < ($i + $album_config['cols_per_page']); $j++) { if( $j >= count($picrow) ) { break; } $avatar_number = rand(1,$j); $upic = ($album_config['fullpic_popup']) ? append_sid(this_smartor_mxurl("smartor_mode=album_pic&pic_id=". $picrow[$avatar_number]['pic_id'])) : append_sid(this_smartor_mxurl("smartor_mode=album_showpage&pic_id=". $picrow[$j]['pic_id'])); $thumnail = append_sid('album.' . $phpEx . "?smartor_mode=album_thumbnail&pic_id=". $picrow[$avatar_number]['pic_id'], TRUE); $pic_id = $picrow[$avatar_number]['pic_id']; } } } elseif( isset($_GET['pic_id']) ) { $pic_id = intval($_GET['pic_id']); } elseif( isset($_POST['pic_id']) ) { $pic_id = intval($_POST['pic_id']); } else { $pic_id = '0'; } // ------------------------------------ // Get this pic info and current category info // ------------------------------------ if ($pic_id == '0') { $thispic = '0'; } elseif ($cat_id != PERSONAL_GALLERY) { $sql = "SELECT p.*, c.* FROM ". ALBUM_TABLE ." AS p, ". ALBUM_CAT_TABLE ." AS c WHERE p.pic_id = '$pic_id' AND c.cat_id = p.pic_cat_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql); } $thispic = $db->sql_fetchrow($result); //$db->sql_freeresult($result); } else { $sql = "SELECT * FROM ". ALBUM_TABLE ." WHERE pic_id = '$pic_id'"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query pic information', '', __LINE__, __FILE__, $sql); } $thispic = $db->sql_fetchrow($result); } if ($pic_id == '0') { $cat_id = PERSONAL_GALLERY; $album_user_id = '1'; $pic_filename = 'anonymouse.png'; $pic_filetype = strtolower(substr($pic_filename, strlen($pic_filename) - 4, 4)); $pic_fullpath = ALBUM_UPLOAD_PATH . $pic_filename; $pic_thumbnail_new = md5($pic_filename) . $pic_filetype; $pic_thumbnail = ( $thispic['pic_thumbnail'] == '' ) ? $pic_thumbnail_new : $thispic['pic_thumbnail']; //$pic_thumbnail = ( $thispic['pic_thumbnail'] == '' ) ? $pic_filename : $thispic['pic_thumbnail']; $pic_thumbnail_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail; $pic_thumbnail_new_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail_new; $pic_title = $thispic['pic_title']; $pic_title_reg = ereg_replace("[^A-Za-z0-9]", "_", $pic_title); } else { $cat_id = $thispic['pic_cat_id']; $album_user_id = $thispic['cat_user_id']; $pic_filename = $thispic['pic_filename']; $pic_filetype = strtolower(substr($pic_filename, strlen($pic_filename) - 4, 4)); $pic_fullpath = ALBUM_UPLOAD_PATH . $pic_filename; $pic_thumbnail_new = md5($pic_filename) . $pic_filetype; $pic_thumbnail = ( $thispic['pic_thumbnail'] == '' ) ? $pic_thumbnail_new : $thispic['pic_thumbnail']; //$pic_thumbnail = ( $thispic['pic_thumbnail'] == '' ) ? $pic_filename : $thispic['pic_thumbnail']; $pic_thumbnail_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail; $pic_thumbnail_new_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail_new; $pic_title = $thispic['pic_title']; $pic_title_reg = ereg_replace("[^A-Za-z0-9]", "_", $pic_title); } if( !file_exists($pic_fullpath) ) { mx_message_die(GENERAL_MESSAGE, $lang['Pic_not_exist'] . $pic_fullpath); } /* // ------------------------------------ // Check the permissions // ------------------------------------ $album_user_access = album_permissions($album_user_id, $cat_id, ALBUM_AUTH_VIEW, $thispic); // ------------------------------------ // Check Pic Approval // ------------------------------------ if ( $userdata['user_level'] != ADMIN ) { if ( ($thispic['cat_approval'] == ADMIN) || (($thispic['cat_approval'] == MOD) && !$album_user_access['moderator']) ) { if ( $thispic['pic_approval'] != 1 ) { mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } } } */ /* // ------------------------------------ // Check hotlink // ------------------------------------ if ( ($album_config['hotlink_prevent'] == true) && (isset($HTTP_SERVER_VARS['HTTP_REFERER'])) ) { $check_referer = explode('?', $HTTP_SERVER_VARS['HTTP_REFERER']); $check_referer = trim($check_referer[0]); $good_referers = array(); if ($album_config['hotlink_allowed'] != '') { $good_referers = explode(',', $album_config['hotlink_allowed']); } $good_referers[] = $board_config['server_name'] . $board_config['script_path']; $errored = true; for ($i = 0; $i < count($good_referers); $i++) { $good_referers[$i] = trim($good_referers[$i]); if ( (strstr($check_referer, $good_referers[$i])) && ($good_referers[$i] != '') ) { $errored = false; } } if ( $errored ) { mx_message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); } } */ /* +---------------------------------------------------------- | Main work here... +---------------------------------------------------------- */ // -------------------------------- // Check thumbnail cache. If cache is available we will SEND & EXIT // -------------------------------- switch ($pic_filetype) { case '.gif': $file_header = 'Content-type: image/gif'; break; case '.jpg': $file_header = 'Content-type: image/jpeg'; break; case '.png': $file_header = 'Content-type: image/png'; break; default: header('Content-type: image/jpeg'); header("Content-Disposition: filename=thumb_" . $pic_title_reg . $pic_filetype); readfile(!empty($mx_images['no_thumbnail']) ? $mx_images['no_thumbnail'] : $module_root_path . 'templates/'. $theme['template_name'] . '/images/nothumbnail.jpg'); exit; break; } if( ($album_config['thumbnail_cache'] == true) && file_exists($pic_thumbnail_fullpath) ) { header($file_header); header("Content-Disposition: filename=thumb_" .$pic_title_reg . $pic_filetype); readfile($pic_thumbnail_fullpath); exit; } $pic_size = @getimagesize($pic_fullpath); $pic_width = $pic_size[0]; $pic_height = $pic_size[1]; if( ($pic_width < $album_config['thumbnail_size']) && ($pic_height < $album_config['thumbnail_size']) ) { header($file_header); header("Content-Disposition: filename=thumb_" .$pic_title_reg . $pic_filetype); readfile($pic_fullpath); exit; } else { // -------------------------------- // Cache is empty. Try to re-generate! // -------------------------------- if ($pic_width > $pic_height) { $thumbnail_width = $album_config['thumbnail_size']; $thumbnail_height = $album_config['thumbnail_size'] * ($pic_height / $pic_width); } else { $thumbnail_height = $album_config['thumbnail_size']; $thumbnail_width = $album_config['thumbnail_size'] * ($pic_width / $pic_height); } // Old Thumbnails - BEGIN // Old thumbnail generation functions, for GD1 and some strange servers... if ( ($album_config['gd_version'] == 1) || ($album_config['use_old_pics_gen'] == 1) ) { switch ($pic_filetype) { case '.gif': header('Content-type: image/jpeg'); header("Content-Disposition: filename=thumb_" . $pic_title_reg . $pic_filetype); readfile(!empty($mx_images['no_thumbnail']) ? $mx_images['no_thumbnail'] : $mx_module_path . 'templates/'. $theme['template_name'] . '/images/nothumbnail.jpg'); exit; break; } $thumbnail = ($album_config['gd_version'] == 1) ? @imagecreate($thumbnail_width, $thumbnail_height) : @imagecreatetruecolor($thumbnail_width, $thumbnail_height); $resize_function = ($album_config['gd_version'] == 1) ? 'imagecopyresized' : 'imagecopyresampled'; @$resize_function($thumbnail, $pic_fullpath, 0, 0, 0, 0, $thumbnail_width, $thumbnail_height, $pic_width, $pic_height); if ($album_config['thumbnail_cache'] == 1) { // ------------------------ // Re-generate successfully. Write it to disk! // ------------------------ switch ($pic_filetype) { case '.jpg': @imagejpeg($thumbnail, $pic_thumbnail_new_fullpath, $album_config['thumbnail_quality']); break; case '.png': @imagepng($thumbnail, $pic_thumbnail_new_fullpath); break; } @chmod($pic_thumbnail_new_fullpath, 0777); } // ---------------------------- // After write to disk, donot forget to send to browser also // ---------------------------- switch ($pic_filetype) { case '.jpg': @imagejpeg($thumbnail, '', $album_config['thumbnail_quality']); break; case '.png': @imagepng($thumbnail); break; default: header('Content-type: image/jpeg'); header("Content-Disposition: filename=thumb_" . $pic_title_reg . $pic_filetype); readfile(!empty($mx_images['no_thumbnail']) ? $mx_images['no_thumbnail'] : $mx_module_path . 'templates/'. $theme['template_name'] . '/images/nothumbnail.jpg'); break; } exit; } // Old Thumbnails - END $Image = new ImgObj(); if ($pic_filetype == '.jpg') { $Image->ReadSourceFileJPG($pic_fullpath); } else { $Image->ReadSourceFile($pic_fullpath); } $Image->Resize($thumbnail_width, $thumbnail_height); if ($album_config['thumbnail_cache'] == true) { if ($pic_filetype == '.jpg') { $Image->SendToFileJPG($pic_thumbnail_new_fullpath, $album_config['thumbnail_quality']); } else { $Image->SendToFile($pic_thumbnail_new_fullpath, $album_config['thumbnail_quality']); } //$Image->SendToFile($pic_thumbnail_fullpath, $album_config['thumbnail_quality']); //@chmod($pic_thumbnail_fullpath, 0777); $sql = "UPDATE ". ALBUM_TABLE ." SET pic_thumbnail = '" . $pic_thumbnail_new . "' WHERE pic_id = '" . $pic_id . "'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update pic information', '', __LINE__, __FILE__, $sql); } } if ($pic_filetype == '.jpg') { $Image->SendToBrowserJPG($pic_title_reg, $pic_filetype, 'thumb_', '', $album_config['thumbnail_quality']); } else { $Image->SendToBrowser($pic_title_reg, $pic_filetype, 'thumb_', '', $album_config['thumbnail_quality']); } if ( $Image == true ) { $Image->Destroy(); exit; } else { $Image->Destroy(); header('Content-type: image/jpeg'); header("Content-Disposition: filename=thumb_" . $pic_title_reg . $pic_filetype); readfile(!empty($mx_images['no_thumbnail']) ? $mx_images['no_thumbnail'] : $module_root_path . 'templates/'. $theme['template_name'] . '/images/nothumbnail.jpg'); exit; } } header("Location:" . $pic_thumbnail_fullpath); ?> |
|
From: OryNider <ory...@us...> - 2007-06-12 21:58:26
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21297 Modified Files: album.php Log Message: - Added $module_root_path = './'; - Replaced message_die with mx_message_die in one place ;) Index: album.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** album.php 7 Jun 2007 20:13:00 -0000 1.14 --- album.php 12 Jun 2007 21:58:22 -0000 1.15 *************** *** 36,39 **** --- 36,41 ---- define('IN_PORTAL', true); $mx_root_path = '../../'; + $module_root_path = './'; + // // Let's include some stuff... *************** *** 54,58 **** if(!$result = $db->sql_query($sql)) { ! message_die(GENERAL_ERROR, "Could not query Smartor_Album module information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); --- 56,60 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, "Could not query Smartor_Album module information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); *************** *** 233,236 **** --- 235,242 ---- include($module_root_path. 'includes/album_jupload.'.$phpEx); } + else if ( $mode == 'random_personal_thumbnail' ) + { + include($module_root_path. 'includes/album_personal_random.'.$phpEx); + } else if( !is_object($mx_block)) { |
|
From: OryNider <ory...@us...> - 2007-06-12 11:19:57
|
Update of /cvsroot/mxbb/mx_glance In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23214 Modified Files: db_install.php db_upgrade.php mx_glance.pak mx_glance.php mx_install_readme.htm Log Message: This upgrade will permit the selections of multiple news forums in blockCP. Thanks to the phpBB Romanian Comunity for help! Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_install_readme.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_install_readme.htm 6 Jun 2007 21:47:56 -0000 1.1 --- mx_install_readme.htm 12 Jun 2007 11:19:14 -0000 1.2 *************** *** 221,225 **** <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> --- 221,225 ---- <td colspan="2"><p><b><font face="Tahoma">MX Module - mx_glance<br> ! v. </font></b><font face="Tahoma"><b>2.3.4</b></font></p> <p><font face="Tahoma"> <span style="line-height: normal; font-weight:bold">Module</span> Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/db_upgrade.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_upgrade.php 6 Jun 2007 21:47:49 -0000 1.1 --- db_upgrade.php 12 Jun 2007 11:19:13 -0000 1.2 *************** *** 31,35 **** } ! $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>'; --- 31,35 ---- } ! $mx_module_version = '2.3.4'; $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>'; Index: mx_glance.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_glance.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_glance.php 6 Jun 2007 21:47:54 -0000 1.1 --- mx_glance.php 12 Jun 2007 11:19:14 -0000 1.2 *************** *** 116,120 **** } - // // GET USER LAST VISIT --- 116,119 ---- *************** *** 210,214 **** { $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)) ) { --- 209,213 ---- { $unauthed_forums = array(); ! $sql = "SELECT forum_id, auth_view FROM " . FORUMS_TABLE . " WHERE forum_id NOT IN (" . $glance_news_forum_id . ")"; if( !($result = $db->sql_query($sql)) ) { *************** *** 230,241 **** { $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 ) { --- 229,240 ---- { $unauthed = false; ! if ( !$auth_mod['auth_view'] && ( strstr($glance_news_forum_id,$auth_mod['forum_id']) === FALSE ) ) ! { ! $unauthed = true; ! } ! if ( !$glance_auth_read && !$auth_mod['auth_read'] && ( strstr($glance_news_forum_id,$auth_mod['forum_id']) === FALSE ) ) ! { ! $unauthed = true; ! } if ( $unauthed ) { *************** *** 393,397 **** 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) { --- 392,396 ---- if (($glance_news_offset > 0) or ($glance_news_offset+$glance_num_news < $overall_news_topics)) { ! $new_url = '<a href="' . $mx_root_path . 'index.' . $phpEx . '?page=' . $page_id . '&glance_news_offset='; if ($glance_news_offset > 0) { *************** *** 608,612 **** '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' ) )); --- 607,611 ---- 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], ! 'BLOCK_SIZE' => ( !empty($block_size) ? $glance_table_width : '100%' ), 'L_BACK_TO_TOP' => ( !empty($lang['Back_to_top']) ? $lang['Back_to_top'] : 'Back to Top' ) )); Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/db_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_install.php 6 Jun 2007 21:47:48 -0000 1.1 --- db_install.php 12 Jun 2007 11:19:12 -0000 1.2 *************** *** 31,35 **** } ! $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>'; --- 31,35 ---- } ! $mx_module_version = '2.3.4'; $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>'; Index: mx_glance.pak =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_glance.pak,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_glance.pak 6 Jun 2007 21:47:52 -0000 1.1 --- mx_glance.pak 12 Jun 2007 11:19:14 -0000 1.2 *************** *** 2,6 **** 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 --- 2,6 ---- 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=+:Function=+:=+:get_list_multiple("{parameter_id}[]", FORUMS_TABLE, 'forum_id', 'forum_name', "{parameter_value}", TRUE)=+:0=+:0 parameter=+:73=+:138=+:Glance_num_news=+:Number=+:1=+:=+:0 parameter=+:73=+:139=+:Glance_num_recent=+:Number=+:5=+:=+:0 |
|
From: OryNider <ory...@us...> - 2007-06-12 11:19:51
|
Update of /cvsroot/mxbb/mx_glance/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23214/language/lang_english Modified Files: lang_admin.php Log Message: This upgrade will permit the selections of multiple news forums in blockCP. Thanks to the phpBB Romanian Comunity for help! Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/language/lang_english/lang_admin.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_admin.php 6 Jun 2007 21:48:15 -0000 1.1 --- lang_admin.php 12 Jun 2007 11:19:16 -0000 1.2 *************** *** 11,15 **** // 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"; --- 11,15 ---- // setlocale(LC_ALL, "en"); ! $lang['Glance_news_forum_id'] = "Glance news forum"; $lang['Glance_num_news'] = "Number of News to display"; $lang['Glance_num_recent'] = "Number of recent posts"; |
|
From: OryNider <ory...@us...> - 2007-06-12 11:19:26
|
Update of /cvsroot/mxbb/mx_glance/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23214/language/lang_romanian Modified Files: lang_admin.php Log Message: This upgrade will permit the selections of multiple news forums in blockCP. Thanks to the phpBB Romanian Comunity for help! Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/language/lang_romanian/lang_admin.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_admin.php 6 Jun 2007 21:48:18 -0000 1.1 --- lang_admin.php 12 Jun 2007 11:19:16 -0000 1.2 *************** *** 11,15 **** // 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"; --- 11,15 ---- // setlocale(LC_ALL, "en"); ! $lang['Glance_news_forum_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"; |
|
From: Selven <sel...@us...> - 2007-06-12 05:05:43
|
Update of /cvsroot/mxbb/mx_faq/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18203 Added Files: faq_body.tpl faq_dhtml.tpl index.htm rules_body.tpl rules_dhtml.tpl Log Message: First Update --- NEW FILE: rules_body.tpl --- <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center"> <tr> <td class="row1"> <!-- BEGIN faq_block_link --> <span class="gen"><b>{faq_block_link.BLOCK_TITLE}</b></span><br /> <!-- BEGIN faq_row_link --> <span class="gen"><a href="{faq_block_link.faq_row_link.U_FAQ_LINK}" class="postlink">{faq_block_link.faq_row_link.FAQ_LINK}</a></span><br /> <!-- END faq_row_link --> <br /> <!-- END faq_block_link --> </td> </tr> <tr> <td class="catBottom" height="28"> </td> </tr> <!-- BEGIN faq_block --> <tr> <td class="catHead" height="28" align="center"><span class="cattitle">{faq_block.BLOCK_TITLE}</span></td> </tr> <!-- BEGIN faq_row --> <tr> <td class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"><span class="postbody"><a name="{faq_block.faq_row.U_FAQ_ID}"></a><b>{faq_block.faq_row.FAQ_QUESTION}</b></span><br /><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /><a class="postlink" href="#Top">{L_BACK_TO_TOP}</a></span></td> </tr> <tr> <td class="spaceRow" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td> </tr> <!-- END faq_row --> <!-- END faq_block --> </table> --- NEW FILE: rules_dhtml.tpl --- <script language="javascript" type="text/javascript" src="{U_CFAQ_JSLIB}"></script> <noscript> <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center"> <tr> <td class="row1" align="center"><span class="gen"><br />{L_CFAQ_NOSCRIPT}<br /> </span></td> </tr> </table> </noscript> <table class="forumline" width="100%" cellspacing="0" cellpadding="0" border="0" align="center"> <!-- BEGIN faq_block --> <tr> <td class="catHead" height="28" align="center"><span class="cattitle">{faq_block.BLOCK_TITLE}</span></td> </tr> <!-- BEGIN faq_row --> <tr> <td class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"> <div onclick="return CFAQ.display('faq_a_{faq_block.faq_row.U_FAQ_ID}', false);" style="width:100%;cursor:pointer;cursor:hand;"> <span class="gen"><a class="postlink" href="javascript:void(0)" onclick="return CFAQ.display('faq_a_{faq_block.faq_row.U_FAQ_ID}', true);" onfocus="this.blur();"><b>{faq_block.faq_row.FAQ_QUESTION}</b></span></a> </div> <div id="faq_a_{faq_block.faq_row.U_FAQ_ID}" style="display:none;"> <table class="bodyline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center"> <tr> <td class="spaceRow"><img src="templates/subSilver/images/spacer.gif" alt="" width="0" height="0" /></td> </tr> <tr><td align="left" valign="top"><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /></span></td></tr> <tr> <td class="spaceRow"><img src="templates/subSilver/images/spacer.gif" alt="" width="0" height="0" /></td> </tr> </table> </div> </td> </tr> <!-- END faq_row --> <!-- END faq_block --> </table> --- NEW FILE: faq_dhtml.tpl --- <script language="javascript" type="text/javascript" src="{U_CFAQ_JSLIB}"></script> <noscript> <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center"> <tr> <td class="row1" align="center"><span class="gen"><br />{L_CFAQ_NOSCRIPT}<br /> </span></td> </tr> </table> </noscript> <table class="forumline" width="100%" cellspacing="0" cellpadding="0" border="0" align="center"> <tr> <td class="catHead" height="28" align="center"><a href="{U_PORTAL_FAQ}" class="nav">{L_PORTAL_FAQ}</a></td> <td class="catHead" height="28" align="center"><a href="{U_MODULE_FAQ}" class="nav">{L_MODULE_FAQ}</a></td> <td class="catHead" height="28" align="center"><a href="{U_FORUM_FAQ}" class="nav">{L_FORUM_FAQ}</a></td> <td class="catHead" height="28" align="center"><a href="{U_BBCODE_FAQ}" class="nav">{L_BBCODE_FAQ}</a></td> </tr> <!-- BEGIN faq_block --> <tr> <td colspan="4" class="catHead" height="28" align="center"><span class="cattitle">{faq_block.BLOCK_TITLE}</span></td> </tr> <!-- BEGIN faq_row --> <tr> <td colspan="4" class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"> <div onclick="return CFAQ.display('faq_a_{faq_block.faq_row.U_FAQ_ID}', false);" style="width:100%;cursor:pointer;cursor:hand;"> <span class="gen"><a class="postlink" href="javascript:void(0)" onclick="return CFAQ.display('faq_a_{faq_block.faq_row.U_FAQ_ID}', true);" onfocus="this.blur();"><b>{faq_block.faq_row.FAQ_QUESTION}</b></span></a> </div> <div id="faq_a_{faq_block.faq_row.U_FAQ_ID}" style="display:none;"> <table class="bodyline" width="100%" cellspacing="1" cellpadding="3" border="0" align="center"> <tr> <td class="spaceRow"><img src="templates/subSilver/images/spacer.gif" alt="" width="0" height="0" /></td> </tr> <tr><td align="left" valign="top"><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /></span></td></tr> <tr> <td class="spaceRow"><img src="templates/subSilver/images/spacer.gif" alt="" width="0" height="0" /></td> </tr> </table> </div> </td> </tr> <!-- END faq_row --> <!-- END faq_block --> </table> --- 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: faq_body.tpl --- <table class="forumline" cellspacing="0" cellpadding="0" width="100%"> <tr> <td class="catHead" height="28" align="center"><a href="{U_PORTAL_FAQ}" class="nav">{L_PORTAL_FAQ}</a></td> <td class="catHead" height="28" align="center"><a href="{U_MODULE_FAQ}" class="nav">{L_MODULE_FAQ}</a></td> <td class="catHead" height="28" align="center"><a href="{U_FORUM_FAQ}" class="nav">{L_FORUM_FAQ}</a></td> <td class="catHead" height="28" align="center"><a href="{U_BBCODE_FAQ}" class="nav">{L_BBCODE_FAQ}</a></td> </tr> <tr> <td colspan="4" class="row1"> <!-- BEGIN faq_block_link --> <span class="gen"><b>{faq_block_link.BLOCK_TITLE}</b></span><br /> <!-- BEGIN faq_row_link --> <span class="gen"><a href="{faq_block_link.faq_row_link.U_FAQ_LINK}" class="postlink">{faq_block_link.faq_row_link.FAQ_LINK}</a></span><br /> <!-- END faq_row_link --> <br /> <!-- END faq_block_link --> </td> </tr> <tr> <td colspan="4" class="catBottom" height="28"> </td> </tr> <!-- BEGIN faq_block --> <tr> <td colspan="4" class="catHead" height="28" align="center"><span class="cattitle">{faq_block.BLOCK_TITLE}</span></td> </tr> <!-- BEGIN faq_row --> <tr> <td colspan="4" class="{faq_block.faq_row.ROW_CLASS}" align="left" valign="top"><span class="postbody"><a name="{faq_block.faq_row.U_FAQ_ID}"></a><b>{faq_block.faq_row.FAQ_QUESTION}</b></span><br /><span class="postbody">{faq_block.faq_row.FAQ_ANSWER}<br /><a class="postlink" href="#Top">{L_BACK_TO_TOP}</a></span></td> </tr> <tr> <td colspan="4" class="spaceRow" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td> </tr> <!-- END faq_row --> <!-- END faq_block --> </table> |
|
From: Selven <sel...@us...> - 2007-06-12 05:05:43
|
Update of /cvsroot/mxbb/mx_faq/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18203/admin Added Files: faq_block_body.tpl faq_editor_body.tpl faq_quest_body.tpl faq_select_lang_body.tpl index.htm Log Message: First Update --- NEW FILE: faq_block_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form action="{S_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_TITLE}</th> </tr> <tr> <td class="row1">{L_BLOCK_NAME}</td> <td class="row2"><input name="block_title" value="{BLOCK_TITLE}" type="text" style="width:350px; "></td> </tr> <tr> <td class="catBottom" colspan="2" align="center"> {S_HIDDEN_FIELDS} <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> </td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: faq_editor_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="5">{L_TITLE}</th> </tr> <!-- BEGIN blockrow --> <tr> <td class="catLeft" width="100%"><span class="cattitle"><a name="{blockrow.BLOCK_ANCHOR}">{blockrow.BLOCK_TITLE}</a></span></td> <td class="cat" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.U_BLOCK_EDIT}">{L_EDIT}</a></span></td> <td class="cat" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.U_BLOCK_DELETE}">{L_DELETE}</a></span></td> <td class="cat" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.U_BLOCK_MOVE_UP}">{L_MOVE_UP}</a></span></td> <td class="catRight" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.U_BLOCK_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> </tr> <!-- BEGIN questrow --> <tr> <td class="row1" valign="top" width="100%"><span class="gen">{blockrow.questrow.QUEST_TITLE}</span></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.questrow.U_QUEST_EDIT}">{L_EDIT}</a></span></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.questrow.U_QUEST_DELETE}">{L_DELETE}</a></span></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.questrow.U_QUEST_MOVE_UP}">{L_MOVE_UP}</a></span></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{blockrow.questrow.U_QUEST_MOVE_DOWN}">{L_MOVE_DOWN}</span></td> </tr> <!-- END questrow --> <!-- BEGIN no_questions --> <tr> <td class="row1" align="center" colspan="5"><span class="gen">{L_NO_QUESTIONS}</span></td> </tr> <!-- END no_questions --> <tr> <td class="row2" valign="top" colspan="5"> <form method="post" action="{S_ACTION}" style="margin:0px;"> <span class="gen"> <input class="post" name="quest_title" type="text" value="" size="40"> <input name="mode" type="hidden" value="quest_new"> <input name="block" type="hidden" value="{blockrow.BLOCK_NUMBER}"> <input class="liteoption" type="submit" value="{L_ADD_QUESTION}" name="submit"> </span> </form> </td> </tr> <tr> <td colspan="5" height="1" class="spaceRow"><img src="../templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td> </tr> <!-- END blockrow --> <!-- BEGIN no_blocks --> <tr> <td class="catLeft" colspan="5"><span class="cattitle">{L_NO_BLOCKS}</span></td> </tr> <!-- END no_blocks --> <tr> <td class="catLeft" colspan="5"> <form method="post" action="{S_ACTION}" style="margin:0px;"> <span class="gen"> <input class="post" name="block_title" type="text" value="" size="60"> <input name="mode" type="hidden" value="block_new"> <input class="liteoption" type="submit" value="{L_ADD_BLOCK}" name="submit"> </span> </form> </td> </tr> </table> <br clear="all" /> --- NEW FILE: faq_select_lang_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form action="{S_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_TITLE}</th> </tr> <tr> <td class="row1">{L_LANGUAGE}</td> <td class="row2">{LANGUAGE_SELECT}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: faq_quest_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <!-- BEGIN tinyMCE --> <script language="javascript" type="text/javascript" src="{tinyMCE.SCRIPT}"></script> <script language="javascript" type="text/javascript"> tinyMCE.init( { mode : "textareas", theme : "advanced", language : "{tinyMCE.LANG}", docs_language : "{tinyMCE.LANG}", plugins : "table,advhr,advimage,advlink,emotions,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable", theme_advanced_buttons1_add_before : "newdocument,separator", theme_advanced_buttons1_add : "fontselect,fontsizeselect", theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor", theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator", theme_advanced_buttons3_add_before : "tablecontrols,separator", theme_advanced_buttons3_add : "emotions,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_path_location : "bottom", content_css : "{tinyMCE.TEMPLATE}", relative_urls : false, extended_valid_elements : "td[*],div[*],form[*],input[*]" }); </script> <!-- END tinyMCE --> <form action="{S_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_TITLE}</th> </tr> <tr> <td class="row1">{L_BLOCK}</td> <td class="row2"><select name="block" style="width:350px; ">{S_BLOCK_LIST}</select></td> </tr> <tr> <td class="row1">{L_QUESTION}</td> <td class="row2"><input type="text" size="50" style="width:350px; " name="quest_title" value="{QUESTION}" class="post" /></td> </tr> <tr> <td class="row1">{L_ANSWER}</td> <td class="row2"><textarea name="answer" rows="15" cols="35" class="post" style="width:550px;" rows="8">{ANSWER}</textarea></td> </tr> <tr> <td class="catBottom" colspan="2" align="center"> {S_HIDDEN_FIELDS} <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> </td> </tr> </table> </form> <br clear="all" /> --- 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> |
Update of /cvsroot/mxbb/mx_faq/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18178 Added Files: index.htm lang_editor.php lang_faq.php lang_main_faq_editor.php lang_portal_faq.php lang_rules.php Log Message: First Update --- NEW FILE: lang_editor.php --- <?php /*************************************************************************** * lang_editor.php [English] * ------------------- * begin : Apr 29 2007 * copyright : (C) 2007 Selven based on http://www.phpBB.com format * email : * * $Id: lang_editor.php,v 1.1 2007/06/12 05:05:24 selven81 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. * ***************************************************************************/ $lang['editor'] = 'Edit Language'; $lang['editor_explain'] = 'This module allows you to edit and re-arrange your Rules & FAQ . You <u>should not</u> remove or alter the section entitled <b>phpBB 2 Issues</b>.'; $lang['select_language'] = 'Choose the language of the file you want to edit'; $lang['retrieve'] = 'Retrieve File'; $lang['block_delete'] = 'Are you sure you want to delete this block?'; $lang['quest_delete'] = 'Are you sure you wish to delete this question (and its answer)?'; $lang['quest_edit'] = 'Edit Entries'; $lang['quest_create'] = 'Create New entry'; $lang['quest_edit_explain'] = 'Edit the entry. You can also change the category if you wish.'; $lang['quest_create_explain'] = 'Type the new title and text and press Submit.'; $lang['block'] = 'Category'; $lang['quest'] = 'Title'; $lang['answer'] = 'Text'; $lang['block_name'] = 'Category Name'; $lang['block_rename'] = 'Rename a Category'; $lang['block_rename_explain'] = 'Change the name of a category in the file'; $lang['block_add'] = 'Add Category'; $lang['quest_add'] = 'Add Entry'; $lang['no_quests'] = 'No entries in this Category. This will prevent any category after this one being displayed. Delete the category or add one or more entries.'; $lang['no_blocks'] = 'No category defined. Add a new category by typing a name below.'; $lang['write_file'] = 'Could not write to the language file!'; $lang['write_file_explain'] = 'You must make the faqs language files in language/lang_english/ and in all your language folders <i>writeable</i> to use this control panel. On UNIX, this means running <code>chmod 666 filename</code>. Most FTP clients can do through the properties sheet for a file, otherwise you can use telnet or SSH.'; ?> --- NEW FILE: lang_main_faq_editor.php --- <?php /*************************************************************************** * lang_main_faq_editor.php [English] * ------------------- * begin : Sat jul 12 2003 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: lang_main_faq_editor.php,v 1.1 2007/06/12 05:05:24 selven81 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. * ***************************************************************************/ $lang['Mx_Module_faq'] = 'Modules Faq'; $lang['Mx_Portal_faq'] = 'Portal Faq'; $lang['Forum_faq'] = 'Forum Faq'; $lang['BBcode_faq'] = 'BBcode Faq'; //+MOD: DHTML Collapsible FAQ MOD // Please note: %sHERE%s is used to dynamically building the A HREF tag, do not remove the percent signs (%) around HERE! $lang['dhtml_faq_noscript'] = "It appears that your browser does not support javascript or it has been disabled in your browser's settings.<br /><br />Please, click %sHERE%s to view a plain HTML version of this FAQ."; //-MOD: DHTML Collapsible FAQ MOD ?> --- NEW FILE: lang_faq.php --- <?php /*************************************************************************** This file was automatically generated by Admin FAQ Editor ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // To add an entry to your FAQ simply add a line to this file in this format: // $faq[] = array("question", "answer"); // If you want to separate a section enter $faq[] = array("--","Block heading goes here if wanted"); // Links will be created automatically // // DO NOT forget the ; at the end of the line. // Do NOT put double quotes (") in your FAQ entries, if you absolutely must then escape them ie. \"something\" // // The FAQ items will appear on the FAQ page in the same order they are listed in this file // $faq[] = array("--", "Faq & Rules Faq"); $faq[] = array("What is Faq & Rules module?", "Faq & Rules module is an script can permit to manage Frequently Answered Question and Rules for your portal, you can modify faq and rules directly from ACP."); $faq[] = array("How can i add faq in my modules?", "Is simple you just to add an file called lang_faq.php into language\lang_*\ in your modules folder, compiled in phpbb faq system."); $faq[] = array("Where i can submit my faq?", "Feel free to modific portal faqs they are just doned copying mxbb ones"); $faq[] = array("Can i manage modules faq from acp?", "Not in this version, the module faq management is too hard to develope, maybe in future"); $faq[] = array("Who has write this module?", "This module is an modified-ported version of numerous script: <br />Faq Original system by <a href=http://www.phpbb.com>PhpBB</a> <br />Editor system by <a href=http://phpms.sourceforge.net>Selven</a> <br />Faq Dhtml Collapsible system by <a href=http://www.phpmix.com>Markus Petrux</a> <br />Rules system by <a href=http://www.phpbb.com/community/viewtopic.php?f=15&t=423664>eviL<3</a>");?> --- NEW FILE: lang_portal_faq.php --- <?php /*************************************************************************** This file was automatically generated by Admin FAQ Editor ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // To add an entry to your FAQ simply add a line to this file in this format: // $faq[] = array("question", "answer"); // If you want to separate a section enter $faq[] = array("--","Block heading goes here if wanted"); // Links will be created automatically // // DO NOT forget the ; at the end of the line. // Do NOT put double quotes (") in your FAQ entries, if you absolutely must then escape them ie. \"something\" // // The FAQ items will appear on the FAQ page in the same order they are listed in this file // $faq[] = array("--", "Contents"); $faq[] = array("What is the MX-portal project all about? ", "<P>MX-portal is an addon portal CMS for phpbb forums, hosted at <A href=\"http://www.mx-system.com\">www.mx-system.com</A>.Unlike most portals or addons for phpbb mx system relies on a modular system, to provide a wide range of features including, news, downloads, albums and many others including third parties. The advantage of this modular system is that a module may be installed and administered without touching code </P>"); $faq[] = array("What are the requirements for running MX-portal? ", "- PHP4+ <br />- PHPBB 2.0x (latest version) <br />- MySQL or postresSQL Db's <br /> <br />Certain modules may require other requirements <br />recomended setup <br /> <br />- PHP4.3.3 or greater with safe mode off <br />- PHPBB 2.0x (latest version) <br />- MySQL 4.0"); $faq[] = array("How do i install/uninstall/upgrade the MX-portal? ", "Detailed installation instructions are given in the main <a href=http://www.mx-system.com/forum/viewtopic.php?t=1224>MX CORE RELEASE thread</a> a copy of which can be found in the core install. Anyone familiar with phpbb install will find mx install a breeze. Before starting make sure you have your db details and path to phpbb to hand. During the install its recomended you switch the default and admin theme to subSilver and the default and admin language to English, individual themes and languages can be added afterwards."); $faq[] = array("What's all this talk about modules? ", "MX-portal is modular, i.e. additional features extending the MX CORE are installed and handled as modules. These modules are released and maintained individually, and may also be written by the user himself. Popular modules are for example Album and download addons, knowledge base addon (this FAQ) and news managing systems..."); $faq[] = array("How do i install/uninstall/upgrade modules? ", "Each module has its own release and install thread. Check out the <a href=http://www.mx-system.com/forum/viewforum.php?f=11>release forum</a> for official modules releases and the < href=http://www.mx-system.com/forum/viewforum.php?f=31>beta/3rd party release forums</a> for user contributed modules."); $faq[] = array("Common installation problems... ", "First of all, you may want to validate all path settings were defined correctly for mx during install: <br /> <br />Validate the database path settings: <br />Browse to http://www.yourdomain.com/portaldir/admin/admin_mx_portal.php directly and validate current mx and phpbb paths. <br /> <br />For example: <br /> <br />mx path: http://www.yourdomain.com/mx/ <br />phpbb path: http://www.yourdomain.com/phpbb2/ <br /> <br />note: the traling slashes are important! <br /> <br />Validate relative phpbb path <br />Open the mx config.php file and checkout the relative phpbb path <br /> <br />For example: <br /> <br />../../../forum/ = ../../../ . '../phpbb2/'; <br /> <br />No other environmental paths are defined for mx! <br /> <br />Be sure to consult the install docs once more for more detailed info. <br /> <br />OTHER PROBLEMS: <br /> <br />Quote: <br />Funny path: ...admin/admin/... <br /> <br />This problem occurs when the MX paths are not correctly entered in the db during installation. Typically this happens if you call the mx_db_install.php file directly (and not mx_install.php as you're supposed to). You may either enter them directly in the db using phpmyadmin (or similar) or browse to the MX General Setup Page (yourmxurl/admin/admin_mx_portal.php) in the adminCP and edit according to instructions given in the main installation docs. <br /> <br />Quote: <br />\"Could not query database for theme info\" <br /> <br />Be sure either old mx config.php is deleted or emptied before attempting to install/upgrade mx <br /> <br />Quote: <br />Known issues with some phpbb mods and MX <br /> <br />- File Attachment mod is working fine with mx <br />- Cash mod is problematic...we're trying to find a cure... <br /> <br />Quote: <br />\"Call to undefined function: include_attach_lang()\" <br /> <br />This error mess has nothing to do with File Attachment mod...it's due to badly set db prefixes in the mx config.php. Be sure to validate the settings. <br /> <br />Quote: <br />Left frame entries are missing in AdminCP after MX installation <br /> <br />You're using themes in phpbb not yet installed for mx. Switch back to subSilver or install the theme for mx. <br /> <br />Quote: <br />\"Cannot add header information - headers already sent by\" <br /> <br />This error may occur in numerous situations: the mx files are uploaded to wrong place, the mx cahce file is unwritable, you have edited files incorrectly, you have a incompatible module installed or the module is buggy...thus this problem is hard to pinpoint and should be debugged in the support forums <br /> <br />Quote: <br />GZip, Server cache and other server related issues <br /> <br />Some servers feature cache and compression, which may distrurb the mx cache... <br /> <br />Further reading: <br />How to solve the ob_gzhandler problem <br /> <br />Quote: <br />\"Template->make_filename(): Error - file overall_header.tpl does not exist\" <br /> <br />You're using themes in phpbb not yet installed for mx. Switch back to subSilver or install the theme for mx. <br /> <br />Quote: <br />Information <br />Your mx-portal or module need to be upgraded, since its calling an old mx function include file. If you are coding yourself be sure to include the phpbb includes version of \" bbcode.php \" instead, i.e. replace mx_root_path with phpbb_root_path in the include call... <br /> <br /><a href=http://www.mx-system.com/forum/viewtopic.php?t=4100>http://www.mx-system.com/forum/viewtopic.php?t=4100</a>"); $faq[] = array("How does the AdminCP work for managing the portal? ", "In short, the portal consists of one or more pages (referred to by page=id in the url), and every page is composed of blocks. The MX core provide several types of basic blocks, for example textblocks, last message block, who's online block etc. Installed mx modules provide additional blocks designed for specific use. <br /> <br />Further reading: <br /><a href=http://www.mx-system.com/index.php?page=108&mode=article&k=1>- The Mx Portal Admin Panel - How does it work?<a>"); $faq[] = array("What about cache? ", "The MX-portal uses a cache feature, for faster page generation time. You may disable the cache by deleting the two *.xml files in the cache folder. <br />Also make sure the cache folder, and its files are writable."); $faq[] = array("Languages", "The MX-portal is multilangual, and all contributed translations are uploaded/found in the mx downlolad area. <br /> <br />Languages are installed by uploading the lang_ folder to the mx lang dir. <br />modules also have their own language and template modules <br /> <br />Note: If you've done a translation, please share (upload)..."); $faq[] = array("Themes ", "The MX-portal support standard phpbb themes, and all contributed themes are uploaded/found in the mx downlolad area. <br /> <br />Themes must first be installed for phpbb, THEN for mx. <br /> <br />Note: If you've done a cool theme, please share (upload)..."); $faq[] = array("I want to add my own theme/style - help? ", "A basic understanding of the phpbb themes approach is required and newbies should really start reading some introductory articles over at phpbb.com. <br /> <br /><a href=http://www.mx-system.com/index.php?page=108&mode=cat&cat=4>Further reading</a> <br /> <br />Themes are held in 2 places, for the core they are held in templates folder the layout is similar to that of phpbb with each theme having its own folder. Modules also hold themes in a template folder unlike the core most modules have a default theme that is used if the users current theme does not have any special templates."); $faq[] = array("How come MX and phpbb have different headers (top navigation) - help? ", "MX and phpbb are still two different site areas, and use each its own overall_header.tpl file...this is since mx is a phpbb addon and do not modify any phpbb files. <br /> <br />To make the site more mx-phpbb integrated, you need to edit the phpbb overall_header yourself making it look and feel like the portal's. <br /> <br /><a href=http://www.mx-system.com/index.php?page=108&mode=cat&cat=4>Further reading</a>"); $faq[] = array("I did try searching, but failed...?? ", "The phpBB search function is not very effective when common search phrases are used. Try to make your search more specific. But we stress the search function itself IS working. "); $faq[] = array("I want to create my own module - help? ", "Module development is pretty easy, once you've come to understand the basic hierarchy of mx and modules...and if knowing some php Mostly you start off from a phpbb mod (released over at phpbb.com) and adapt it for mx... <br /> <br /><a href=http://www.mx-system.com/index.php?page=108&mode=cat&cat=3>Further reading</a> <br /> <br />please don't forget to share your modules with others!"); $faq[] = array("Becoming a MX developer...using cvs ", "We are always looking for extra hands both in development and bug/beta tracking. Normally would be developers do a stint as bug trackers before joining the development team though it has been known for invitations to be issued to php developers from time to time. For more information on becoming a developer or bug tester please contact Haplo or Drift"); $faq[] = array("When is the next release / Can I test it? ", "We have learned from bitter experience not to give definate dates for releases though it is usually obvious by the hive of activity when such releases occur. In january 2004 we released mx 2.71rc this was our first fully supported stable version, and it is this that is the current basis development work, subsequent recent releases have been bug fixes. Plans for version mx3 are in the making. <br /> <br />How can you test up and coming releases? <br />Simply join the bug testing group, and start submitting bugs. beta testing is our way of saying thanks though since it usually involves yet more testing its something of a double edged sword "); $faq[] = array("How's the MX project organized? ", "The MX-portal was founded by MarcMoris, but this dev site is currently supervised by Haplo and Drift. <br />The Dev team are a mix of developers and coders from varying backgrounds. Togeather with the bug testers they try to expand mx into the best modular cms for phpbb their is."); ?> --- NEW FILE: lang_rules.php --- <?php /*************************************************************************** This file was automatically generated by Admin FAQ Editor ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // To add an entry to your FAQ simply add a line to this file in this format: // $faq[] = array("question", "answer"); // If you want to separate a section enter $faq[] = array("--","Block heading goes here if wanted"); // Links will be created automatically // // DO NOT forget the ; at the end of the line. // Do NOT put double quotes (") in your FAQ entries, if you absolutely must then escape them ie. \"something\" // // The FAQ items will appear on the FAQ page in the same order they are listed in this file // $faq[] = array("--", "Rules category"); $faq[] = array("Rules item", "<p>This item demonstrates the rules page. To edit/add/remove items, please edit.</p><p><em>HTML is also possible!</em> </p>"); ?> --- 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: Selven <sel...@us...> - 2007-06-12 05:05:10
|
Update of /cvsroot/mxbb/mx_faq/docs/css In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17765/css Added Files: index.htm subSilver.css Log Message: First Update --- 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: subSilver.css --- <? /** * * @package mxBB Portal 2.8.0 * @version $Id: subSilver.css,v 1.1 2007/06/12 05:05:03 selven81 Exp $ * @copyright (c) 2002-2005 mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @project_site http://www.mxbb.net * * * 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. * */ /** * Note that this is the original subSilver style, with a few minor changes * and additions done to suit our needs. All copyrights and essential credits are * of course listed below. * * Again, thanks to subBlue Design for making this CSS file available. * */ ?> /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com */ /* 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 #006699 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(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(images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; 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,h1,h2 { 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 { 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;} 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("formIE.css"); /* Special mxBB-specific stuff */ p,ul,td { font-size:10pt; } .h2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; font-weight: bold; } .h3 { color: blue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12pt; } ul.list { margin: 0; padding: 0; list-style: none; } ul.list ul { padding: 0; padding-left: 10px; margin: 0; list-style: none; } ul.list ul ul { margin: 0; } ul.list a { padding-left: 15px; color: #000000; } li.cat a { background: url(../images/li_bullet_blue.gif) no-repeat; font-weight: bold; } li.item a { color: #006699; background: url(../images/li_small_arrow_right_black.gif) no-repeat; font-weight: normal; } li.folder a { margin-left: 10px; background: url(../images/li_folders.gif) no-repeat; font-weight: normal; } li.cat ul ul a{ margin-left: 18px; background: url(../images/li_small_arrow_right_black.gif) no-repeat; font-weight: normal; } |
|
From: Selven <sel...@us...> - 2007-06-12 05:05:10
|
Update of /cvsroot/mxbb/mx_faq/docs/pages In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17765/pages Added Files: doc_navigate.html index.htm main_doc_index.html Log Message: First Update --- NEW FILE: doc_navigate.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>mxBB Portal :: Documentation Navigation</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link rel="stylesheet" type="text/css" href="../css/subSilver.css" /> </head> <body bgcolor="#F0F0F0" text="#000000" link="#006699" vlink="#006699"> <table cellpadding="10" cellspacing="0" border="0" width="100%"> <tr> <td align="center"> <a href="http://www.mx-system.com" target="_blank" title="mxBB Portal 2.8.0"><img src="../images/mxbb-portal.gif" border="0" alt="mxBB Portal 2.8.0" /></a> </td> </tr> </table> <table cellpadding="10" cellspacing="0" border="0" width="100%"> <tr> <td> <ul class="list"> <li class="cat"><a class="genmed" name="main">Main</a> <ul class="list"> <li class="item"><a class="genmed" href="http://www.mx-system.com" target="_blank">mxBB Portal Project Site</a></li> <li class="item"><a class="genmed" href="http://www.mx-system.com/forum/viewtopic.php?t=9951" target="_blank">Support Topic</a></li> <li class="item"><a class="genmed" href="http://www.mx-system.com/index.php?page=4&action=file&file_id=371" target="_blank">Download</a></li> </ul> </li> <img style="display:block;" src="images/spacer.gif" alt="" width="1" height="8" border="0" /> <li class="cat"><a class="genmed" name="overview">Overview</a> <ul class="list"> <li class="item"><a class="genmed" href="main_doc_index.html#module" target="main">Module Information</a></li> <li class="item"><a class="genmed" href="main_doc_index.html#install" target="main">Installation Instructions</a></li> <li class="item"><a class="genmed" href="main_doc_index.html#themes" target="main">Additional Styles</a></li> <li class="item"><a class="genmed" href="main_doc_index.html#languages" target="main">Additional Languages</a></li> </ul> </li> </ul> </li> </td> </tr> </table> </body> </html> --- NEW FILE: main_doc_index.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>MXBB Faq & Rules :: Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link rel="stylesheet" type="text/css" href="../css/subSilver.css" /> </head> <body > <a name="top"></a> <br /> <table class="bodyline" align="center" cellpadding="8" cellspacing="0" width="98%"> <tr> <td> <a name="module"></a> <b><font size="5">MXBB Module - FAQ & RULES V. 2.0.1</font></b><br /> <br /> <br /> <span style="font-weight: bold">Description</span><br /> Adding an complete Faq and Rules system to your portal, manageable directly from ACP without touching any row of code.<br /> <br /> <strong>Features</strong><br /> Fully integrated in mxBB system.<br /> TinyMCE support.<br /> Multilanguage support.<br /> Multitemplate Support.<br /> <br /> <strong>Author</strong><br /> Selven<br /> Based on original phpbb faq system<br /> Based on original rules page mod by eviL<3<br /> <br /> <strong>Designed for</strong> <br />mxBB Portal v. 2.8.0+ <br /><a name="install"></a> <span style="font-weight: bold">Installation Instructions</span> <br /> To install this module, follow these instructions.<br /> If you encounter any problems during install, visit the <a href="http://www.mx-system.com/forum/viewtopic.php?t=9951" target="_blank" class="postlink">support topic</a>.<br /> To summarize:<br /> If installing from scratch, use Install Module function into modules setup page of ACP.<br> If upgrading, use the Upgrade Module option into modules setup page of ACP.<br> If uninstalling, use the Uninstall Module option into modules setup page of ACP.<br> The modules use the same integration of <a href="http://tinymce.moxiecode.com" target="_blank" class="postlink">TinyMCE</a> editor of portal, to make it to work simply upload tinymce folder into modules/mx_shared folder.<br /> Important Note: The files in folder language/lang_english must be writable (on UNIX chmod 666 or higher), do it also for all other language you will install!<br /> <br /> <a href="#top"> Back to Top</a> <br /> <br /><a name="themes"> <span style="font-weight: bold">Additional Styles</span> <br /> First check if your style is already done. <br /> Styles are avaible <a href="http://www.mx-system.com/index.php?page=4" target="_blank" class="postlink">Here</a>.<br /> If exists, download and install in modules/mx_faq/template folder.<br /> If not, duplicate (copy and paste) any included template file, rename to match your style, adapt using any texteditor, save and upload.<br /> Important Note: The style must be present also in your forum, and portal to work!<br /> <br /> <a href="#top"> Back to Top</a> <br /> <br /><a name="languages"> <span style="font-weight: bold">Additional Languages</span> <br /> First check if your language is already translated. <br /> Translated languages are avaible <a href="http://www.mx-system.com/index.php?page=4" target="_blank" class="postlink">Here</a>.<br /> If exists, download and install in modules/mx_faq/language folder.<br /> If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload.<br /> <br /> <a href="#top"> Back to Top</a> <br /> </td> </tr> </table> <br /> <div align="center"><span class="copyright">mxBB Faq & Rules Team</span></div> </body> </html> --- 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: Selven <sel...@us...> - 2007-06-12 05:05:10
|
Update of /cvsroot/mxbb/mx_faq/docs/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17765/images Added Files: cellpic1.gif cellpic2.jpg cellpic3.gif index.htm li_bullet_blue.gif li_folders.gif li_small_arrow_right_black.gif li_small_arrow_right_blue.gif li_small_square_black.gif mxbb-portal.gif spacer.gif Log Message: First Update --- NEW FILE: li_folders.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: spacer.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: li_small_square_black.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: li_small_arrow_right_blue.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: li_bullet_blue.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cellpic1.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cellpic3.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mxbb-portal.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: li_small_arrow_right_black.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: cellpic2.jpg --- (This appears to be a binary file; contents omitted.) --- 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: Selven <sel...@us...> - 2007-06-12 05:04:48
|
Update of /cvsroot/mxbb/mx_faq/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17695/templates Added Files: collapsible_faq.js index.htm Log Message: First Update --- NEW FILE: collapsible_faq.js --- /************************************************************* * DHTML Collapsible FAQ MOD v1.0.0 * * Copyright (C) 2004, Markus (http://www.phpmix.com) * This script is released under GPL License. * Feel free to use this script (or part of it) wherever you need * it ...but please, give credit to original author. Thank you. :-) * We will also appreciate any links you could give us. * * Enjoy! ;-) *************************************************************/ function _CFAQ() { this.lastOpened = ''; return this; } _CFAQ.prototype.IsDisplaySupported = function() { if( window.opera && !document.childNodes ) return false; if( document.getElementById || document.all ) return true; return false; } _CFAQ.prototype.getQueryVar = function(varName) { var q = window.location.search.substring(1); var v = q.split('&'); for( var i=0; i < v.length; i++ ) { var p = v[i].split('='); if( p[0] == varName ) return p[1]; } return null; } _CFAQ.prototype.getObj = function(obj) { return ( document.getElementById ? document.getElementById(obj) : ( document.all ? document.all[obj] : null ) ); } _CFAQ.prototype.displayObj = function(obj, status) { var x = this.getObj(obj); if( x && x.style ) x.style.display = status; } _CFAQ.prototype.display = function(faq_id, isLink) { if( this.IsDisplaySupported() ) { if( !isLink ) { if( this.lastOpened != '' ) { this.displayObj(this.lastOpened, 'none'); } if( this.lastOpened != faq_id ) { this.displayObj(faq_id, ''); this.lastOpened = faq_id; } else { this.lastOpened = ''; } } return false; } return true; } var CFAQ = new _CFAQ(); if( !CFAQ.IsDisplaySupported() ) { var u_faq = window.location.href; u_faq += ( u_faq.indexOf('?') > 0 ? '&' : '?' ) + 'dhtml=no'; window.location.replace(u_faq); } --- 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: Selven <sel...@us...> - 2007-06-12 05:04:48
|
Update of /cvsroot/mxbb/mx_faq In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17695 Added Files: db_install.php db_upgrade.php faq.php faq_rules.pak index.htm rules.php Log Message: First Update --- NEW FILE: rules.php --- <?php /*************************************************************************** * rules.php * ------------------- * begin : Monday, Jun 24, 2006 * copyright : (C) 2006 phpBBModders * email : ad...@ph... * * $Id: rules.php,v 1.1 2007/06/12 05:04:40 selven81 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. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // Read Block Settings // $title = $mx_block->block_info['block_title']; $b_description = $mx_block->block_info['block_desc']; // Set vars to prevent naughtiness $faq = array(); // // Include the rules settings // include( $module_root_path.'language/lang_'.$board_config['default_lang'].'/lang_rules.'.$phpEx ); // // Pull the array data from the lang pack // $j = 0; $counter = 0; $counter_2 = 0; $faq_block = array(); $faq_block_titles = array(); for($i = 0; $i < count($faq); $i++) { if( $faq[$i][0] != '--' ) { $faq_block[$j][$counter]['id'] = $counter_2; $faq_block[$j][$counter]['question'] = $faq[$i][0]; $faq_block[$j][$counter]['answer'] = $faq[$i][1]; $counter++; $counter_2++; } else { $j = ( $counter != 0 ) ? $j + 1 : 0; $faq_block_titles[$j] = $faq[$i][1]; $counter = 0; } } // // Lets build a page ... // $page_title = $l_title; $template->set_filenames(array( //+MOD: DHTML Collapsible FAQ MOD 'body' => (isset($HTTP_GET_VARS['dhtml']) && $HTTP_GET_VARS['dhtml'] == 'no' ? 'rules_body.tpl' : 'rules_dhtml.tpl')) //-MOD: DHTML Collapsible FAQ MOD ); $template->assign_vars(array( //+MOD: DHTML Collapsible FAQ MOD 'U_CFAQ_JSLIB' => $module_root_path . 'templates/collapsible_faq.js', 'L_CFAQ_NOSCRIPT' => sprintf($lang['dhtml_faq_noscript'], ('<a href="'.append_sid("faq.$phpEx?dhtml=no".(isset($HTTP_GET_VARS['mode']) ? '&mode='.$HTTP_GET_VARS['mode'] : '')).'">'), '</a>'), //-MOD: DHTML Collapsible FAQ MOD 'L_FAQ_TITLE' => $l_title, 'L_BACK_TO_TOP' => $lang['Back_to_top']) ); for($i = 0; $i < count($faq_block); $i++) { if( count($faq_block[$i]) ) { $template->assign_block_vars('faq_block', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); $template->assign_block_vars('faq_block_link', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); for($j = 0; $j < count($faq_block[$i]); $j++) { $row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars('faq_block.faq_row', array( 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'FAQ_QUESTION' => $faq_block[$i][$j]['question'], 'FAQ_ANSWER' => $faq_block[$i][$j]['answer'], 'U_FAQ_ID' => $faq_block[$i][$j]['id']) ); $template->assign_block_vars('faq_block_link.faq_row_link', array( 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'FAQ_LINK' => $faq_block[$i][$j]['question'], 'U_FAQ_LINK' => '#' . $faq_block[$i][$j]['id']) ); } } } $template->pparse('body'); ?> --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_navmenu * @version $Id: db_upgrade.php,v 1.1 2007/06/12 05:04:40 selven81 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.0.1'; $mx_module_copy = 'Original mxBB <i>Faq & Rules</i> module by <a href="http://phpms.sourceforge.net" target="_blank">Selven</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: faq.php --- <?php /*************************************************************************** * faq.php * ------------------- * begin : Sunday, Jul 8, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: faq.php,v 1.1 2007/06/12 05:04:40 selven81 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. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } // // Read Block Settings // $title = $mx_block->block_info['block_title']; $b_description = $mx_block->block_info['block_desc']; $page1 = intval($HTTP_GET_VARS['page']); if ( $page1 > 0 ) { $page = $page1; } else { $page = 1; } // // Load common language // include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_faq_editor.' . $phpEx); // Set vars to prevent naughtiness $faq = array(); // // Load the appropriate faq file // if( isset($HTTP_GET_VARS['mode']) ) { switch( $HTTP_GET_VARS['mode'] ) { case 'forum': $lang_file = 'lang_faq'; $l_title = $lang['FAQ']; break; case 'bbcode': $lang_file = 'lang_bbcode'; $l_title = $lang['BBCode_guide']; break; case 'portal': $lang_file = 'lang_portal_faq'; $l_title = $lang['Mx_Portal_faq']; break; case 'module': $lang_file = 'lang_faq_module'; $l_title = $lang['Mx_Module_faq']; break; default: $lang_file = 'lang_portal_faq'; $l_title = $lang['Mx_Portal_faq']; break; } } else { $lang_file = 'lang_portal_faq'; $l_title = $lang['Mx_Portal_faq']; } if($HTTP_GET_VARS['mode']== 'forum') { include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx); } elseif($HTTP_GET_VARS['mode']== 'bbcode') { include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx); } elseif($HTTP_GET_VARS['mode']== 'module') { include($module_root_path . 'language/' . $lang_file . '.' . $phpEx); } else { include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx); } // // Pull the array data from the lang pack // $j = 0; $counter = 0; $counter_2 = 0; $faq_block = array(); $faq_block_titles = array(); for($i = 0; $i < count($faq); $i++) { if( $faq[$i][0] != '--' ) { $faq_block[$j][$counter]['id'] = $counter_2; $faq_block[$j][$counter]['question'] = $faq[$i][0]; $faq_block[$j][$counter]['answer'] = $faq[$i][1]; $counter++; $counter_2++; } else { $j = ( $counter != 0 ) ? $j + 1 : 0; $faq_block_titles[$j] = $faq[$i][1]; $counter = 0; } } $template->set_filenames(array( //+MOD: DHTML Collapsible FAQ MOD 'body' => (isset($HTTP_GET_VARS['dhtml']) && $HTTP_GET_VARS['dhtml'] == 'no' ? 'faq_body.tpl' : 'faq_dhtml.tpl')) //-MOD: DHTML Collapsible FAQ MOD ); $template->assign_vars(array( 'U_PORTAL_FAQ' => $mx_root_path ."index.$phpEx?page=$page&mode=portal", 'L_PORTAL_FAQ' => $lang['Mx_Portal_faq'], 'U_MODULE_FAQ' => $mx_root_path ."index.$phpEx?page=$page&mode=module", 'L_MODULE_FAQ' => $lang['Mx_Module_faq'], 'U_FORUM_FAQ' => $mx_root_path ."index.$phpEx?page=$page&mode=forum", 'L_FORUM_FAQ' => $lang['Forum_faq'], 'U_BBCODE_FAQ' => $mx_root_path ."index.$phpEx?page=$page&mode=bbcode", 'L_BBCODE_FAQ' => $lang['BBcode_faq'], //+MOD: DHTML Collapsible FAQ MOD 'U_CFAQ_JSLIB' => $module_root_path . 'templates/collapsible_faq.js', 'L_CFAQ_NOSCRIPT' => sprintf($lang['dhtml_faq_noscript'], ('<a href="'.append_sid("faq.$phpEx?dhtml=no".(isset($HTTP_GET_VARS['mode']) ? '&mode='.$HTTP_GET_VARS['mode'] : '')).'">'), '</a>'), //-MOD: DHTML Collapsible FAQ MOD 'L_FAQ_TITLE' => $l_title, 'L_BACK_TO_TOP' => $lang['Back_to_top']) ); for($i = 0; $i < count($faq_block); $i++) { if( count($faq_block[$i]) ) { $template->assign_block_vars('faq_block', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); $template->assign_block_vars('faq_block_link', array( 'BLOCK_TITLE' => $faq_block_titles[$i]) ); for($j = 0; $j < count($faq_block[$i]); $j++) { $row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2']; $template->assign_block_vars('faq_block.faq_row', array( 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'FAQ_QUESTION' => $faq_block[$i][$j]['question'], 'FAQ_ANSWER' => $faq_block[$i][$j]['answer'], 'U_FAQ_ID' => $faq_block[$i][$j]['id']) ); $template->assign_block_vars('faq_block_link.faq_row_link', array( 'ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'FAQ_LINK' => $faq_block[$i][$j]['question'], 'U_FAQ_LINK' => '#' . $faq_block[$i][$j]['id']) ); } } } $template->pparse('body'); ?> --- NEW FILE: db_install.php --- <?php /** * * @package mxBB Portal Module - mx_navmenu * @version $Id: db_install.php,v 1.1 2007/06/12 05:04:40 selven81 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.0.1'; $mx_module_copy = 'Original mxBB <i>Faq & Rules</i> module by <a href="http://phpms.sourceforge.net" target="_blank">Selven</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: faq_rules.pak --- module=+:52=+:Mx Faq and Rules=+:modules/mx_faq/=+:Faq and Rules Manager=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:52=+:54=+:MX Faq=+:Faq page=+:faq.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - MX Faq=+:Demo block=+:54=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:52=+:55=+:Mx Rules=+:Rules page=+:rules.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Mx Rules=+:Demo block=+:55=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- 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> |