ezPortaalin asennus phpBB 2.0.X

MODien asennus ja omat muokkaukset.
Avatar
Admin
Aktiivinen jäsen
Aktiivinen jäsen
Viestit:721
Liittynyt:13 Marras 2005, 15:45
ezPortaalin asennus phpBB 2.0.X

Viesti Kirjoittaja Admin » 29 Marras 2005, 00:49

##############################################################
## MOD Otsikko: ezPortal phpBB 2.0.x:lle
## MOD Omistaja/kehittäjä: Smartor < smartor_xp@hotmail.com >(Hoang Ngoc Tu) http://smartor.is-root.com
## MOD Kuvaus: Tämä Mod selittää miten luot portaalin phpBB2:een niin yksinkertaisesti kuin mahdollista.
## MOD Versio: 2.1.8c
##
## Asennustaso: helppo
## Asennusaika: 10 min
## Muokattavat tiedostot: login.php
## includes/page_header.php
## templates/subSilver/overall_header.tpl
## language/lang_english/lang_main.php
## Lisättävät tiedostot: phpbb_root/portal.php
## phpbb_root/fetchposts.php
## phpbb_root/templates/subSilver/portal_body.tpl
## phpbb_root/images/smartorsite_logo.gif
##
##############################################################
##
## Copyright © Smartor, 2002-2004
##
## Palautetta modista voi antaa: http://smartor.is-root.com
##
##############################################################
##
## Demo/Keskustelufoorumi: http://smartor.is-root.com
##
## ezPortal FAQ: http://smartor.is-root.com/viewtopic.php?t=14355
##
## Oppaita...
## - Miten ezPortal toimii
## - Miten palikka siirretään
## - Miten lisätään palikka Keskikolumniin
##...löytyy http://www.smartor.oftheweek.de/dload.p ... y&cat_id=6
##
##############################################################
## Ennenkuin alat asentaa tätä Modia - OTA VARMUUSKOPIOT!!
##############################################################

Jotta seuraavana tuleva olisi luettavampaa, tutustu eri toimintoihin Täällä. (Opas Modin asentamiseen)
#
#-----[ COPY ]------------------------------------------
#
# copioi portal_body.tpl kaikkiin asennettuihin templateihin.
kopioi phpbb_root/portal.php --> portal.php
kopioi phpbb_root/fetchposts.php --> fetchposts.php
kopioi phpbb_root/templates/subSilver/portal_body.tpl --> templates/subSilver/portal_body.tpl
kopioi phpbb_root/images/smartorsite_logo.gif --> images/smartorsite_logo.gif
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "portal.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("portal.$phpEx", true));
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
// ezPortal
'U_PORTAL' => append_sid('portal.'.$phpEx),
'L_HOME' => $lang['Home'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td><a href="{U_PORTAL}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
#
#-----[ FIND ]------------------------------------------
#
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;
#
#-----[ IN-LINE FIND ]------------------------------------------
#
&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
&nbsp;<a href="{U_PORTAL}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{L_HOME}" hspace="3" />{L_HOME}</a>&nbsp;
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#

//
// That's all, Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// Smartor's ezPortal
//
$lang['Home'] = 'Home';
$lang['Board_navigation'] = 'Board Navigation';
$lang['Statistics'] = 'Statistics';
$lang['total_topics'] = " within <b>%s</b> topics"; // added in v2.1.6
$lang['Comments'] = 'Comments';
$lang['Read_Full'] = 'Read Full';
$lang['View_comments'] = 'View Comments';
$lang['Post_your_comment'] = 'Post your comment';
$lang['Welcome'] = 'Welcome';
$lang['Register_new_account'] = 'Don\'t have an account yet?<br />You can %sregister%s for FREE';
$lang['Remember_me'] = 'Remember me';
$lang['View_complete_list'] = 'View complete list';
$lang['Poll'] = 'Poll';
$lang['Login_to_vote'] = 'You must login to vote';
$lang['Vote'] = 'Vote';
$lang['No_poll'] = 'No poll at the moment';
#
#-----[ LISÄOHJEITA ]------------------------------------------
#
MITEN SAAT SIVUSTOSI AUKEAMAAN TIEDOSTOON portal.php index.php:n sijaan ?
Onnistuu seuraavilla tavoilla:

o Tapa 1: (Apache palvelimelle)
tee/muokkaa .htaccess -tiedostoa in phpBB:n juuressa
Lisää/muokkaa tämä rivi:

DirectoryIndex index.html index.htm portal.php index.php


o Tapa 2: {käytä META -tagia - ellet voi käyttää tapaa 1)
Tee tiedosto index.html phpBB:n juureen (ilman #)

<html>
<head>
<title>Redirecting...</title>
<meta http-equiv="refresh" content="0;url=portal.php">
</head>
<body>
</body>
</html>


Jos phpBB:si on asennettu alidomainiin (esim http://jotakin.com/forum) tee index.html -tiedosto ja muuta rivi neljä seuraavanlaiseksi:

<meta http-equiv="refresh" content="0;url=forum/portal.php">

#
#-----[ LISÄOHJEITA ]------------------------------------------
#
# ezPortalin CONFIGUROINTI. Voit säätää portaalia mieleiseksesi alla olevilla ohjeilla. Kokeile...
#
# OPEN: portal.php
#
# FIND:
//
// Set configuration for ezPortal
//

// Welcome Text: Huomaa, tämä on PHP -tiedosto, joten käytä tätä: \' tämän: ' sijaan, ja tätä \\ tämän \ sijaan. (HTML sallittu)
$CFG['welcome_text'] = 'Welcome to <b>My Community</b><br /><br />Thanks for using ezPortal,<br /><br />Have a good time! ^_^';


// Number of news on portal
$CFG['number_of_news'] = '5';

// Length of news
$CFG['news_length'] = '200';

// News Forum ID: separate by comma for multi-forums, eg. '1,2,5'
$CFG['news_forum'] = '1';

// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14'
$CFG['poll_forum'] = '1';

//
// END configuration
// --------------------------------------------------------
#
# Muuta yllä olevia arvoja portal.php:ssä
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

Avatar
Admin
Aktiivinen jäsen
Aktiivinen jäsen
Viestit:721
Liittynyt:13 Marras 2005, 15:45

Viesti Kirjoittaja Admin » 29 Marras 2005, 00:52

Ai niin, portaalin saat ladattua täältä.

Ja vielä HUOM!
phpBB.com kirjoitti:NOTE: The phpBB Group does not give any support for portals and modules listed above. If you have any problems running them, please do not post in our Support Forums, but contact the developer of the Module or use the Support Forums of the Portal software.
Thank you.

Viestiketju Lukittu

Paikallaolijat

Käyttäjiä lukemassa tätä aluetta: Ei rekisteröityneitä käyttäjiä ja 120 vierailijaa