phpBB- Redirect to homepage

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

phpBB- Redirect to homepage

Post by g3ckO »

It is possible to add extra menu on top of the phpBB page to redirect to my home page.

If possible, HOW?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

edit the overall_header.tpl file.
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

can you give me little more info on how to do that.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

a snippet taken from this site's template file:

Code: Select all

<td><a href="&#123;U_PORTAL&#125;"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="&#123;SITENAME&#125;" title="&#123;SITENAME&#125;" vspace="1" /></a></td>
			<td align="center" width="100%" valign="middle">
			<span class="gen"><strong>&#123;SITE_DESCRIPTION&#125;</strong></span> 
			<table cellspacing="0" cellpadding="2" border="0">
<tr> 
	<td align="center" valign="top" nowrap="nowrap">
	<span class="mainmenu">&nbsp;
	<a href="&#123;U_PORTAL&#125;" class="mainmenu">
		<img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="&#123;L_HOME&#125;" hspace="3" />
		&#123;L_HOME&#125;
	</a>
	
	&nbsp;&nbsp;&nbsp;
	
	<a href="&#123;U_FAQ&#125;" class="mainmenu">
		<img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="&#123;L_FAQ&#125;" hspace="3" />
		&#123;L_FAQ&#125;
	</a>
you'll need to define the template values used, obviously..
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

TQ feyd.
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

Still cannot do it.

More help need.

I want to make a link at the top of the page that will redirect to my first (main) page of my portal.

<a href="main.php">HOME</a>

Where exactly should I put this code. Please give some explaination.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you can just put in normal html if you like..
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

feyd, please give some explaination.

How to view it at the top at the phpbb forum page to make sure the user can go back to my portal page.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

swap {U_PORTAL} for your main.php or whatever
swap {L_HOME} for "HOME" (without quotes)

everything else should be already parsed by phpBB..
Post Reply