TinyPortal

Development => Support => Topic started by: Greyhound on April 10, 2010, 08:21:52 PM

Title: Trouble Setting Width of site
Post by: Greyhound on April 10, 2010, 08:21:52 PM
TP has an option to set the width in % or pixels.  I've tried using it on both 1.0 Beta 3 and Beta 4 and it's not working. 

Is there something I'm missing? 

I'm running TP 1.0 Beta 3 right now and SMF 1.1.11. 

Any help would be appreciated.
Title: Re: Trouble Setting Width of site
Post by: IchBin on April 11, 2010, 01:23:36 AM
I haven't tested this lately, but are you checking this in the default core theme?
Title: Re: Trouble Setting Width of site
Post by: Greyhound on April 11, 2010, 07:37:29 AM
Yes, I'm  using the default theme. 

Title: Re: Trouble Setting Width of site
Post by: G6Cad on April 11, 2010, 12:51:26 PM
And you are writing in the % sign after the value you want like 80% or when using pixels you have to add the px after like 1024px
?

Just a number wont work
Title: Re: Trouble Setting Width of site
Post by: Greyhound on April 11, 2010, 02:01:04 PM
I had tried the % sign before.  Didn't work.  Yes, I was only putting a number in for the pixels.  I just tried 900px, 900 px and 900 pixels and none worked.

Just putting a number in 0.98 worked. 

Title: Re: Trouble Setting Width of site
Post by: RoarinRow on April 11, 2010, 03:21:56 PM
I have the same problem.  Using any of the formats above did not work for me.  I had to switch to the SMF default theme.  I'd appreciate any suggestions.
Title: Re: Trouble Setting Width of site
Post by: Crip on April 11, 2010, 03:32:54 PM
It works for me?  920px   77%  or whatever..

[........] sorry , mine doesn't either
Title: Re: Trouble Setting Width of site
Post by: G6Cad on April 11, 2010, 03:41:10 PM
Seems to be asome sort of bug then, please make a bugreport in our bugtracker for Bloc to see, and add in as much info as possible on your setup, themes etc and also add a link to this topic
Title: Re: Trouble Setting Width of site
Post by: bloc on April 11, 2010, 04:04:19 PM
That width is only active if the theme supports it. Many themes provide margins and even widths on whatever root div/body tag is used. Its impossible for TP to take control of every theme like that. I added it way back because many of my SMF 1.1 themes supported it.

The best way to set a width of a theme is to change the theme itself, through CSS or possibly the index.template. So no, not a bug.
Title: Re: Trouble Setting Width of site
Post by: Greyhound on April 11, 2010, 04:43:49 PM
The default theme in SMF doesn't support that function?
Title: Re: Trouble Setting Width of site
Post by: Crip on April 11, 2010, 04:44:34 PM
The old .Wrapper does the trick for most any Type Theme. :)
Title: Re: Trouble Setting Width of site
Post by: Greyhound on April 11, 2010, 05:00:19 PM
It's cool.  I just set the width in the css.  Thanks for the responses.
Title: Re: Trouble Setting Width of site
Post by: G6Cad on April 11, 2010, 09:22:10 PM
This issue was in the default smf theme bloc, thats why i thought it was a bug  :o
Title: Re: Trouble Setting Width of site
Post by: bloc on April 11, 2010, 11:51:17 PM
Ah yes, but I didn't add a change for default theme either on this, as that would suggest it would work on all themes, which it doesn't. The themes that do support it, simply checks if that variable exists and use it as the width.
Title: Re: Trouble Setting Width of site
Post by: G6Cad on April 12, 2010, 06:27:10 AM
The coin fell through and landed heavy in the "have to remember this one" box  O0
Title: Re: Trouble Setting Width of site
Post by: RoarinRow on April 12, 2010, 10:28:35 PM
I just checked my style.css file for the BZ14 theme and currently has this as the width:

/* The main post box - this makes it as wide as possible. */
.editor
{
   width: 96%;
}

Change it does not do anything.  Can I change any other place?
Title: Re: Trouble Setting Width of site
Post by: IchBin on April 12, 2010, 10:33:31 PM
umm huh? Are you talking about the width of your site like this topic is? Or are you talking about changing the editor width? The editor width has nothing to do with the site width. In the BZ them you're talking about, it's the #mainframe ID that controls that.
Title: Re: Trouble Setting Width of site
Post by: RoarinRow on April 12, 2010, 11:11:31 PM
Quote from: IchBinâ„¢ on April 12, 2010, 10:33:31 PM
umm huh? Are you talking about the width of your site like this topic is? Or are you talking about changing the editor width? The editor width has nothing to do with the site width. In the BZ them you're talking about, it's the #mainframe ID that controls that.

I'm talking about the width of the theme itself.  My BZ14 was set at 96% through the theme settings.  After the upgrade the theme width went from 96% to what looked like 60%.  This narrow width looked the same on my other installed themes except for the SMF Default Theme, which I'm now using because of this bug/issue.
Title: Re: Trouble Setting Width of site
Post by: ZarPrime on April 12, 2010, 11:59:49 PM
RoarinRow,

If you are talking about Bloc's theme called BZ14, I feel certain that Bloc has not updated this theme to work with SMF 2.0 RC3.  The last I checked, it was updated only for SMF 2.0 RC1.  Themes that worked great with SMF 1.1.x will not work with SMF 2.0 RC3 until they have been updated.

At this point, you would be better off asking about an update for this theme at Bloc's new Themes site --> http://www.blocweb.net/index.php

ZarPrime
Title: Re: Trouble Setting Width of site
Post by: RoarinRow on April 13, 2010, 08:17:18 PM
Quote from: ZarPrime on April 12, 2010, 11:59:49 PM
RoarinRow,

If you are talking about Bloc's theme called BZ14, I feel certain that Bloc has not updated this theme to work with SMF 2.0 RC3.  The last I checked, it was updated only for SMF 2.0 RC1.  Themes that worked great with SMF 1.1.x will not work with SMF 2.0 RC3 until they have been updated.

At this point, you would be better off asking about an update for this theme at Bloc's new Themes site --> http://www.blocweb.net/index.php

ZarPrime

Thank you Zar!  I'll have to do that.  I haven't updated my themes in years   :o
Title: Re: Trouble Setting Width of site
Post by: ZarPrime on April 14, 2010, 01:21:40 AM
RoarinRow,

I fully understand where you're coming from on this.  One of my sites has been using one of Bloc's older themes for a very long time as well.  Since I am in the planning process for upgrading it to SMF 2.0 RC3 and TP beta 5-1, I asked Bloc about the theme and, lo and behold, he told me that this particular theme is on his list for update.  needless to say, I was thrilled. :D

ZarPrime