SimplePortal

Support => English Support => Topic started by: modded matt on January 31, 2012, 12:42:33 PM

Title: curved issues
Post by: modded matt on January 31, 2012, 12:42:33 PM
ok, so I coded my own custom theme. I had to make a few modifications to SP in the process. This was fine in the 2.3.3 version, but now that I have updated to 2.3.4, I am having issues. my block headers only have rounded bars at the right side, not the left. when I try to find the piece of code to fix this, I can see it, but any editor I try to use shows this piece of code coming from a file that does not exsist on my forum. lol its a css code but the editor shows it in a php file.

here is the site: http://www.acidmods.com/forum/index.php

here is the code that needs to be edited:
Code: [Select]
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
    background: url("http://www.acidmods.com/forum/Themes/blue_alt/images/theme/main_block.png") no-repeat scroll 0 -160px transparent;

the transparent rendering needs to change to my background color. the editor states this div is over riding the portal css and using this dive from "index.php#2 line 72"

there is no index.php#2 on my server....
Title: Re: curved issues
Post by: AngelinaBelle on February 08, 2012, 02:52:02 PM
It sounds like you want Simple Portal to support your "transparent corners" theme, using the same code in its blocks template as SMF uses in its CURVE template, or as your custom template uses in to make catbg headings.

It would be nice if the SMF themes provided "catbg" as a function that Simple Portal could just call and re-use. But they don't. Simple Portal is using a template that does not support your theme.

You want to make modifications in blocks.template.php.  Then the CSS should not be an issue.  Probably.  Depending on the details of your custom theme.
Title: Re: curved issues
Post by: modded matt on February 11, 2012, 09:06:18 AM
You want to make modifications in blocks.template.php

this file is not contained in the installer for the 2.3.4 package
Title: Re: curved issues
Post by: Chen Zhen on February 11, 2012, 10:26:45 AM
Copy the file portal.css into: http://www.acidmods.com/forum/Themes/blue_alt/css/

Edit the (copied) file.. scroll to the bottom & find:

Code: [Select]
/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
}
h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
}

Replace with:
Code: [Select]
/* ************************************* */
/* Compatibility styles                  */
/* ************************************* */
h4.catbg span.left, h4.catbg2 span.left, h3.catbg span.left, h3.catbg2 span.left, .table_list tbody.header td span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
        background: url(../images/theme/main_block.png) no-repeat 10% -160px;
}
h4.titlebg span.left, h3.titlebg span.left
{
float: left;
display: block;
width: 9px;
height: 31px;
        background: url(../images/theme/main_block.png) no-repeat 10% -160px;
}

I got the graphic from your index.css file of that theme although it is usually at 0% for the left side of the graphic.
If the above does not display properly, try replacing the above last entry with ie.
Code: [Select]
background: url(../images/theme/main_block.png) no-repeat 0 -160px;

.. you appear to be using a custom theme, therefore I am unable to test it myself.
Title: Re: curved issues
Post by: AngelinaBelle on February 28, 2012, 04:39:59 PM
Does this work with your theme?
SimplePortal 2.3.8 © 2008-2024, SimplePortal