Pagina 1 van 1

Ezportal installeren.

Geplaatst: 26 nov 2003, 16:35
door Desptune
ik heb inmiddels een forum (veel hulp gevraagd op dit forum ma toch gelukt).
en wilde voor dat leden komen een portal installeren en ik heb gehoord dat ezportal met de stijl die ji wilt meegaat ik wil namelijk subvereor.

heb ezportal inmiddels gedownload.
kan het kloppen dat het helemaal niet zoveel commando's zijn ? maar ja dat kijk ik bij de eerste commando: open: login.php en dan zoek:

Code: Selecteer alles

redirect(append_sid("index.$phpEx", true));
maar daar zijn er 3 in login.php dus ik moet er 3 vervangen met:

Code: Selecteer alles

redirect(append_sid("portal.$phpEx", true));
of hoef ik er maar eentje te vervangen ? zo ja welke ?

Geplaatst: 26 nov 2003, 16:51
door WebSiteNet
Als je verder kijkt in het install bestand zie je dat het stukje er 3 keer instaat. dat is met meer dingen in het login.php bestand

Geplaatst: 27 nov 2003, 15:38
door Desptune
oke bedankt :thumb:

maar heb nog een vraag:

ik wil graag een portal met navigatie, poll, statistieken, wie is online, een welkom, nieuwste berichten, om te inloggen en links.
zit dit er allemaal al bij of moet ik weer iets apart downloaden voor die dingen?

Geplaatst: 27 nov 2003, 15:48
door Podium4
links en statistieken zitten er nog niet bij.... de rest standaard al wel...

Links: http://www.phpbbhacks.com/viewhack.php?id=1134

voor statistieken is het vast ook wel mogelijk, zul je ook effe moeten zoeken... staat in ieder geval niet zo 'n blok van als bij de links..

Geplaatst: 27 nov 2003, 15:53
door Desptune
onder aan die links van jouw staat:

As such, you need both the Links Hack and ezPortal installed.

dus dan moet ik de links hack ook nog installeren en de link die jij me gaf, of alleen de link die jij me gaf ?
haha snap je het nog :D :wink:

Geplaatst: 27 nov 2003, 18:30
door Podium4
lijkt me toch duidelijk.... je moet zowel de portal als links hack hebben geinstalleerd dus dan moet dat ook.... :wink:

Geplaatst: 27 nov 2003, 18:49
door Desptune
oke dan kan ik van het weekend is mooi aan de slag :thumb:
(als ik niet meer probleempjes tegenkom :wink: )

Geplaatst: 28 nov 2003, 18:26
door Desptune
het is een franse mod :wink: is er misschien ook nog een engelse of eventueel een nederlandse

Geplaatst: 28 nov 2003, 22:11
door Podium4
even het belangrijkste stukje:
#
#-----[ OPEN : portal.php ]------------------------------------------
#

#
#-----[ ZOEK ]------------------------------------------
#

// End session management
//

#
#-----[ ACHTER TOEVOEGEN ]------------------------------------------
#
# Opmerking : de LIMIT 0,5, geeft aan de 5 populairste... dit kun je dus veranderen
#

// MOD : de x populairste links
//

$sql = 'SELECT link_url, link_title, link_hits
FROM phpbb_links
WHERE (link_hits > 0)
ORDER BY link_hits DESC
LIMIT 0,5';
$result = mysql_query($sql);
if ( !($result = mysql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Impossible de trouver les liens', '', __LINE__, __FILE__, $sql);
}

$nb = mysql_num_rows($result); /* On recupère le nombre d'enregistrements */

while ($val = mysql_fetch_array($result)){ /* On parcoure les résultats de la requête */
$name = $val["link_title"];
$liens = $val["link_url"];
$count = $val["link_hits"];

$template->assign_block_vars('linksrow', array(
'LIENS' => $name,
'U_LIENS' => $liens,
'COUNT' => $count
)
);
}

// END MOD

#
#-----[ SAVE/UPLOAD portal.php ]------------------------------------------
#

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

#
#-----[ ZOEK ]------------------------------------------
#

<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS}<br />{NEWEST_USER}<br /><br/>{TOTAL_POSTS} {TOTAL_TOPICS}<br />&nbsp;</span></td>
</tr>
</table>

<br />

#
#-----[ ACHTER TOEVOEGEN ]------------------------------------------
#

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th class="catHead" height="25"><span class="genmed"><b>De 5 populairste links</b></span></th>
</tr>
<tr>
<td class="row1" align="left"><span class="genmed" style="line-height: 150%">
<!-- BEGIN linksrow -->
<a target="_blank" href="{linksrow.U_LIENS}">{linksrow.LIENS}</a> :: {linksrow.COUNT} clicks<br />
<!-- END linksrow -->
</span></td>
</tr>
</table>
<br />

