EasySite

Frågor kring MODdar (modifikationer) för phpBB 2.0.x.

Moderatorer: Moderatorgrupp, Supportgrupp

Granit
Aktiv medlem
Aktiv medlem
Inlägg: 67
Blev medlem: 2006-09-17 19:39
Svar: 0

EasySite

Inlägg av Granit »

Är det någon som använder den moden?
Typ som en enkel sida istället för portalen om jag fattat det rätt, men jag tänkte om någon använder den och är nöjd med den.

Skulle vilja veta ifall någon vet om man kan välja att köra denna en stund och sedan portalen eller hur det funkar?

########################################################
## MOD Title: EasySite (The phpBB Site MOD)
## MOD Version: 1.3.0
## MOD Author: Mac (Y.C. LIN) < ycl6@users.sourceforge.net > http://macphpbbmod.sourceforge.net/
##
## MOD Description: EasySite is a simple website building tool, not entirely like a Portal,
## but a proper website with standard features such as About, News, Contact,
## Link To Me, Site Privacy and Terms Pages.
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: 5
## common.php
## includes/constants.php
## includes/page_tail.php
## templates/subSilver/overall_footer.tpl
## templates/subSilver/simple_footer.tpl
##
## Included Files: 50
## db_update.php
## db_update_111-130.php
## about.php
## contact.php
## page.php
## site.css
## site.php
## sitepanel_frame.php
## includes/site_footer.php
## includes/site_header.php
## includes/sitepanel.php
## language/lang_english/lang_EasySite.php
## language/lang_chinese_traditional_taiwan/lang_EasySite.php
## site_admin/admin_addpage.php
## site_admin/admin_addsearch.php
## site_admin/admin_banners.php
## site_admin/admin_linktome.php
## site_admin/admin_news.php
## site_admin/admin_site.php
## site_admin/index.php
## site_admin/page_footer_admin.php
## site_admin/page_header_admin.php
## site_admin/pagestart.php
## templates/subSilver/site_admin/addpage_edit_body.tpl
## templates/subSilver/site_admin/addpage_list_body.tpl
## templates/subSilver/site_admin/addsearch_edit_body.tpl
## templates/subSilver/site_admin/addsearch_list_body.tpl
## templates/subSilver/site_admin/admin_site.tpl
## templates/subSilver/site_admin/banners_edit_body.tpl
## templates/subSilver/site_admin/banners_list_body.tpl
## templates/subSilver/site_admin/index_body.tpl
## templates/subSilver/site_admin/index_frameset.tpl
## templates/subSilver/site_admin/index_navigate.tpl
## templates/subSilver/site_admin/linktome_edit_body.tpl
## templates/subSilver/site_admin/linktome_list_body.tpl
## templates/subSilver/site_admin/news_edit_body.tpl
## templates/subSilver/site_admin/news_list_body.tpl
## templates/subSilver/site_admin/page_footer.tpl
## templates/subSilver/site_admin/page_header.tpl
## templates/subSilver/about_body.tpl
## templates/subSilver/contact_body.tpl
## templates/subSilver/link_to_me.tpl
## templates/subSilver/page_body.tpl
## templates/subSilver/privacy_body.tpl
## templates/subSilver/site_body.tpl
## templates/subSilver/site_footer.tpl
## templates/subSilver/site_header.tpl
## templates/subSilver/sitepanel_body.tpl
## templates/subSilver/sitepanel_frame_body.tpl
## templates/subSilver/terms_body.tpl
##
## Included Images: 17
## images/banners/*.gif
## images/news/*.gif
## templates/subSilver/images/logo.gif
## templates/subSilver/images/logo_med.gif
##
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## MOD screenshots and Tips included in EXTRA folder
##
## Installation:
## 1. Run db_update.php
## 2. Delete db_update.php
## 3. Copy all files to their corresponding location
## 4. Make the necessary changes described below
##
##############################################################
## MOD History:
##
## 2004-02-08 - Version 1.0.0
## - Initial Release
##
## 2004-02-11 - Version 1.1.0
## - Fix admin panel ICQ and banner name problem
## - Add BBCode posting control to admin news panel
## - Make some changes to the language file.
## - Tips & Screenshots are updated
##
## 2004-02-17 - Version 1.1.1
## - Remove un-necessary info inside site_header.tpl
## - Fix ICQ problem inside contact.php
## - Fix ACP News BBCode FAQ link problem
## - Fix some language errors
## - Added more fields for contact details
## - Added online user lists
## - Added pm number and new posts number
## - Added Link-To-Me site description
## - Added site ACP link to forum footer
## - Added site footer info to forum footer
## - Added News display order config
## - Added News ACP pagination
##
## 2004-03-06 - Version 1.3.0
## - Fix a CSS font size issue
## - Fix CSS font issue in all footer
## - Fix new post count on site.php
## - Update Link-To-Me order, now Sort by name
## - Update some codes to use $site_config['xxx'], more efficient
## - Fix/Update EasySite Usage Terms (see my website for more info)
## - Added WhoIsOnline Config feature
## - Added Addpage feature, allow external webpages to display inside frame
## - Added Search feature, configurable from ACP
## - Added Weather feature (please read tips_en.txt for this add-on)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
common.php

