SimplePortal

Customization => Themes and Graphics => Topic started by: Fabhino22Elz on June 17, 2010, 10:34:32 AM

Title: Alternating Block Backgrounds
Post by: Fabhino22Elz on June 17, 2010, 10:34:32 AM
Hey there, i found an Topic about the Alternating Background for Articles and want to know if it is possible to get this to the boxes too?

Greetings!
Title: Re: Alternating Block Backgrounds
Post by: Nathaniel on June 17, 2010, 10:47:00 AM
Well, you could do this manually, by changing the 'Style Options' options for each block, there are predefined background classes that you can use to do that.

If you want to do it by editing a file, then I'll need to know some more information about what you want to do, before I can help with that.
Do you want to alternate the blocks all the way through? Or do you want to always have the same background for the first block in a particular side?
Do you want to define a css class for the alternating backgrounds, or just specify a simple color (could be using the style attribute)?
Title: Re: Alternating Block Backgrounds
Post by: Fabhino22Elz on June 17, 2010, 12:43:30 PM
Hey, i hope i understand you right, sorry, im not so good in english.

we have a design which is personalied by a guy. we want the boxes to look like on this image:

http://www.aa-bl.com/AABL.png

Is this possible? The Designer says it is no Problem in the SMF Forum, but he dosnt know much about the Simple Portal.

Greetings
Title: Re: Alternating Block Backgrounds
Post by: Fabhino22Elz on June 21, 2010, 02:12:06 PM
You have no idea Nathaniel?
Title: Re: Alternating Block Backgrounds
Post by: Nathaniel on June 21, 2010, 11:43:08 PM
Moved to the Themes and Graphics board.

You have no idea Nathaniel?

That would be incorrect, however support requests are more important than customization requests and studying for my exams has been more important for me of late. ;)

I'll tell you where to look, and you can pass that onto your designer.

If you are trying to edit the look/feel of every single block (at the same time) then refer to the "Themes/default/Portal.template.php" file.

If you are trying to edit the look/feel of a particular block type, then refer to the "Sources/PortalBlocks.php" file.
Title: Re: Alternating Block Backgrounds
Post by: Fabhino22Elz on June 22, 2010, 06:41:50 AM
I want to change the look of all Boxes. But as i told in the other poost, i dont undertsand php. so is it possible to get your help?
Title: Re: Alternating Block Backgrounds
Post by: Fabhino22Elz on June 28, 2010, 01:39:02 PM
Nobody able to help?  :'(
Title: Re: Alternating Block Backgrounds
Post by: AngelinaBelle on August 19, 2010, 10:38:52 AM
Portal.template.php tells the blocks how to look.
By default, windowbg is the style used.
 
But you could certainly
* Use "no style" and add a custom CSS class -- sp_alternate_styles
* Customize the block template with a global or static variable or array element sp_rotate_block_style
* Whenever the function is called with class sp_alternate_styles, choose from a list of desired CSS classes depending on the value of sp_rotate_block_style
* change the value of sp_rotate_block_style for the next use.
 
Your designer, if familiar with SMF, should be able to figure this out pretty easily.
 
Good Luck!
SimplePortal 2.3.8 © 2008-2024, SimplePortal