#
#-----[ SAVE/UPLOAD templates/subSilver/portal_body.tpl ]------------------------------------------
#
# EoM

Geplaatst: 29 nov 2003, 09:16
door Desptune
en de error is er :D haha

Code: Selecteer alles

Parse error: parse error in /home/www/boyroy/phpBB2/includes/page_header.php on line 396
kijk zelf maar http://boyroy.50free.org/phpBB2/index.php

en portal.php ziet er zo uit http://boyroy.50free.org/phpBB2/portal.php

Geplaatst: 29 nov 2003, 09:20
door Desptune
zo zien de laatste regels eruit:

Code: Selecteer alles

'U_LOGIN_LOGOUT' => append_sid($u_login_logout),
	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx// ezPortal
	'U_PORTAL' => append_sid('portal.'.$phpEx),
	'L_HOME' => $lang['Home'],),

	'S_CONTENT_DIRECTION' => $lang['DIRECTION'],
	'S_CONTENT_ENCODING' => $lang['ENCODING'],
	'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
	'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
	'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone),
	'S_LOGIN_ACTION' => append_sid('login.'.$phpEx),

	'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
	'T_BODY_BACKGROUND' => $theme['body_background'],
	'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],
	'T_BODY_TEXT' => '#'.$theme['body_text'],
	'T_BODY_LINK' => '#'.$theme['body_link'],
	'T_BODY_VLINK' => '#'.$theme['body_vlink'],
	'T_BODY_ALINK' => '#'.$theme['body_alink'],
	'T_BODY_HLINK' => '#'.$theme['body_hlink'],
	'T_TR_COLOR1' => '#'.$theme['tr_color1'],
	'T_TR_COLOR2' => '#'.$theme['tr_color2'],
	'T_TR_COLOR3' => '#'.$theme['tr_color3'],
	'T_TR_CLASS1' => $theme['tr_class1'],
	'T_TR_CLASS2' => $theme['tr_class2'],
	'T_TR_CLASS3' => $theme['tr_class3'],
	'T_TH_COLOR1' => '#'.$theme['th_color1'],
	'T_TH_COLOR2' => '#'.$theme['th_color2'],
	'T_TH_COLOR3' => '#'.$theme['th_color3'],
	'T_TH_CLASS1' => $theme['th_class1'],
	'T_TH_CLASS2' => $theme['th_class2'],
	'T_TH_CLASS3' => $theme['th_class3'],
	'T_TD_COLOR1' => '#'.$theme['td_color1'],
	'T_TD_COLOR2' => '#'.$theme['td_color2'],
	'T_TD_COLOR3' => '#'.$theme['td_color3'],
	'T_TD_CLASS1' => $theme['td_class1'],
	'T_TD_CLASS2' => $theme['td_class2'],
	'T_TD_CLASS3' => $theme['td_class3'],
	'T_FONTFACE1' => $theme['fontface1'],
	'T_FONTFACE2' => $theme['fontface2'],
	'T_FONTFACE3' => $theme['fontface3'],
	'T_FONTSIZE1' => $theme['fontsize1'],
	'T_FONTSIZE2' => $theme['fontsize2'],
	'T_FONTSIZE3' => $theme['fontsize3'],
	'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],
	'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],
	'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
	'T_SPAN_CLASS1' => $theme['span_class1'],
	'T_SPAN_CLASS2' => $theme['span_class2'],
	'T_SPAN_CLASS3' => $theme['span_class3'],

	'NAV_LINKS' => $nav_links_html)
);

//
// Login box?
//
if ( !$userdata['session_logged_in'] )
{
	$template->assign_block_vars('switch_user_logged_out', array());
}
else
{
	$template->assign_block_vars('switch_user_logged_in', array());

	if ( !empty($userdata['user_popup_pm']) )
	{
		$template->assign_block_vars('switch_enable_pm_popup', array());
	}
}

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

?>

Geplaatst: 29 nov 2003, 12:07
door Desptune
ow sorry jongens !! ben er zelf al achtergekomen! :thumb:

nog niet alles klopt helemaal (mis nog wat teksten enzo)
en moet ook nog van portal.php startpag. maken, ff kijken hoe ik dat ga doen.

ik heb nog wel 1 vraag: de nieuwste of recenste berichten staan er niet? dat zou wel al moeten toch?