SimplePortal

Support => English Support => Topic started by: Zerito on October 13, 2010, 11:58:49 AM

Title: effect on the block 'Board News'
Post by: Zerito on October 13, 2010, 11:58:49 AM
Hi, I have installed:
SMF Version: 2 RC3
SP Version: 2.3.2

Then, I would like to help me get an effect on the block 'Board News'

my Board News is:
http://img299.imageshack.us/img299/4387/thisr.png

I would get this 'Title Class':
http://img267.imageshack.us/img267/8456/tothis.png
Title: Re: effect on the block 'Board News'
Post by: AngelinaBelle on October 13, 2010, 01:42:58 PM
Do you want the block titles to match the titles on board categories and the tops of posts?
If so, you will want to change your site's theme. That's the easiest approach.  It will change the appearance of board categories and tops of posts. too.
 
That would make this a theme and graphics question
 
-----------------------------------
If you just want this one block's title to change, you will need to make two steps
1) a little bit of custom code in the sp_boardNews function in PortalBlocks.php
2) Some new entries in portal.css
 
That would make this a custom coding plus theme and graphics question.
 
Instead of the class currently being used for every post title, (catbg), change it to another class.
You could call it sp_boardNewsTitle_bg
 
Next, you will modify portal.css.  Find all instances of catbg in index.css. Copy the ones you need (catbg, h3.catbg, h3.catbg span.left) copy them to portal.css, and change catbg to sp_boardNewsTitle_bg
 
 
The simplest part of this is going to be taking out the background image and choosing a background color instead.
 
You will also need to get rid of the background image for h3.sp_boardNewsTitle_bg span.left
When you are done, it will look just the way you want it.
Title: Re: effect on the block 'Board News'
Post by: Zerito on October 13, 2010, 04:00:11 PM
thank you AngelinaBelle..
following what you suggested, I get this:
http://img685.imageshack.us/img685/7537/finisht.png

u great!
Title: Re: effect on the block 'Board News'
Post by: AngelinaBelle on October 13, 2010, 04:47:04 PM
Contrasty!  Now you will teach others, OK?
SimplePortal 2.3.8 © 2008-2024, SimplePortal