31
highlander
fixed width for left hand colom ?
  • 2006/8/19 9:08

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Wow, these css themes are brillant.

I am playing about with the 'fixed' theme at the moment and I was wondering how to set the width (in pixels) of the left colom.

The width of the colom seem to be changing when I change the width of the entire theme. I have bashed the css about but I am unsure as to what is the best approach to give the left colom a fixed width.

The look I am trying to go for is a fixed left hand colom (say 180px) and left blocks which take up all the width. (No margin around the left blocks)

Any thoughts on the best way to achieve this ?

Kind regards,

Highlander
So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me...
www.AnimalPedigree.com

32
irmtfan
Re: fixed width for left hand colom ?
  • 2006/8/23 21:52

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


finally i found a way to add edit and delete icons
it is for XOOPS 2.0.14 only.

open class/theme_blocks.php
around line 100 do this change:
// Start - change this function like below to add Edit and Delete  icons for all blocks in title - hacked by irmtfan @ xoops.org
    
function buildBlock$xobject, &$template ) {
        
// The lame type workaround will change
        
[color=ff0000]global $xoopsUser;[/color]
        
$block = array(
            
'module'    => $xobject->getVar'dirname' ),
            [
color=ff0000]'title'        => ($xoopsUser && $xoopsUser->isAdmin()) ? $xobject->getVar'title' ).
                                                                                                  
"<a href=".XOOPS_URL."/modules/system/admin.php?fct=blocksadmin&op=edit&bid=".$xobject->getVar('bid').
                                                       
"> <img src=".XOOPS_URL."/images/icons/edit.gif"." title="._EDIT." alt="._EDIT."  /> </a>".
                                                       
"<a href=".XOOPS_URL."/modules/system/admin.php?fct=blocksadmin&op=delete&bid=".$xobject->getVar('bid').
                                                       
"> <img src=".XOOPS_URL."/images/icons/delete.gif"." title="._DELETE." alt="._DELETE."  /> </a>" $xobject->getVar'title' ) ,[/color]
            
//'name'        => strtolower( preg_replace( '/[^0-9a-zA-Z_]/', '', str_replace( ' ', '_', $xobject->getVar( 'name' ) ) ) ),
            
'weight'    => $xobject->getVar'weight' ),
            
'lastmod'    => $xobject->getVar'last_modified' ),
            [
color=ff0000]'id'        => $xobject->getVar('bid'), // it is not needed and i just add it for those theme designers that want to have a Smarty variable. ( <{$block.id}> ==> block id )[/color]
        
);
// End - hacked by irmtfan @ xoops.org


then you can edit and delete blocks easily in user side.

thanks to Gijoe for help me to do this.
http://www.peak.ne.jp/xoops/md/xhnewb ... ost_id=6215#forumpost6215

and also thanks to technigrafa for Original idea.

33
irmtfan
Re: fixed width for left hand colom ?
  • 2006/8/24 11:25

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


OK i also add this feature in XOOPS 2.2.4:

- open kernel/block.php
- around line 229 renew RED code:


$block_info = array(
                
'id'        => $instanceid,
                
'typeid'    => $block_arr[$i]->block->getVar('bid'),
                [
color=ff0000]'title'        => ($xoopsUser && $xoopsUser->isAdmin()) ? $block_arr[$i]->getVar('title').
                                                       
"<a href=".XOOPS_URL."/modules/system/admin.php?fct=blocksadmin&op=edit&id=".$instanceid.
                                                       
"> <img src=".XOOPS_URL."/images/icons/edit.gif"." title="._EDIT." alt="._EDIT."  /> </a>".
                                                       
"<a href=".XOOPS_URL."/modules/system/admin.php?fct=blocksadmin&op=delete&id=".$instanceid.
                                                       
"> <img src=".XOOPS_URL."/images/icons/delete.gif"." title="._DELETE." alt="._DELETE."  /> </a>" $block_arr[$i]->getVar('title'),[/color]
                
'content'    => $bcontent,
                
'weight'    => $block_arr[$i]->getVar('weight'),


i also do a little modify in the last post for 2.0.14 code

34
Chappy
Re: fixed width for left hand colom ?
  • 2006/9/3 22:04

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


Has anyone made further progress on any of these themes? I've been playing around with them since the initial post, but Still having problems making any of the themes so they are completely overlap/displacement free.

This is a really great direction to move in, though, and will help XOOPS a lot in the days ahead (I think) if we are able to offer stable cross-browser css themes...
MMM...It tastes like chicken! ...

35
snow77
Re: CSS100 [Holy Grail CSS Wireframe Theme]
  • 2006/9/3 22:55

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


CSS100 is still same, no further work on that one. Am working on a new one based more on XOOPS 2.3 new classes.

If you have a problem with CSS100 and are able to show me in a live site, I'd appreciate it so I can analyze the CSS better.

36
Chappy
Re: CSS100 [Holy Grail CSS Wireframe Theme]
  • 2006/9/4 6:51

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


snow77:

You can go to my site and switch themes between my default theme (table-based), fixed, css100, and zetareticuli. I'll try to implement any suggestions you make as I am able.
MMM...It tastes like chicken! ...

37
technigrafa
Re: CSS100 [Holy Grail CSS Wireframe Theme]

Hey guys. I've made a few changes to the fixed "Skiddo Too" theme since the one you have on your website. I added some hidable objects like the login/usermenu blocks and notifications. And the horizontal menu is now dynamic - it will automatically link to sublinks for the current module. I believe it is uploaded over the old file in my old post. Have you experienced any problems with the fixed theme? Looks good on your site as far as I can tell. I have not had the time to working on a non-fixed version yet

38
javelin
Re: CSS100 [Holy Grail CSS Wireframe Theme]
  • 2006/9/4 15:25

  • javelin

  • Not too shy to talk

  • Posts: 160

  • Since: 2004/3/11


FF all seem fine and dandy.

In ie however the only way I can stop the left column dropping down below the level of the center column is by clicking on the large font icon.

Clicking on Medium and small font icons drop the left column.
The default is small.

I tried increasing the width from 760 to 860 but it makes no difference.
Also when going into some of the site links the right column is dropped but can be sorted again by clicking on the font size.
In some cases both large and medium work fine but small does not.

I've tagged the theme to the following site for you to have a look at.

http://www.suffolkvapc.org/


Love the sub menu options - very cool

Oh and the client likes purple by the way
I might not be very clever but I can lift heavy weights!

39
snow77
Re: CSS100 [Holy Grail CSS Wireframe Theme]
  • 2006/9/4 16:06

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Quote:

snow77:

You can go to my site and switch themes between my default theme (table-based), fixed, css100, and zetareticuli. I'll try to implement any suggestions you make as I am able.

source quote, chappy

thank you for taking the time to testing the themes, I can visualize now much better how CSS100 behaves on a site with lots of content, this will help me identify which corrections have to be made to make a solid foundation where to start building themes.

40
Chappy
Re: CSS100 [Holy Grail CSS Wireframe Theme]
  • 2006/9/4 22:03

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


I'll be happy to continue to try them out as improvements are made.
MMM...It tastes like chicken! ...

Login

Who's Online

59 user(s) are online (33 user(s) are browsing Support Forums)


Members: 0


Guests: 59


more...

Donat-O-Meter

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

Latest GitHub Commits