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.
lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: Add Homepage link in header

Post by lovelysummer » Sat Jul 18, 2009 3:51 pm

The above instructions work nice. :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 » Sat Jul 18, 2009 9:27 pm

Cool... 8-)
Since you verified them I'm adding them in the third post... :)
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...

netsurf
Registered User
Posts: 22
Joined: Sat Jul 18, 2009 6:06 pm

Re: Add Homepage link in header

Post by netsurf » Sun Jul 19, 2009 2:07 am

works well. thank you for the mod!

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: Add Homepage link in header

Post by Nully » Sat Aug 08, 2009 7:14 am

Hello,
on overall_header I have a simple link,

Code: Select all

<div id="site-description">
    <a href="http://www.mysite.com/" title="Go to my site" id="logo">{SITE_LOGO_IMG}</a>
but I notice that users do not see there is a link :)
So, I will try your Mod.
I installed it on my computer with wampserver with words badly translated in french (but it is not a problem for the words in the ACP).
It works fine, but I have a question :
I would like a different icon of board index (icon_home.gif). It will be better with two icons, one for the board index and one for the home page. Do you think it is possible ?

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 » Sat Aug 08, 2009 11:50 am

Yeap, it is possible alright..
The image that is shown is determined by

Code: Select all

<li class="icon-home">
So you need to create a new one in your stylesheet with a different image and assign that class. I can't look at code right now but if you search for icon-home instances and duplicate it like e.g. icon-homepage, it should be fairly easy. Then, instead of

Code: Select all

<li class="icon-home">
you can use

Code: Select all

<li class="icon-homepage">
in the code.
I had thought about this myself but I preferred to pass since it was an unnecessary additional complexity IMO..
Just give it a try and if you can't accomplish this I'll be happy to offer some help (it is just that I'll be able to, after the Weekend...)
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...

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: Add Homepage link in header

Post by Nully » Sat Aug 08, 2009 11:54 am

Thank you, don't worry, it is not urgent and I am very ...slow, lazy and idiot.
And I have to find a suitable icon, maybe a little house.
I will try and tell you after the week end. :D

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 » Mon Aug 10, 2009 8:05 am

OK, so...
If you need a different icon for your homepage link, do this:
  1. Find an icon to use similar in dimensions to this: Image
  2. Rename it to icon_homepage.gif.
  3. Copy it to styles/prosilver/theme/images directory
  4. Open styles/prosilver/theme/bidi.css
    Find

    Code: Select all

    .rtl .sitehome, .rtl .icon-faq, .rtl .icon-members, .rtl .icon-home, .rtl .icon-ucp,
    In-line find:

    Code: Select all

    .rtl .icon-home
    In-line add after:

    Code: Select all

    , .rtl .icon-homepage
  5. Open styles/prosilver/theme/buttons.css
    Find:

    Code: Select all

    .sitehome, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, .icon-logout,
    In-line find

    Code: Select all

    .icon-home
    In-line add after

    Code: Select all

    , .icon-homepage
  6. Open styles/prosilver/theme/colours.css
    Find

    Code: Select all

    .icon-home						{ background-image: url("{T_THEME_PATH}/images/icon_home.gif"); }
    Add, after

    Code: Select all

    .icon-homepage					{ background-image: url("{T_THEME_PATH}/images/icon_homepage.gif"); }
  7. 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}" <!-- IF U_HOMEPAGE_TITLE -->
    In-line find

    Code: Select all

    <li class="icon-home">
    In-line replace with

    Code: Select all

    <li class="icon-homepage">
After the edits refresh your template, your theme and purge your cache.

P.S. : Link for this post is also added in the 3d post of this topic
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...

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: Add Homepage link in header

Post by Nully » Mon Aug 10, 2009 4:16 pm

Ok, I found these informations before reading your post.
I am ready, I am in stress because of SQL.

Just one thing, I think, it is better (maybe not) in
language/en/acp/board.php
After DISABLE_BOARD_EXPLAIN,
instead of after
DISABLE_BOARD

See you later ...

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: Add Homepage link in header

Post by Nully » Mon Aug 10, 2009 4:53 pm

Fine, it works :D
You can see my forum on my profile.
Kalispera !

May be I will have to put the link after Board index, because I make the mistake of going to my site instead of the top of the forum :?
I will wait the advise of users.

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: Add Homepage link in header

Post by Nully » Wed Aug 12, 2009 12:03 pm

Hello,
I preferred to add the link after Board index, so, I did (in overall_header).
But there is a little problem for the space between the name of the site and the text of the viewing page.
pb_espace.jpg
See the little problem
pb_espace.jpg (9.76 KiB) Viewed 1203 times
Could you tell me how to arrange this ?
(Of course I could make the name of the site shorter :D).

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 » Wed Aug 12, 2009 12:17 pm

The problem is not the length of the site name...
You most probably have misplaced a </li> tag..
If you paste your overall_header.html here I'll tell you what's wrong.. ;)
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...

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: Add Homepage link in header

Post by Nully » Wed Aug 12, 2009 12:51 pm

Hello again,
maybe just a part of the code will help :

Code: Select all

<ul class="linklist navlinks">
        <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a><!-- IF S_SHOW_HOMEPAGE and U_HOMEPAGE --><li class="icon-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 --> accesskey="y">{L_HOMEPAGE}</a></li><!-- ENDIF -->
					<!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>

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 » Wed Aug 12, 2009 12:56 pm

Yeap, there it is...
Change it to

Code: Select all

<ul class="linklist navlinks">
        <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a></li><!-- IF S_SHOW_HOMEPAGE and U_HOMEPAGE --><li class="icon-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 --> accesskey="y">{L_HOMEPAGE}</a><!-- ENDIF -->
               <!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></li>
And I believe you will be OK..
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...

Nully
Registered User
Posts: 453
Joined: Thu Jan 29, 2009 10:11 pm
Location: France
Contact:

Re: Add Homepage link in header

Post by Nully » Wed Aug 12, 2009 1:07 pm

Yes ! It is ok.
Thank you very much :D

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 » Wed Aug 12, 2009 1:16 pm

You are welcome... ;)
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”

Who is online

Users browsing this forum: No registered users and 188 guests