#
#-----[ FIND ]------------------------------------------
#
$board_config = array();

#
#-----[ AFTER, ADD ]------------------------------------------
#
// EasySite MOD
$site_config = array();

#
#-----[ FIND ]------------------------------------------
#
if (file_exists('install') || file_exists('contrib'))

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// EasySite MOD
$sql = "SELECT *
FROM " . SITE_CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query site config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
$site_config[$row['config_name']] = $row['config_value'];
}

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]------------------------------------------
#
define('PAGE_GROUPCP', -11);

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('PAGE_SITE', -100);
define('PAGE_ABOUT', -101);
define('PAGE_CONTACT', -102);
define('PAGE_PAGE', -103);
define('PAGE_SITEPANEL', -104);

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// EasySite MOD
define('SITE_CONFIG_TABLE', $table_prefix.'site_config');
define('SITE_BANNER_TABLE', $table_prefix.'site_banner');
define('SITE_NEWS_TABLE', $table_prefix.'site_news');
define('SITE_LINKTOME_TABLE', $table_prefix.'site_linktome');
define('SITE_ADDPAGE_TABLE', $table_prefix.'site_addpage');
define('SITE_SEARCH_TABLE', $table_prefix.'site_search');

#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php

#
#-----[ FIND ]------------------------------------------
#
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}

#
#-----[ AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_EasySite.' . $phpEx);

$copyright_owner = ( $site_config['copyright_owner'] ) ? $site_config['copyright_owner'] : '';
$copyright_text = ( $site_config['copyright_text'] ) ? $site_config['copyright_text'] : '';

#
#-----[ FIND ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

#
#-----[ REPLACE WITH ]------------------------------------------
#
// Only True Admin can access Site Admin Panel
if ( $userdata['user_id'] == 2 )
{
$admin_link = '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a> - <a href="site_admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_site_panel'] . '</a><br /><br />';
}
else if ( $userdata['user_level'] == ADMIN )
{
$admin_link = '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />';
}
else { $admin_link = ""; }

#
#-----[ FIND ]------------------------------------------
#
'PHPBB_VERSION' => '2' . $board_config['version'],
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '',
'ADMIN_LINK' => $admin_link)
);

#
#-----[ REPLACE WITH ]------------------------------------------
#
'U_TERMS' => append_sid("about.$phpEx?mode=terms"),
'U_PRICACY' => append_sid("about.$phpEx?mode=privacy"),
'U_CONTACT' => append_sid("contact.$phpEx"),

'L_TERMS' => $lang['Terms'],
'L_PRIVACY' => $lang['Privacy'],
'L_OWNED' => $lang['Owned'],

'COPYRIGHT_OWNER' => $copyright_owner,
'COPYRIGHT_TEXT' => $copyright_text,
'EASYSITE_VERSION' => $site_config['easysite_version'],
'PHPBB_VERSION' => '2' . $board_config['version'],
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '',
'ADMIN_LINK' => $admin_link)
);

