Fork me on GitHub

The links don't work on the Header of my new theme :(  Bottom

  • I've added a theme to my site but for some reason the links on the top header dont work (they seem to point to the wrong URL). Can someone tell me where these links point to and how I can change them to be the link to the corresponding block (ie the coresponding main menu link down the left hand side????

    this is the code for themes.php of the header.

    Code

    echo "\n"
        ."</td>\n"
        ."</tr>\n"

        ."<tr>\n"
        ."<td background=\"/themes/$thename/images/cellpic01.gif\" class=\"catHead\" height=\"28\" bgcolor=\"#D1D1D1\"  align=\"left\" colspan=\"2\">\n"
        ."<span class=\"cattitle\"><b><center>\n"
        ."<a href=\"/index.php\">Home</a> ::\n"
        ."<a href=\"/modules.php?name=Career\">Career</a> ::\n"
        ."<a href=\"/modules.php?name=Downloads\">Downloads</a> ::\n"
        ."<a href=\"/forum\">Forums</a> ::\n"
        ."<a href=\"/modules.php?name=Newsletter\">Newsletter</a> ::\n"
        ."<a href=\"/modules.php?name=Search\">Search</a> ::\n"
        ."<a href=\"/modules.php?name=Topics\">Topics</a> ::\n"
        ."<a href=\"/modules.php?name=Web_Links\">Web Links</a> ::\n"
        ."<a href=\"/modules.php?name=Whois\">Whois</a>\n"
        ."</span>\n"
        ."</td>\n"
        ."</tr>\n"
        ."<tr valign=\"top\">\n"
        ."<td height=\"28\" bgcolor=\"#FFFFFF\" valign=\"middle\" colspan=\"2\">\n"
        ."<center><span class=\"mainmenu\">
    <a href=\"/forum/memberlist.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_members.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Memberlist\" hspace=\"3\" />Memberlist</a>&nbsp;
    <a href=\"/forum/groupcp.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_groups.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Usergroups\" hspace=\"3\" />Usergroups</a>\n"


        ."<span class=\"mainmenu\"> &nbsp;

    <a href=\"/forum/profile.php?mode=editprofile\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_profile.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Profile\" hspace=\"3\" />Profile</a>&nbsp;
    <a href=\"/forum/privmsg.php?folder=inbox\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_message.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Login to check your private messages\" hspace=\"3\" />Private Messages</a>&nbsp;
    <a href=\"/forum/login.php\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_login.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Login\" hspace=\"3\" />Login</a>&nbsp;</span>

    &nbsp;<a href=\"/forum/profile.php?mode=register\" class=\"mainmenu\"><img src=\"/themes/$thename/images/icon_mini_register.gif\" width=\"12\" height=\"13\" border=\"0\" alt=\"Register\" hspace=\"3\" />Register</a></span>\n"

        ."</td>\n"
        ."</tr>\n"
        ."</table>\n"

          ."</td>\n"
        ."</tr>\n"

          ."<tr>\n"
        ."<td colspan=\"6\">\n"

        ."<!----- Begin of Main Content Table ----->\n"
        ."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFF\" align=\"center\">\n"
        ."<tr valign=\"top\">\n"
        ."<td valign=\"top\">\n"
        ."<table width=\"100%\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" align=\"center\">\n"
        ."<tr valign=\"top\">\n"
        ."<td width=\"150\" valign=\"top\">\n";
        blocks('left');
        echo "</td><td width=\"100%\" align=\"center\" valign=\"top\">\n";
            if ($index == 1) { blocks('centre'); }
    }
  • it's alright guys, i sussed it. basically you need to copy and paste the main menu links (right click and then properties and then copy the link (after the http of your site)) instead of the ones listed here.

    fantastic. learning something every day!
  • I believe its like that because you included the / (like /modules.php, etc). If you had just done "modules.php", I *think* it may have worked. And to add, if you can get it to work this way, its better than linking directly to the site. Its much better if you reference it from a directory, instead of an exact URL, incase the site moves.
  • 0 users

This list is based on users active over the last 60 minutes.