Page 1 of 12

Add Homepage link in header

Posted: Fri Jul 03, 2009 5:31 am
by Extensions Robot
Modification name: Add Homepage link in header
Author: ChriZathens
Modification description: Simple mod which helps you place a link for your homepage on the header of the forum.
The latest version (see screenshot) enables full control of the mod via the ACP.
Modification version: 1.1.0
Tested on phpBB version: 3.0.8

Download file: Add_Homepage_Link_1.1.0.zip
File size: 90.84 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

Add Homepage link in header

Posted: Fri Jul 03, 2009 5:31 am
by DavidIQ
Modification validated/released

Notes:

Add Homepage link in header

Posted: Fri Jul 03, 2009 5:31 am
by ChriZathens
Thanks a lot for the validation guys!!!!

Since this mod is now updated to version 1.0.8, let me give you a screenie and a brief description of the features:

Features - Controllable via ACP
  1. Enable/Disable the mod
  2. Set the link of your homepage
  3. Optionally, set a title (to show when your mouse is over the link)
  4. Select whether you want your link to open in a new window
And a screenshot from the ACP:
shlih.jpg
shlih.jpg (60.06 KiB) Viewed 18167 times
For those who have installed the dev version 1.0.6 and want to update to 1.0.8 : update intructions

If you need to use a different image for your link, instructions are in this post.

Installation for additional templates
  1. Avalon: http://www.phpbb.com/community/viewtopi ... #p10102955
  2. twilightBB: http://www.phpbb.com/community/viewtopi ... #p10149545
  3. etech: http://www.phpbb.com/community/viewtopi ... #p10524245
  4. aerored: http://www.phpbb.com/community/viewtopi ... #p10540775
  5. Getaway: http://www.phpbb.com/community/viewtopi ... #p10703245
  6. 1Game: http://www.phpbb.com/community/viewtopi ... #p12076785

Additional translations
  1. Portuguese Brazil translation (thanks WarlockMaster) : http://www.phpbb.com/community/viewtopi ... #p11346595

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 11:30 am
by asrock
Would this work with Avalon theme, based on subsilver2?

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 1:17 pm
by ChriZathens
I can't test it, but I see no reason why it wouldn't... ;)

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 1:20 pm
by asrock
Thanks Chriz, I'll test it and if all ok I'll post back.

Thanks again.

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 1:49 pm
by ChriZathens
If you need any help, I'll be right here... :)

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 1:59 pm
by ChriZathens
If you need any help, I'll be right here... :)



EDIT: Just found some time and tested it.. It has differences, but it is not a problem implementing it...

Just open/styles/avalon/template/overall_header.html
Find:

Code: Select all

<a href="{U_FAQ}">{L_FAQ}</a> 
add, before:

Code: Select all

<a href="{U_HOMEPAGE}">{L_HOMEPAGE}</a> &#8226;
OR

Find:

Code: Select all

<div class="navrow">
add, after

Code: Select all

<a href="{U_HOMEPAGE}">{L_HOMEPAGE}</a> &#8226;
Test what way you prefer it... ;)
Refresh template, clear cache and you're good.. :)

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 2:42 pm
by lovelysummer
I use sub-domain for my forum. I would like to ask my forum is http://forum.mycichlidfish.hk/ but my homepage is http://mycichlidfish.hk/.
What should I put in the
'U_HOMEPAGE' => "../site",
Is it simply add the full address to it ?

Tks. :)

edit : I made it ...very nice mod.... :D
I make the site to be opened in a new page, and do the following to the breadcumb.html.
simply in line add

Code: Select all

target="_blank"
after

Code: Select all

<a href="{U_HOMEPAGE}"

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 3:49 pm
by asrock
Chriz OMG, Your a damn hero mate, you actually took the time to install the avalon theme just to give me an answer? :o Dude you really didn't need to do all that, but thank you so very much for that because due to the fact that you did I have now got my little MOD installed as per your excellent instructions and it looks f**king COOL! So happy with it. The Team on this great forum should really be upgrading you for going above and beyond to help other newbie users like myself! Thank you very very much mate.

Finally... LOL, Theres always a BUT :lol:
As you can see from my capture below, I want to make the {HOMEPAGE} part look the same as my other links on my navrow... off caps and without the { and } also I have a custom homepage with a different URL, could you tell me where I would enter the URL for my custom page so that my new Homepage link will take a user to it without opening another browser window.

Again Chriz, your very kind. Many kind regards! ;)





*** UPDATE ***

Chriz, No worries my friend! I got it sorted :D I just modified the {U_HOMEPAGE} and the {L_HOMEPAGE} and now I've got what I want plus it doesn't need to open in another browser window. Yipeeeee!
Many thanks for your great MOD Chriz and for your very kind help! Thank You. ;)
After.jpg
After I messed around a little myself. Yipeee!
After.jpg (36.57 KiB) Viewed 18902 times
Before.jpg
Before
Before.jpg (32.66 KiB) Viewed 18902 times

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 5:44 pm
by lovelysummer
I have a question in prosilver installation instructions.

prosilver/style/template/overall header.html

Code: Select all

<li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a>
Is it necessary to have the <li closer after </a>

Code: Select all

</li>

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 6:28 pm
by ChriZathens
asrock : You are very welcome... also keep in mind that in the next version the link will be configurable via ACP...So it will be very easy to enter any link you like.. ;)

lovelysummer : Yes, you are correct! It was actually a mistake in the instructions..My bad and I apologize for that.
Add after should be

Code: Select all

    <li class="icon-home"><a href="{U_HOMEPAGE}" accesskey="y">{L_HOMEPAGE}</a></li>
I will fix this in the next version and will also update the 3d post... Thanks for noticing this! ;)

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 6:35 pm
by asrock
Chriz, its a great simple little MOD... I love it, thanks for that!
By the way when you do release an update for this will it simply be a matter of overwriting the current files to update the MOD?

Re: Add Homepage link in header

Posted: Fri Jul 03, 2009 10:02 pm
by ChriZathens
It is not done yet, but I guess it will be a replace in includes/functions, an addition in overall_header.html and and one or two more files to edit..
I estimate the update will be a matter of 5 minutes
But that is just estimations, when I actually implement it I will know for sure.. :)

Re: Add Homepage link in header

Posted: Sat Jul 04, 2009 12:12 am
by Mircea007
i have a question where is the home button taking u ... to the board index ..... or if you have a website and a forum can this homepage button take you to the website ?