Jump to content

Recommended Posts

Hi,

I have just installed a new PHPNuke theme, called V-Mecha. The problem that I currently face is that the blocks only seem to appear on the left hand side of the homepage and not on the right. I would like to have the capacity to put blocks on either side but Blocks Admin seems to be pretty redundant.

I have had a look in theme.php and as I am pretty new with PHP it is harder to understand that HTML. I don't even know if I am looking in the right area, but is this the right code to edit and if so, what do I edit? If it isn't then how is it possible to arrange the Blocks the way I want them?


echo "<table bgcolor=\"#e7e9eb\" align=\"center\" width=\"95%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
    ."<tr valign=\"top\">\n"
    ."<td bgcolor=\"#333\"><img src=\"themes/V-Mecha/images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
    ."<td><img src=\"themes/V-Mecha/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
    ."<td valign=\"top\">\n";
    if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='gallery') OR ($name=='Members_List')) {
} else {
    blocks(left);
}
echo "<td><img src=\"themes/V-Mecha/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
    ."<td align=\"center\" valign=\"top\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n";
    $public_msg = public_message();
    echo "$public_msg<br>";
        if (defined('INDEX_FILE')) {
    blocks(centre);
        }
}

function themefooter() {
    global $banners, $foot1, $foot2, $foot3, $copyright, $totaltime, $slogan;
    if (defined('INDEX_FILE')) {
echo "</td>\n"
    ."<td><img src=\"themes/V-Mecha/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
    ."<td valign=\"top\">\n";
    blocks(right);
}
echo "</td>\n"
    ."<td width=\"4\"><img src=\"themes/V-Mecha/images/spacer.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
    ."<td bgcolor=\"#333\"><img src=\"themes/V-Mecha/images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
    ."</td>\n"
    ."</tr>\n"
    ."</table>\n\n\n";

Any help would be much appeciated.

Kind Regards,
Ben Foley
Link to comment
https://forums.phpfreaks.com/topic/15086-block-admin/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.