if ( $copyright_owner != '' )
{
$template->assign_block_vars('switch_copyright_owner', array() );
}

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_footer.tpl

#
#-----[ FIND ]------------------------------------------
#
<!--
We request you retain the full copyright notice below including the link to http://www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
reason) retain the full copyright we request you at least leave in place the
Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to http://www.phpbb.com. If you refuse
to include even this then support on our forums may be affected.

The phpBB Group : 2002
// -->
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001, 2002 phpBB Group<br />{TRANSLATION_INFO}</span></div>
</td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<!--
Please, I expect everyone uses this MOD to NOT remove the copyright notice on EasySite
that links to http://macphpbbmod.sourceforge.net/.
i.e. Website Powered by EasySite (The phpBB Site MOD) 1.x.x

Please do keep the EasySite and the phpBB declaration.
If you don't, you are refusing support from me and my support site.
I hope you can respect all open source developers by follow these simple instructions. Thank you

EasySite Author, YC Lin, 2004
// -->
Website Powered by <a href="http://macphpbbmod.sourceforge.net/" target="_blank" class="copyright">EasySite (The phpBB Site MOD)</a> {EASYSITE_VERSION}</div>
<div align="center">
<!--
We request you retain the full copyright notice below including the link to http://www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
reason) retain the full copyright we request you at least leave in place the
Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to http://www.phpbb.com. If you refuse
to include even this then support on our forums may be affected.

The phpBB Group : 2002
// -->
Forum Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001, 2002 phpBB Group<br />{TRANSLATION_INFO}</div>
<div align="center">{COPYRIGHT_TEXT}</div>

<!-- BEGIN switch_copyright_owner -->
<div align="center">{L_OWNED}: <a href="{U_CONTACT}" class="copyright">{COPYRIGHT_OWNER}</a></div>
<!-- END switch_copyright_owner -->

<br />
<div align="center"><a href="{U_TERMS}" class="copyright">{L_TERMS}</a> - <a href="{U_PRICACY}" class="copyright">{L_PRIVACY}</a></div>
</span></td>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/simple_footer.tpl

#
#-----[ FIND ]------------------------------------------
#
<!--
We request you retain the full copyright notice below including the link to http://www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
reason) retain the full copyright we request you at least leave in place the
Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to http://www.phpbb.com. If you refuse
to include even this then support on our forums may be affected.

The phpBB Group : 2002
// -->
Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001,2002 phpBB Group</span></div>
</td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<!--
Please, I expect everyone uses this MOD to NOT remove the copyright notice on EasySite
that links to http://macphpbbmod.sourceforge.net/.
i.e. Website Powered by EasySite (The phpBB Site MOD) 1.x.x

Please do keep the EasySite and the phpBB declaration.
If you don't, you are refusing support from me and my support site.
I hope you can respect all open source developers by follow these simple instructions. Thank you

EasySite Author, YC Lin, 2004
// -->
Website Powered by <a href="http://macphpbbmod.sourceforge.net/" target="_blank" class="copyright">EasySite (The phpBB Site MOD)</a> {EASYSITE_VERSION}</div>
<div align="center">
<!--
We request you retain the full copyright notice below including the link to http://www.phpbb.com.
This not only gives respect to the large amount of time given freely by the developers
but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
reason) retain the full copyright we request you at least leave in place the
Powered by phpBB {PHPBB_VERSION} line, with phpBB linked to http://www.phpbb.com. If you refuse
to include even this then support on our forums may be affected.

The phpBB Group : 2002
// -->
Forum Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> {PHPBB_VERSION} &copy; 2001,2002 phpBB Group</div>
<div align="center">{COPYRIGHT_TEXT}</div>

<!-- BEGIN switch_copyright_owner -->
<div align="center">{L_OWNED}: <a href="{U_CONTACT}" class="copyright">{COPYRIGHT_OWNER}</a></div>
<!-- END switch_copyright_owner -->

<br />
<div align="center"><a href="{U_TERMS}" class="copyright">{L_TERMS}</a> - <a href="{U_PRICACY}" class="copyright">{L_PRIVACY}</a></div>
</span></td>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

# EoM

Vilka är online

Användare som besöker denna kategori: 0 och 0 gäster