| Author |
Message |
Surfmember
Nuke Cadet


Joined: Jun 27, 2003
Posts: 7
|
Posted:
Fri Aug 22, 2003 8:44 pm |
  |
First need to apologize for putting what is below into the wrong Forum (Bug Reports), so will see if I can delete it there. But here is the newbie question I had:
---------------------------------------------------------------------------------
Whoever cares to help!
I'm using the Xit! Theme I dled from Nukemods months ago.
It's set at 100% from checking it out from changing different resolutions with Win98.
Now for the dumb question -
Do I go into Theme.php (ONLY?) to change it to 800X600 and be able to Center it as well?
I'm a newbie and not sure what to do....
(anyone willing to give/share stepbystep help?)
Thanks in advance!
Surfmember |
Last edited by Surfmember on Wed Sep 03, 2003 4:15 pm; edited 1 time in total |
|
   |
 |
erbuc
Corporal


Joined: Apr 17, 2003
Posts: 65
|
Posted:
Fri Aug 22, 2003 11:51 pm |
  |
I beleive that the sizes for tables is in the tables.php file in the theme directory. The theme.php file manages the color scheme among other things |
_________________ erbuc
*********
Live! from Bangkok, Thailand
http://www.siamcomm.com |
|
     |
 |
Surfmember
Nuke Cadet


Joined: Jun 27, 2003
Posts: 7
|
Posted:
Sat Aug 23, 2003 6:54 am |
  |
That's it? Edit only Tables.php and Center everything in Tables.php as well, without having to touch any other file?
If you have an example I could go by - it would be great since I'm new.
Thanks for your input!!!!
Surfmember |
|
|
   |
 |
erbuc
Corporal


Joined: Apr 17, 2003
Posts: 65
|
Posted:
Mon Aug 25, 2003 3:58 am |
  |
Well, in order to protect myself and at the risk of leading you astray it would be good to see the code from those two files associated with the theme. Then we can be sure.  |
_________________ erbuc
*********
Live! from Bangkok, Thailand
http://www.siamcomm.com |
|
     |
 |
Surfmember
Nuke Cadet


Joined: Jun 27, 2003
Posts: 7
|
Posted:
Tue Aug 26, 2003 7:17 am |
  |
Hey! Thanks for responding back!
The XIT!
Once again, the main thing I want to do is 'CENTER' this theme and make it 800X600.....
I've included 3 Files of the XIt! (top sections) Theme - HEADER.HTML, TABLES.PHP & THEME.PHP...Not sure why I've included the Theme.php..
----------------------------------------------------------------------------------
HEADER.HTML FILE
<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="110" bgcolor="#FFFFFF"><a href="index.php"><img src="themes/TheXiT/images/logo.gif" border="0" alt="$sitename"></a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="150" nowrap><font class="content">$theuser</font></td>
----------------------------------------------------------------------------------
TABLES.PHP FILE
<?php
/************************************************************/
/* OpenTable Functions */
/* */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to */
/* properly close our tables. The difference is that */
/* OpenTable has a 100% width and OpenTable2 has a width */
/* according with the table content */
/************************************************************/
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td bgcolor=\"#D9E1E9\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td bgcolor=\"#7E95AB\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td bgcolor=\"#D9E1E9\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td>";
}
function CloseTable() {
echo "</td>
</tr>
</table></td>
-----------------------------------------------------------------------------------------
THEME.PHP FILE
<?php
/************************************************************/
/* Theme Name: TheXiT */
/* Theme Design: mikem (www.nukemods.com) */
/* */
/* Theme inspired by the phpbb2 style TheXiT by */
/* ProgramHouze (http://www.fsonline.ca/freeboardph/) */
/* */
/************************************************************/
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
$bgcolor1 = "#D9E1E9";
$bgcolor2 = "#D9E1E9";
$bgcolor3 = "#C5D0DC";
$bgcolor4 = "#3F5569";
$textcolor1 = "#2181B0";
$textcolor2 = "#2181B0";
include("themes/TheXiT/tables.php");
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#FFFFFF\" text=\"#2181B0\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
if ($banners == 1) {
include("banners.php");}
$topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = " <a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
} else {
$theuser = " Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/TheXiT/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/TheXiT/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
-------------------------------------------------------------------------------------------
Which ones should be changed?? Just the Tables or/and Header??
Thanks Once Again!!
Cheers,
Surfmember |
|
|
   |
 |
ferhanz
Nuke Soldier


Joined: Aug 29, 2003
Posts: 22
Location: Lahore,Pakistan
|
Posted:
Tue Sep 02, 2003 5:45 am |
  |
i have the same question..have u guys got the answer yet ? |
|
|
       |
 |
Surfmember
Nuke Cadet


Joined: Jun 27, 2003
Posts: 7
|
Posted:
Wed Sep 03, 2003 4:11 pm |
  |
Even though I prefer phpnuke now... Mambo was a little easier for me to make 800X600 and center it as well..
With phpnuke - the blocks just continue to get messed up...
If anyone can give just an example - it would be greatly appreciated!
thanx once again,
Surfmember |
|
|
   |
 |
Surfmember
Nuke Cadet


Joined: Jun 27, 2003
Posts: 7
|
Posted:
Fri Sep 05, 2003 6:22 pm |
  |
Is there ANYONE I CAN PAY????
I was told this was the place to get the answer...
Surfmember |
|
|
   |
 |
Surfmember
Nuke Cadet


Joined: Jun 27, 2003
Posts: 7
|
Posted:
Sun Sep 07, 2003 5:55 am |
  |
Nevermind!
Finally got it .......
didn't need to touch the tables at all...=)
Surfmember |
|
|
   |
 |
TheGodmaster
Captain


Joined: Aug 17, 2003
Posts: 377
|
Posted:
Mon Sep 08, 2003 6:32 pm |
  |
Errr so how did you do it??
any chance of telling us?
thanks |
|
|
   |
 |
|
|