[Phpbb] vraagjes

Voor discussies rondom phpBB2. phpBB2 wordt niet meer ondersteund en deze berichten kunnen wellicht gedateerd zijn.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 20 mar 2004, 15:32

Zo duidelijker?

Code: Selecteer alles

#################################################################
## Title: Menuless overall_header on jouwpagina
## Version: 1.00
## Author: 993ti <gtti76@hotmail.com> - http://www.twenteracingscene.tk
## Description: This simple mod gets rid of the menu in the overall_header on the portal page and adds the links in the navigation block on the portal.
##              The menu still shows up on the other pages for navigation.
##  
##
## Installation Level: 	Easy
## Installation Time: 	10 Minutes
##
## Files To Edit: 2
##	jouwpagina.php
##	
#################################################################
#
#
#
#-----[ OPEN ]------------------------------------------
#
jouwpagina.php

#
#-----[ FIND ]-----------------------------------
#

include($phpbb_root_path . 'includes/page_header.'.$phpEx);


#
#-----[ REPLACE WITH ]---------------------------
#

include($phpbb_root_path . 'includes/page_header_lite.'.$phpEx);



#
#-----[ SAVE/UPLOAD ALL FILES ]------------------------------------------
#
#
#-----[ HOW TO ]------------------------------------------
#
# CREATE YOUR OWN OVERALL_HEADER WITHOUT MENU
# 
# I added this as there are so many templates around and i can't edit them all.
# Here it goes:
# 
#
#-----[ OPEN ]------------------------------------------
#
includes/
#
#-----[ ACTION ]------------------------------------------
#
Create a new folder (doesn't matter what name you give it) and COPY includes/page_header.php to that folder.
Open the folder you just created and RENAME page_header.php to page_header_lite.php.
PLACE page_header_lite.php back in the includes folder and OPEN it.
#
#-----[ FIND ]------------------------------------------
#
//
// Parse and show the overall header.
//
$template->set_filenames(array(
	'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);

#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Parse and show the overall header.
//
$template->set_filenames(array(
	'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header_lite.tpl' : 'simple_header.tpl')
);

#
#-----[ OPEN ]------------------------------------------
#
templates/XXXXX/

#
#-----[ ACTION ]------------------------------------------
#
Create a new folder (doesn't matter what name you give it) and COPY overall_header.tpl to that folder.
Open the folder you just created and RENAME overall_header.tpl to overall_header_lite.tpl.
PLACE overall_header_lite.tpl back in your templates/XXXXX/ folder and OPEN it.

#
#-----[ FIND AND DELETE ]------------------------------------------
#
<tr> 
						<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></span><span class="mainmenu">&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; 
						<!-- BEGIN switch_user_logged_out -->
						&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span>&nbsp;
						<!-- END switch_user_logged_out -->
						</td>
					</tr>
					<tr>
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
					</tr>

#
#-----[ FOLLOW NORMAL INSTRUCTIONS ]------------------------------------------
#
#
#-----[ SAVE/UPLOAD ALL FILES ]------------------------------------------
##
##
##	
##
#--------------------------------------------------------------------
#
# EoM
Afbeelding

Gesloten