1
ThatPoshGirl
Does anyone have a fixed width version of the fydarkblack theme?

I'm trying to make the fydarkblack theme fixed width and it is not going well. Does anyone happen to have one they can send me?

2
Bassman
Re: Does anyone have a fixed width version of the fydarkblack theme?
  • 2006/10/4 0:43

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Not that hard to do, all you need to do is open theme.html and add just below <body>:
Quote:

<div id="container" align="center">


and don't forget to close the div immediately before </body>

Then in your style.css file:

Quote:


div#container {width:750px;}



Or whatever width you want. If there's more than one css file, add it to all of them.

3
ThatPoshGirl
Re: Does anyone have a fixed width version of the fydarkblack theme?

Thanks for the advice but that didn't work. In ie it made the logo center but in NetScape it did nothing at all.

http://thrillerotica.com

4
Bassman
Re: Does anyone have a fixed width version of the fydarkblack theme?
  • 2006/10/4 1:48

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Odd...... let me download it and have a look.

5
Bassman
Re: Does anyone have a fixed width version of the fydarkblack theme?
  • 2006/10/4 2:00

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


OK this worked for me: Needed an extra <div> to make it centre properly.

Quote:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> :: <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body><div align="center">
<div id="container">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">
<table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="<{$xoops_url}>/"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/images/logo.gif" border="0" alt="<{$xoops_sitename}>" title="<{$xoops_sitename}>" /></a></td>
<td align="center" width="100%"><{$xoops_banner}></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="center" class="topnav">&nbsp;<a href="<{$xoops_url}>/"><{$xoops_sitename}></a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/news/">News</a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/newbb/">Forum</a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/xoopspoll/">Voting</a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/xoopsmembers/">Members</a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/mydownloads/">Downloads</a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/mylinks/">Links</a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/xoopsfaq/">FAQ</a>&nbsp; •&nbsp;
<a href="<{$xoops_url}>/modules/contact/">Contact</a>&nbsp;</td>
</tr>
</table>

<table cellspacing="0">
<tr>
<td id="leftcolumn" valign="top">

<!-- Start left blocks loop -->

<{foreach item=block from=$xoops_lblocks}>
<div class="blockTitle"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/images/point_01.gif" width="13" height="13" align="middle" border="0" alt="" hspace="3" /><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>

<!-- End left blocks loop -->

</td>

<td id="centercolumn" valign="top">

<!-- Display center blocks if any -->

<{if $xoops_showcblock == 1}>
<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">

<!-- Start center-center blocks loop -->

<{foreach item=block from=$xoops_ccblocks}>
<div style="padding: 5px;">
<fieldset>
<legend class="blockTitle"><{$block.title}></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
</div>
<{/foreach}>

<!-- End center-center blocks loop -->

</td>
</tr>
<tr>
<td id="centerLcolumn">

<!-- Start center-left blocks loop -->

<{foreach item=block from=$xoops_clblocks}>
<div style="padding: 0px 0px 0px 8px;">
<fieldset>
<legend class="blockTitle"><{$block.title}></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
</div>
<{/foreach}>

<!-- End center-left blocks loop -->

</td><td id="centerRcolumn">

<!-- Start center-right blocks loop -->

<{foreach item=block from=$xoops_crblocks}>
<div style="padding: 0px 5px 0px 0px;">
<fieldset>
<legend class="blockTitle"><{$block.title}></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
</div>
<{/foreach}>

<!-- End center-right blocks loop -->

</td>
</tr>
</table>
<{/if}>

<!-- End display center blocks -->

<div id="content">
<{$xoops_contents}>
</div>
</td>
<{if $xoops_showrblock == 1}>

<td id="rightcolumn" valign="top">

<!-- Start right blocks loop -->

<{foreach item=block from=$xoops_rblocks}>
<div class="blockTitle"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/images/point_01.gif" width="13" height="13" align="middle" border="0" alt="" hspace="3" /><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>


<!-- End right blocks loop -->
<{/if}>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr><td align="center" class="topnav">
<div class="gensmall"><{$xoops_footer}> :: <a href="http://theme4u.simnext.com/" target="_blank">Theme4u</a></div>
</td></tr></table>
</table></div></div></body>
</html>



don't forget to clear the contents of templates_c folder of everything except index.html after you've finished.

6
ThatPoshGirl
Re: Does anyone have a fixed width version of the fydarkblack theme?

Thanks Bassman,

I must be doing something wrong because it still doesn't work. I'll keep working on it and figure it out eventually.

eta. Doh, I figured it out. Thanks again Bassman.

7
Bassman
Re: Does anyone have a fixed width version of the fydarkblack theme?
  • 2006/10/4 2:17

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I tried it on my local test site and it worked :(

The other thing you need to do, is make sure that "Update module template .html files from themes/your theme/templates directory?" is set to Yes in Admin>Preferences>general settings (Until everything is correct, then set back to "No"

Also, did you add the div style to style.css?

EDIT: Ah, OK, cool.

Login

Who's Online

202 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits