Add Homepage link in header

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens »

  1. This style is a bit different... Do this:
    Open styles/twilightBB/template/overall_header.html
    Find

    Code: Select all

    <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
    Inline find

    Code: Select all

    <li class="icon-home">
    Inline add after

    Code: Select all

    <a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a> <strong>&#8249;</strong> 
    So the final result should be this:

    Code: Select all

    <li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a> <strong>&#8249;</strong> <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
    P.S.: Don't forget to clear your board's cache afterwards.
  2. There should be only one. In includes/functions.php, in section 'U_HOMEPAGE' you have written

    Code: Select all

    ../http://www.budoonline.co.uk
    You should either write

    Code: Select all

    ../
    or

    Code: Select all

    http://www.budoonline.co.uk
  3. Open language/en/common.php
    Find:

    Code: Select all

    	'FORUM_INDEX'			=> 'Board index',
    Replace with:

    Code: Select all

    	'FORUM_INDEX'			=> 'Forum index',
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
budo
Registered User
Posts: 107
Joined: Tue Jun 16, 2009 9:17 pm

Re: Add Homepage link in header

Post by budo »

thanks a lot, i have no idea how you know all that stuff. Anyway the single URL is working now and theres a forum index text instead of board index, however there is two homepage links now, one on top of other, this seemed to happen after your number 1 instructions? I may of done something wrong. Heres a pic of it, any ideas how i could fix this?

Image

Thanks a lot
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens »

The homepage code is there twice
In your overall_header.html I see

Code: Select all

<li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a><li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a> <strong>&#8249;</strong> <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> </li>
It should be

Code: Select all

    <li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a> <strong>&#8249;</strong> <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
budo
Registered User
Posts: 107
Joined: Tue Jun 16, 2009 9:17 pm

Re: Add Homepage link in header

Post by budo »

Thank you :D
budo
Registered User
Posts: 107
Joined: Tue Jun 16, 2009 9:17 pm

Re: Add Homepage link in header

Post by budo »

Doh not quite sorted yet, :( it looks fine now but the directory trail thing doesnt work now (is it called breadcrumbs) e.g. forum index>general forum>general chat it just stays as forum index now no matter where abouts you are in the forum. Was since that last change i made, i noticed the code was slightly different than posted above before i changed it thought it would be ok but guess not...

thanks for help
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens »

If you can paste here your overall_header.html (in code tags) I maybe able to help you more... ;)

EDIT: In fact let me paste the breadcrumbs part of overall_header.html, edited:

Code: Select all

		<ul class="breadcrumbs">
			<li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a> <strong>&#8249;</strong> <a href="{U_INDEX}" accesskey="h">{L_INDEX}</a> <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>
		</ul>
Screenshot
Image
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
budo
Registered User
Posts: 107
Joined: Tue Jun 16, 2009 9:17 pm

Re: Add Homepage link in header

Post by budo »

Sorted thanks for your time & help! :P
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens »

Cool... :geek:
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
seducerx
Registered User
Posts: 64
Joined: Thu May 14, 2009 7:00 am

Re: Add Homepage link in header

Post by seducerx »

Any chance this might work in version 3.0.4 of phpbb?
Wanna get the woman that you want?

Join us at www.attraxionarts.com
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens »

I can absolutely think of no reason why it shouldn't work...
But I would advice you to update to the latest version...
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18316
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Add Homepage link in header

Post by DavidIQ »

MOD Updated to version 1.0.8
See first post for Download Link
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens »

Thanks a lot! :D
I have just updated the third post
It contains now a list of version's 1.0.8 features and a screenshot from the ACP... :D

Inside the package you will also find:
  1. Instructions about how to update from previous validated version.
  2. Subsilver2 instructions
  3. Subsilver2 instructions to update from previous validated version
  4. Greek (Hellenic) language edits
I hope you like this mod.
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
User avatar
Ahri89
Registered User
Posts: 525
Joined: Sat Apr 07, 2007 2:53 pm
Location: Spain
Contact:

Re: Add Homepage link in header

Post by Ahri89 »

I LOVE enable/disable the mods, thanks you!! :D
MODs translated to Spanish: ACP Add User MOD, ACP Announcement Centre, Advertisement Management, Custom Profile Fields, Update Reminder, Flood time setting per forum, MOD Version Check, Posting template, Prune Log, Simple Trash Bin, TinyPic Plugin, User Reminder, View Profile, View your topics, and more...

Sorry for my bad english xD
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: Add Homepage link in header

Post by lovelysummer »

1.0.8 version folder does not contain 1.0.6 update to 1.0.8 instruction :cry:
User avatar
ChriZathens
Registered User
Posts: 1477
Joined: Tue Apr 18, 2006 9:11 pm
Location: Athens, Greece
Name: Chris

Re: Add Homepage link in header

Post by ChriZathens »

No, it only contains update instructions from the previous validated version.. But don't worry - this weekend I'll post update instructions. I'm not sure about Saturday, because I'm leaving for holiday and will be traveling almost all day, but by Sunday I will.. ;)

EDIT: OK, I wasn't sure about Sunday, either, so here you go:

Update 1.0.6 to 1.0.8
Sql:

Code: Select all

INSERT INTO phpbb_config (config_name, config_value) VALUES ('show_homepage_in_new', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('homepage_title', 'Your homepage title');
Open includes/functions.php
Find:

Code: Select all

		'U_HOMEPAGE'			=> $config['homepage_url'],
Add before:

Code: Select all

		'S_SHOW_HOMEPAGE_IN_NEW' => ($config['show_homepage_in_new']) ? true : false ,
Add after:

Code: Select all

		'U_HOMEPAGE_TITLE'		=> $config['homepage_title'],
Open includes/acp/acp_board.php
Find:

Code: Select all

						'homepage_url'			=> array('lang' => 'HOMEPAGE_URL',			'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
Add, before:

Code: Select all

						'show_homepage_in_new'	=> array('lang' => 'SHOW_HOMEPAGE_IN_NEW',	'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),
add, after:

Code: Select all

						'homepage_title'		=> array('lang' => 'HOMEPAGE_TITLE',		'validate' => 'string',	'type' => 'text:40:255', 'explain' => true),
Open language/en/acp/board.php
Find

Code: Select all

	'HOMEPAGE_URL_EXPLAIN'
Add, after

Code: Select all

	'HOMEPAGE_TITLE'				=> 'Homepage title',
	'HOMEPAGE_TITLE_EXPLAIN'		=> 'This title will show when you have your mouse over your homepage link. If you don´t want to show a title, just leave this field blank.',
Find

Code: Select all

	'SHOW_HOMEPAGE_EXPLAIN'
Add, after:

Code: Select all

	'SHOW_HOMEPAGE_IN_NEW'			=> 'Homepage in new window',
	'SHOW_HOMEPAGE_IN_NEW_EXPLAIN'	=> 'If you select "Yes" the link to your homepage will open in a new window',
Open styles/prosilver/template/overall_header.html
Find:

Code: Select all

<!-- IF S_SHOW_HOMEPAGE and U_HOMEPAGE --><li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a></li><!-- ENDIF -->
Inline, find:

Code: Select all

accesskey="y">
Inline, before add:

Code: Select all

<!-- IF U_HOMEPAGE_TITLE -->title="{U_HOMEPAGE_TITLE}"<!-- ENDIF --><!-- IF S_SHOW_HOMEPAGE_IN_NEW -->onclick="window.open(this.href); return false;"<!-- ENDIF --> 
Refresh your cache from the ACP and you should be OK..
I hope I did not make any mistake (it is almost 2:30 am here...), so please make sure you backup your files prior of editing them and please let me know if the update was OK for you..
My mods in MODDB:
Add Homepage link in header - Change user activity post limit - Post number in viewtopic
If you need support click on the support tab there and post your question.
Do not PM me - chances of viewing my PMs are way thinner than viewing the support question in the customization DB...
Locked

Return to “[3.0.x] MOD Database Releases”