Page 10 of 12

Re: Add Homepage link in header

Posted: Thu Oct 29, 2009 3:58 pm
by RHitman
Hello
I would like to install this mod and I downloaded it but don't see any install instructions or how to.
Is there a file I am missing a readme or something.
Any help please.

Ruben M.

Re: Add Homepage link in header

Posted: Thu Oct 29, 2009 5:57 pm
by ChriZathens
Extract the zip you downloaded. Inside the folder you'll get after extraction you'll see a file named install.xml (or install_mod.xml - don't remember now...)
Open this xml file with your favorite internet browser, it contains the instructions you need.
Your other alternative is to install Automod and let it install the mod automatically for you.
I personally prefer the manual method to install mods, but that's just me... ;)

error message re: Add Homepage

Posted: Sun Nov 15, 2009 6:39 pm
by majorshi
"Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\cache\tpl_prosilver_overall_header.html.php on line 128"


ever I recovered the original webpage, it still shows me this error message when I try to access it.
Could you please help? Sorry, I am pretty new to it.

Re: Add Homepage link in header

Posted: Sun Nov 15, 2009 7:51 pm
by ChriZathens
If you restored the original file and still shows the error, then clearing your forum's cache will solve the issue.
About your error now, it shows that you made a mistake in the file edits. What style are you using?

Re: Add Homepage link in header

Posted: Sun Nov 15, 2009 11:44 pm
by majorshi
YES, thanks a lot, I solved the problem by deleting the cache file, I am using prosilver style.

Re: Add Homepage link in header

Posted: Mon Nov 16, 2009 8:10 am
by ChriZathens
OK, cool.
If you need help with the prosilver edits just post your overall_header.html here in

Code: Select all

 tags

Re: Add Homepage link in header

Posted: Fri Nov 20, 2009 6:13 pm
by Spazzman67
when it comes to php editing i dont know squat! I can follow directions very well, but step by step instructions.

I did not upgrade my board or have any mods. My boards version is 3.0.1. I am fine with it, unless there is a HUGE reason that I DESPERATELY need to update. What I want to do is simple (well it should be right?) Is to change the header at the top to link back to my homepage. Right now you click on it it just wants to link back to the same page as if you refreshed the page. I dont mind if its just the logo or the whole banner that will be effective..Just whatever is easier.

you probably want the link to my forums page. http://www.retro64games.net/forums/index.php

I would appreciate any help and thanks in advanced.

Re: Add Homepage link in header

Posted: Fri Nov 20, 2009 6:52 pm
by ChriZathens
First of all I will advise you to DO upgrade to 3.0.6.
That being said to change the location clicking on the logo will take you to:
You posted that your forum's index is at http://www.retro64games.net/forums/index.php, so I'm guessing that site index is http://www.retro64games.net/
So:
Open styles/prosilver/template/overall_header.html
Find:

Code: Select all

			<div id="site-description">
				<a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
Replace with

Code: Select all

			<div id="site-description">
				<a href="http://www.retro64games.net/" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
After saving and uploading the changed file to your site, remember to purge your cache via the ACP

Re: Add Homepage link in header

Posted: Sat Nov 21, 2009 7:04 am
by Mr_makaveli
i have read through three pages then stopped - does this take you back too page index (homepage) or does it make it the users homepage when they log on too firefox or ie, im sorry if qstn has been answered :oops:

Re: Add Homepage link in header

Posted: Sun Nov 22, 2009 12:41 pm
by ChriZathens
The link takes you to any page you set from the ACP, not on each user's homepage (this is done via the www link in their profiles)
The name "Add Homepage link in header" was given to this mod because I initially created it to enter your site index address and clicking it, it takes you there, but you can practically enter any website address you like from the ACP.

Re: Add Homepage link in header

Posted: Sat Nov 28, 2009 5:21 pm
by WarlockMaster
Portuguese Brazil Translations ;) :

language/en/acp/board.php

