4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2010, 06:19:21 AM

Login with username, password and session length
Search:     Advanced search
Translate this page with google
=>
 Translate this page with Google =>
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [1.7 / 1.7.1] Admin CP>Settings: anchor text links do not work
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [1.7 / 1.7.1] Admin CP>Settings: anchor text links do not work  (Read 9762 times)
Chris
Administrator
4images Guru
*****
Offline Offline

Posts: 4489

Thank You
-Given: 0
-Receive: 0

Did u ever stop to think and then forget to start?


View Profile
« on: June 01, 2005, 02:22:28 AM »

In admin/settings.php, the anchors are incorrectly coded with a "#" preceeding the anchor target name,
1
<a name="#setting_group_1">... HTML ...</a>

It really should be:
1
<a name="setting_group_1">... HTML ...</a>
The named target anchor should be without the "#" character, whereas the JUMP to the local target anchor does require the "#" character:
1
<a href="#setting_group_1">

As an anchor, the code between the <a name="TheAnchorName"> and </a> is meaningless and has no bearing on the anchor. What is required is the complete anchor with the closing tag. <a name="TheAnchorName"></a>

When the anchor is coded with the "#", the problem is not apparent in IE (lax interpretation of HTML); BUT it is apparent in other browsers such as Netscape and Mozilla. In Netscape and Mozilla, there is NO local target anchor if it is incorrectly defined using a "#" as in
1
<a name="#TheAnchorName"></a>


To fix these text links, open admin/settings.php and locate these lines:
1
2
3
4
5
6
7
  show_table_separator($setting_group[1], 2, "#setting_group_1");
  show_table_separator($setting_group[2], 2, "#setting_group_2");
  show_table_separator($setting_group[3], 2, "#setting_group_3");
  show_table_separator($setting_group[4], 2, "#setting_group_4");
  show_table_separator($setting_group[5], 2, "#setting_group_5");
  show_table_separator($setting_group[6], 2, "#setting_group_6");
  show_table_separator($setting_group[7], 2, "#setting_group_7");
and simply remove the # character

Credit goes to twmm for posting the issue: http://www.4homepages.de/forum/index.php?topic=3300.0

* AdminSettingsLinks.gif (1.55 KB - downloaded 1702 times.)
« Last Edit: February 07, 2006, 05:02:23 AM by V@no » Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
piqs.de - Fotocommunity & lizenzfreie Fotos