4images Help / Hilfe > Bug Fixes & Patches

[1.7 / 1.7.1] Admin CP>Settings: anchor text links do not work

(1/1)

Chris:
In admin/settings.php, the anchors are incorrectly coded with a "#" preceeding the anchor target name,
--- Code: ---<a name="#setting_group_1">... HTML ...</a>
--- End code ---

It really should be:

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

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: ---<a name="#TheAnchorName"></a>
--- End code ---

To fix these text links, open admin/settings.php and locate these lines:

--- Code: ---  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");

--- End code ---
and simply remove the # character

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

Navigation

[0] Message Index

Go to full version