Warning: The author of this contribution does not provide support for it anymore.

Add Homepage link in header

How can edit styles/subsilver2/template/overall_header.html - Add Homepage link in header

How can edit styles/subsilver2/template/overall_header.html

by astute02 » Sat Feb 25, 2012 7:34 pm

According to the instruction for subsilver2 template in the file subsilver2_1.0.2_to_1.1.0.xml I am to find the line

Code: Select all

<!-- IF S_SHOW_HOMEPAGE and U_HOMEPAGE --><a href="{U_HOMEPAGE}"><img src="{T_THEME_PATH}/images/icon_mini_home.gif" width="12" height="13" alt="*" />{L_HOMEPAGE}</a>&nbsp;&nbsp;<!-- ENDIF -->

and replace it but I can't find this line in the styles/subsilver2/template/overall_header.html
Where do I go wrong? Any advice would much appreciated!
Thank you
Last edited by astute02 on Sun Feb 26, 2012 3:22 pm
astute02
Registered User
Posts: 12
Joined: Wed Feb 22, 2012 10:15 am
Contact:

Re: How can edit styles/subsilver2/template/overall_header.html

by Oyabun1 » Sat Feb 25, 2012 9:27 pm

When you post code you should place it in BBCode code tags

Code: Select all

[code]the code[/code]


You won't have the code to find unless you had version 1.0.2 of the MOD installed because they are update instructions. The subsilver2 instructions in the package are a misnamed file, there doesn't actually appear to be subsilver2 instructions.

In the contrib folder of the MOD package is a styles folder, copy that to the root of you board installation (it has the homepage icon in it).

Open styles/subsilver2/template/overall_header.html

Find

Code: Select all

            <a href="{U_FAQ}"><img src="{T_THEME_PATH}/images/icon_mini_faq.gif" width="12" height="13" alt="*" /> {L_FAQ}</a>

Add before

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;<!-- ENDIF -->

Refresh the Templates component for subsilver2 from the Styles tab in the Admin Control Panel and if you still can't see the link reload the index page in your browser (usually Ctrl + F5 or Shift + refresh button).
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

How can I edit styles/subsilver2/template/overall_header.html

by astute02 » Sun Feb 26, 2012 1:35 pm

I opened styles/subsilver2/template/overall_header.html and added the following line

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;<!-- ENDIF -->

before

Code: Select all

<a href="{U_FAQ}"><img src="{T_THEME_PATH}/images/icon_mini_faq.gif" width="12" height="13" alt="*" /> {L_FAQ}</a>


Still no changes in subsilder2 while everything is OK in the prosilver template as it should be. I rechecked everything. It's beyond my comprehension.
astute02
Registered User
Posts: 12
Joined: Wed Feb 22, 2012 10:15 am
Contact:

delete

by astute02 » Sun Feb 26, 2012 3:22 pm

How can I delete this post?
astute02
Registered User
Posts: 12
Joined: Wed Feb 22, 2012 10:15 am
Contact:

Re: How can edit styles/subsilver2/template/overall_header.html

by Oyabun1 » Sun Feb 26, 2012 8:59 pm

Oyabun1 wrote:Refresh the Templates component for subsilver2 from the Styles tab in the Admin Control Panel and if you still can't see the link reload the index page in your browser (usually Ctrl + F5 or Shift + refresh button).
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: How can edit styles/subsilver2/template/overall_header.html

by astute02 » Mon Feb 27, 2012 3:59 am

I refreshed my both templates, cleared the cache, tried different browesers: the same result. I see the left to the Forum list the Homepage button in the prosilver but none in the subsilver2 template
astute02
Registered User
Posts: 12
Joined: Wed Feb 22, 2012 10:15 am
Contact:

Re: How can edit styles/subsilver2/template/overall_header.html

by Oyabun1 » Mon Feb 27, 2012 5:54 am

Please provide a link to your board.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: How can edit styles/subsilver2/template/overall_header.html

by astute02 » Mon Feb 27, 2012 3:18 pm

astute02
Registered User
Posts: 12
Joined: Wed Feb 22, 2012 10:15 am
Contact:

Re: How can edit styles/subsilver2/template/overall_header.html

by astute02 » Mon Feb 27, 2012 3:47 pm

I'm sorry. It's my bad. I looked for my HOMEPAGE link left to the Forum list and when I glanced at the page for the 20th time I noticed this link left to the FAQ link. I am genuilly sorry to have taken so much of your time. Thank you for patience.
astute02
Registered User
Posts: 12
Joined: Wed Feb 22, 2012 10:15 am
Contact: