| View previous topic :: View next topic |
| Author |
Message |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
Posted: Sat Feb 25, 2012 2:27 pm Post subject: |
|
|
The themes theme.php should be where you want to look. It really depends on how the theme was written. I will give you an example for the RavenIce theme. In theme.php in function themeheader() you will find
Change that to something like this
Code:echo '<body><div style="width:970px; margin-left: auto; margin-right: auto;">';
|
That will give you a fixed width of 970 and center the content by using the margins set to auto. You will need to close that div in the function themefooter() after the last closing div. _________________ Tricked Out News |
|
| Back to top |
|
 |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
Posted: Sat Feb 25, 2012 10:48 pm Post subject: |
|
|
I replaced line 72 with: echo '<body><div style="width:970px; margin-left: auto; margin-right: auto;">'; It all looks good. It's what I was looking for.
What about the old settings that was removed.
'<body bgcolor="#FFFFFF" text="#516A88"
and
"You will need to close that div in the function themefooter() after the last closing div."
Without the underlines above, everything appear just fine with just replacing line 72 with the code you provided. I only changed the width in your code.
Will I find problems later?
Why do the theme look the same, except the new fixed width?
Do I still need to close the div?
Is the div already closed by the chosen theme?
Thanks again.
P.S. I tried to post this reply before you replied, but kept getting this message:
ERROR: 403 - Forbidden
You do not have permission to access the requested file
Hint: The server understood the request, but is refusing to fulfill it
Authorization will not help and you SHOULD NOT repeat the request as you may be banned
Refered From : http://trickedoutnews.com/ftopict-220.html
Your IP : 68.55.190.53
Page Requested : /modules.php?name=Forums&file=posting
Agent : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)
Redirect Status : 403 |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
|
| Back to top |
|
 |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
Posted: Sat Feb 25, 2012 11:31 pm Post subject: |
|
|
Line 72 now reads: echo '<body bgcolor="#FFFFFF" text="#516A88" style="margin: 0px"><div style="width: 984px; margin-left: auto; margin-right: auto;">';
Thank you.
I still need to close. It seems that my line 144 is not the same as your line 144.
Code:126 function themefooter() {
127 global $foot1, $foot2, $foot3, $copyright, $totaltime, $footer_message;
128 if (defined('INDEX_FILE') && INDEX_FILE===true) {
129 $tmpl_file = 'themes/fisubice/center_right.html';
130 $thefile = implode('', file($tmpl_file));
131 $thefile = addslashes($thefile);
132 $thefile = '$r_file="'."$thefile".'";';
133 eval($thefile);
134 print $r_file;
135 blocks('right');
136 }
137
138 echo '</td></tr></table><table width="100%"><tr><td> </td></tr></table>';
139 echo '<center>'."\n";
140 echo LGL_MENU_HTML; // Added by montego to "showcase" the use of the new Legal Module
141 echo '<div class="small">';
142 $footer_message = footmsg();
143 echo '</div>';
144 echo '</center>'."\n";
|
P.S. Received shortlinks bug again.
Last edited by Mike63740 on Wed Mar 07, 2012 2:38 pm; edited 1 time in total |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
Mike63740 I might as well work here


Joined: Jan 07, 2010 Posts: 127 Location: Washington, DC
|
Posted: Wed May 09, 2012 1:02 pm Post subject: |
|
|
These are original unchanged codes.
Theme Name: fisubice
File Name: theme.php
Code:RavenNuke 2.50.00
73 echo '<body bgcolor="#FFFFFF" text="#516A88" style="margin: 10px">';
RavenNuke 2.40.01
72 echo '<body bgcolor="#FFFFFF" text="#516A88" style="margin: 10px">';
RavenNuke 2.50.00
139 echo '</td></tr></table><table width="100%"><tr><td> </td></tr></table>';
140 echo '<div class="text-center">'."\n";
141 echo LGL_MENU_HTML; // Added by montego to "showcase" the use of the new Legal Module
142 echo '<div class="small">';
143 $footer_message = footmsg();
144 echo '</div>';
145 echo '</div></div>'."\n";
RavenNuke 2.40.01
138 echo '</td></tr></table><table width="100%"><tr><td> </td></tr></table>';
139 echo '<center>'."\n";
140 echo LGL_MENU_HTML; // Added by montego to "showcase" the use of the new Legal Module
141 echo '<div class="small">';
142 $footer_message = footmsg();
143 echo '</div>';
144 echo '</center>'."\n";
|
Bobby, you posted above how to write the closing div for 2.40.01, but I am stumped because 2.50.00 is somewhat different. Most of the codes between the two are the same, but where the closing div goes is not.
Please re-write the entire line 145 with the closing div for RavevNuke 2.50.00.
Thank you. _________________ Open-source software has been changing lives since 1998. |
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 779 Location: North Carolina
|
|
| Back to top |
|
 |
|
|