Code: Select all

	'HOMEPAGE_URL'					=> 'Endereço da Homepage',
	'HOMEPAGE_URL_EXPLAIN'			=> 'Informe aqui o endereço da da sua homepage. Você também pode usar algo como "../site", se sua homepage estiver no mesmo domínio, ou usar o endereço completo se estiver em outro domínio.. ',
	'HOMEPAGE_TITLE'				=> 'Título da Homepage',
	'HOMEPAGE_TITLE_EXPLAIN'		=> 'Esse título será exibido quando você mover o mouse sobre o link da homepage. Se não deseja exibir nenhum título, deixe esse campo em branco.',
	'SHOW_HOMEPAGE'					=> 'Exibir sua a URL da sua homepage no cabeçalho',
	'SHOW_HOMEPAGE_EXPLAIN'			=> 'Se você selecionar "Não" a URL da sua homepage não será exibida no cabeçalho',
	'SHOW_HOMEPAGE_IN_NEW'			=> 'Homepage em uma nova janela',
	'SHOW_HOMEPAGE_IN_NEW_EXPLAIN'	=> 'Se você selecionar "Sim" o link para sua homepage irá abrir em uma nova janela',
Thanks for the MOD :D

Re: Add Homepage link in header

Posted: Mon Nov 30, 2009 8:30 am
by valahul
I have installed 3.0.6 version, the last.
I tried this mod, to add a link to my homepage forum but i can''t get it to work.
I use a subsilver2 based theme "my autumn" http://demo.phpbb3styles.net/MG+Autumn .
I can''t add a homepage to forum. In 3.0.6 i don''t find the cod that is in mod description in overall_header.
Maybe in menu_block.html.
Some help would be appreciated.
THANKS.

Re: Add Homepage link in header

Posted: Mon Nov 30, 2009 11:04 am
by ChriZathens
WarlockMaster wrote:Portuguese Brazil Translations ;) :

language/en/acp/board.php

Code: Select all

	'HOMEPAGE_URL'					=> 'Endereço da Homepage',
	'HOMEPAGE_URL_EXPLAIN'			=> 'Informe aqui o endereço da da sua homepage. Você também pode usar algo como "../site", se sua homepage estiver no mesmo domínio, ou usar o endereço completo se estiver em outro domínio.. ',
	'HOMEPAGE_TITLE'				=> 'Título da Homepage',
	'HOMEPAGE_TITLE_EXPLAIN'		=> 'Esse título será exibido quando você mover o mouse sobre o link da homepage. Se não deseja exibir nenhum título, deixe esse campo em branco.',
	'SHOW_HOMEPAGE'					=> 'Exibir sua a URL da sua homepage no cabeçalho',
	'SHOW_HOMEPAGE_EXPLAIN'			=> 'Se você selecionar "Não" a URL da sua homepage não será exibida no cabeçalho',
	'SHOW_HOMEPAGE_IN_NEW'			=> 'Homepage em uma nova janela',
	'SHOW_HOMEPAGE_IN_NEW_EXPLAIN'	=> 'Se você selecionar "Sim" o link para sua homepage irá abrir em uma nova janela',
Thanks for the MOD :D
Thanks a lot for the translation! I will add a link for it in the third post
valahul wrote:I have installed 3.0.6 version, the last.
I tried this mod, to add a link to my homepage forum but i can''t get it to work.
I use a subsilver2 based theme "my autumn" http://demo.phpbb3styles.net/MG+Autumn .
I can''t add a homepage to forum. In 3.0.6 i don''t find the cod that is in mod description in overall_header.
Maybe in menu_block.html.
Some help would be appreciated.
THANKS.
Open styles/mg_autumn/template/menu_block.html
Find:

Code: Select all

	<td class="forum-buttons" colspan="3" width="100%">
		<!-- IF not S_IS_BOT -->
Add, after

Code: Select all

			<!-- IF S_SHOW_HOMEPAGE and U_HOMEPAGE --><a href="{U_HOMEPAGE}" <!-- IF U_HOMEPAGE_TITLE -->title="{U_HOMEPAGE_TITLE}"<!-- ENDIF --><!-- IF S_SHOW_HOMEPAGE_IN_NEW -->onclick="window.open(this.href); return false;"<!-- ENDIF -->><img src="{T_THEME_PATH}/images/icon_mini_home.gif" width="12" height="13" alt="" /> {L_HOMEPAGE}</a>&nbsp;&nbsp;<img src="{T_THEME_PATH}/images/menu_sep.png" alt="" />&nbsp;<!-- ENDIF -->
Don't forget to purge your cache...
Let me know if it is OK... ;)

Re: Add Homepage link in header

Posted: Mon Nov 30, 2009 12:24 pm
by valahul
WORKS GREAT!
SUPER MOD!
THANKS A LOT ChriZathens.

Re: Add Homepage link in header

Posted: Mon Nov 30, 2009 12:50 pm
by ChriZathens
Cool :ugeek: Glad it works! :D