1
xoobaru
Theme select block displays a comressed select box
  • 2013/1/17 23:39

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Hello everyone,
I did not even want to post this, and I know real estate is getting expensive, but can anyone tell me why the dropdown form box in the system "themes select" block only occupies ten percent of the available width of the whatever column it is in. It is showing perhaps the first initial of each theme.

I have witnessed varying results from theme to theme with this block. Even in the best case, it could do better cosmetically speaking. All other content blocks display their content correctly.

Tweaking width parameters (px or % modes) for the content portion of the block, or the containter do not have any impact, and there is no apparent html code issues.

It does display perfectly when running IE8 in browser compatibility mode (older browsers) so I am thinking that this block html is dated.

What could be causing this, and is there a workaround?


2
Mamba
Re: Theme select block displays a comressed select box
  • 2013/1/18 2:45

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


What XOOPS version are you using, and what browser?
Can your provide a screenshot?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
irmtfan
Re: Theme select block displays a comressed select box
  • 2013/1/18 6:26

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


maybe it is hardcoded in xoops255/modules/system/blocks/system_blocks.php line 565:

$block['theme_select'] = '<select name="xoops_theme_select" onchange="submit();" size="3">'.$theme_options.'</select>';

change the size to a higher number.

4
Anonymous
Re: Theme select block displays a comressed select box
  • 2013/1/18 11:19

  • Anonymous

  • Posts: 0

  • Since:


I can confirm this issue, in 2.5.4 the block shows normal but after an upgrade to xoops 2.5.5 I also get this tiny block.

I tested with IE, Chrome, Safari and Firefox and can confirm the issue is in all browsers.

5
Anonymous
Re: Theme select block displays a comressed select box
  • 2013/1/18 11:31

  • Anonymous

  • Posts: 0

  • Since:


Quote:
maybe it is hardcoded in xoops255/modules/system/blocks/system_blocks.php line 565:


I tried but this setting only changes the height Irmtfan

6
Anonymous
Re: Theme select block displays a comressed select box
  • 2013/1/18 12:08

  • Anonymous

  • Posts: 0

  • Since:


I did some more research and found out it is related to the width of the biggest theme name shown. I renamed zetagenisis to a realy huge name with all left blocks blown up in the default theme as a result. In some other themes only the theme name peeps out of the block...

Look at my testsite:http://255.nlxoops.nl/

It's not 2.5.5 related as I was thinking before!

7
xoobaru
Re: Theme select block displays a comressed select box
  • 2013/1/18 18:57

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Using 2.5.5. Using three 1024 px themes based on .css variants of the same theme so there is no wider theme in use. All other themes, and their associated smarty compiled and cache content have been purged.

I also tried changing the size=3 spec to 80 and it blew past the bottom of the display.

Mamba, could not find a way to attach or upload image so can't help there. If you can imagine just seeing enough area to view the first initial 3 - 6 mm viewing area inside the select box, then you see the same thing.

Also the text underneath looks like this:

(3
themes)

So it starts a new line after using only one quarter of the available horizontal linespace.

8
Mamba
Re: Theme select block displays a comressed select box
  • 2013/1/18 20:13

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
Mamba, could not find a way to attach or upload image so can't help there.

Just take a screenshot, upload it to a service like www.flickr.com or other online-sharing services, and just place the link to that image between these tags:

[ img]http://myimageservice.com/myimage.jpg[/img ]

(just remove the empty space in the front and in the end - I had to add them so you can see the tags.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

9
xoobaru
Re: Theme select block displays a comressed select box
  • 2013/1/18 20:58

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


Here it is

Resized Image


It is the entire area of the themblock.

10
irmtfan
Re: Theme select block displays a comressed select box
  • 2013/1/19 5:40

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Ok now i understand your issue. sorry i wrongly think you need more space vertically

I believe a min-width will solve your issue.
open xoops255/modules/system/templates/blocks/system_block_themes.html then add a new class "xo-block-theme"
<div class="txtcenter xo-block-theme">
<
form action="<{xoAppUrl index.php}>" method="post">
<{
$block.theme_select}>
</
form>
</
div>


then define in your theme style.css
.xo-block-theme select{
min-width100px;
}


then update your system module.

you can do it with the old class "txtcenter" too without modifying templates like this:

.txtcenter select{
min-width100px;
}


but i personally prefer to add a unique class.


Login

Who's Online

239 user(s) are online (170 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

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

Latest GitHub Commits