Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
PaoloIV
New Member
New Member



Joined: Mar 20, 2005
Posts: 15

PostPosted: Sun Mar 20, 2005 2:50 pm Reply with quote

on the theme I have on this site http://www.meryrose.altervista.org/html/modules.php?name=Forums as you can see the forums are displayed wide, how can I make the forums get BETWEEN the blocks? I remmebre there was a number to change somewhere

thanks a lot

Paolo
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Mar 20, 2005 6:35 pm Reply with quote

You are probably referring to the setting $index=1; which will display the blocks on the right hand side, if the theme allows it. However, this theme is preventing both side blocks from displaying. So, unless the author has provided settings for you, you will need to modify the theme.php (probably) to allow the left and/or right blocks.
 
View user's profile Send private message
PaoloIV







PostPosted: Mon Mar 21, 2005 4:04 am Reply with quote

I think the problem is with my theme.php.....can you help me set it to showing left blocks?

here's the code

Code:
<?php

$bgcolor1 = "#1A0001";
$bgcolor2 = "#2C2E2B";
$bgcolor3 = "#2C2E2B";
$bgcolor4 = "#2C2E2B";
$textcolor1 = "#ffffff";
$textcolor2 = "#ffffff";

function OpenTable() {
    ?>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
   <td><img name="tlc" src="themes/WOWTech/images/tlc.jpg" width="42" height="37" border="0" alt=""></td>
   <td width="100%" background="themes/WOWTech/images/tm.jpg"><img name="tm" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
   <td><img name="trc" src="themes/WOWTech/images/trc.jpg" width="42" height="37" border="0" alt=""></td>
  </tr>
  <tr>
    <td background="themes/WOWTech/images/leftside.jpg"><img name="left" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
     <td valign="top" bgcolor="#000000" background="themes/WOWTech/images/News.jpg">
<?
}
function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=row1>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td>\n";
}

function CloseTable() {
    ?>
    </td>
    <td background="themes/WOWTech/images/rightside.jpg"><img name="right" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
  </tr>
  <tr>
   <td><img name="blc" src="themes/WOWTech/images/blc.jpg" width="42" height="36" border="0" alt=""></td>

    <td background="themes/WOWTech/images/btm.jpg"><img name="btm" src="themes/WOWTech/images/spacer.gif" width="0" height="0" border="0" alt=""></td>
   <td><img name="brc" src="themes/WOWTech/images/brc.jpg" width="42" height="36" border="0" alt=""></td>
  </tr></table>
<?
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

/************************************************************/
/* Function themeheader()                                   */
/************************************************************/
    function themeheader() {
    global $user, $cookie, $prefix, $name, $dbi, $db;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    $public_msg = public_message();
    echo "$public_msg";



echo "<body background=\"themes/WOWTech/images/bg.gif\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
include("themes/WOWTech/header.php");
echo "<table width=\"100%\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
."<TD WIDTH=\"160\" HEIGHT=\"100%\" valign=top bgcolor=#1A0001>\n";
if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) {
} else {
blocks(left);
}
echo "</td>\n"
."<TD WIDTH=\"100%\" valign=top bgcolor=#1A0001>\n";
}


/************************************************************/
/* Function themefooter()                                   */
/************************************************************/

function themefooter() {
    global $index, $banners;

    if ($index == 1) {
        echo "</td>\n"
            ."<td width=\"160\" valign=\"top\" bgcolor=#1A0001>\n";
        blocks(right);
    }
    echo "</td>\n"
        ."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
            ."</tr>\n"
            ."</table>\n";
     include("themes/WOWTech/footer.php");
   echo "<table width=\"100%\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
                ."<tr valign=\"top\">\n"
        ."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
            ."<TD WIDTH=\"100%\" valign=top align=center bgcolor=#1A0001>\n";

echo "</td>\n"
        ."<TD WIDTH=\"0\" HEIGHT=\"100%\" valign=top background=\"themes/WOWTech/images/spacer.gif\"><IMG SRC=\"themes/WOWTech/images/spacer.gif\" WIDTH=\"0\" HEIGHT=\"1\"></TD>\n"
            ."</tr>\n"
            ."</table>\n";

}

/************************************************************/
/* Function themeindex()                                    */
/* This function format the stories on the Homepage         */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;

$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
        $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
        $t_image = "$tipath$topicimage";
}
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    //Code Changed - just show posted by
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time  ";
    //End Code Change
    $datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
    $morelink = substr($morelink, strlen($datetime) + 2);
    $tmpl_file = "themes/WOWTech/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
        $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
        $t_image = "$tipath$topicimage";
}
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/WOWTech/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

function themesidebox($title, $content) {
    $tmpl_file = "themes/WOWTech/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
?>


thx
 
Raven







PostPosted: Mon Mar 21, 2005 9:46 am Reply with quote

In the function "themeheader" change
Code:
if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) {

} else {
blocks(left);
}
to
Code:
blocks(left);
 
PaoloIV







PostPosted: Mon Mar 21, 2005 11:55 am Reply with quote

it works!!!!
now what if I want to see both the blocks?

thanks really for the help
you'r great
 
Raven







PostPosted: Mon Mar 21, 2005 12:15 pm Reply with quote

You can try adding this line to the top of modules/Forums/index.php
$index=1;
 
PaoloIV







PostPosted: Mon Mar 21, 2005 12:57 pm Reply with quote

IT WORKS!

thanks for the great help, I'm really in your debt ^^
 
Raven







PostPosted: Mon Mar 21, 2005 1:11 pm Reply with quote

It's real easy to get out of debt. Hit the Donations block Laughing
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©