Author Topic: [1.7 / 1.7.1] Admin CP>Settings: anchor text links do not work  (Read 20700 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
In admin/settings.php, the anchors are incorrectly coded with a "#" preceeding the anchor target name,
Code: [Select]
<a name="#setting_group_1">... HTML ...</a>
It really should be:
Code: [Select]
<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:
Code: [Select]
<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
Code: [Select]
<a name="#TheAnchorName"></a>

To fix these text links, open admin/settings.php and locate these lines:
Code: [Select]
  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
« Last Edit: February 07, 2006, 05:02:23 AM by V@no »