Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: H3lioz - syyskuu 09, 2011, 12:42:26 IP

Otsikko: News Fader
Kirjoitti: H3lioz - syyskuu 09, 2011, 12:42:26 IP
Hey guys,

I wanna ask if anyone (please) can fix this for me..

My news fader looks like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2Foyzjp.png&hash=50465d7be630ff05286b47d2031b068974cf75d5)

But i want it to look like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi54.tinypic.com%2F2s81nwi.png&hash=f234eb9efaf196644652d5233a37a2d72ea0488c)

Can anyone tell me how to make it like the second picture? Please..
Otsikko: Re: News Fader
Kirjoitti: Johnl17 - syyskuu 09, 2011, 07:21:03 IP
a rsps?
Otsikko: Re: News Fader
Kirjoitti: Sir Osis of Liver - syyskuu 09, 2011, 09:53:41 IP

Not sure I understand your question, but just go to Admin -> News and Newsletters -> News and edit the item text.

Otsikko: Re: News Fader
Kirjoitti: Oldiesmann - syyskuu 10, 2011, 02:04:40 AP
You will need to ask the theme author how to modify the colors for that particular theme.
Otsikko: Re: News Fader
Kirjoitti: H3lioz - syyskuu 10, 2011, 05:23:23 AP
I mean that i want to edit the color & remove the stupid white & black arrows :(
Otsikko: Re: News Fader
Kirjoitti: mashby - syyskuu 10, 2011, 12:48:20 IP
Find:
/* the newsfader */
#smfFadeScroller
{
text-align: center;
overflow: auto;
color: #000000; /* shouldn't be shorthand style due to JS bug in IE! */
}

Change to:
/* the newsfader */
#smfFadeScroller
{
text-align: center;
overflow: hidden;
color: #000000; /* shouldn't be shorthand style due to JS bug in IE! */
}
You can change the color there too.
Otsikko: Re: News Fader
Kirjoitti: H3lioz - syyskuu 10, 2011, 12:53:45 IP
Wait where am i finding this code? : o
Otsikko: Re: News Fader
Kirjoitti: H3lioz - syyskuu 10, 2011, 12:56:22 IP
Didn't do any changes :/ I changed it in css/index.css
Otsikko: Re: News Fader
Kirjoitti: mashby - syyskuu 10, 2011, 01:07:33 IP
I see you started another topic for the same thing. Not really an ideal thing to do.

Try this:
/* the newsfader */
#smfFadeScroller
{
text-align: center;
background-color: #393939;
border: 1px solid #545454;
overflow: hidden;
padding: 1px;
color: #ffffff; /* shouldn't be shorthand style due to JS bug in IE! */
}
Are you adding the style="color: white;" part manually?
Otsikko: Re: News Fader
Kirjoitti: H3lioz - syyskuu 10, 2011, 01:10:36 IP
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2Fflk76x.png&hash=d800014eddd0fc5c8126fd7eb905dd0801bda8e7)

Sorry about posting new topic :(

PS. I added the white color in the "News" in admin panel (BBC)
Otsikko: Re: News Fader
Kirjoitti: mashby - syyskuu 10, 2011, 01:37:42 IP
You can likely remove that style then as the color is now defined as white. Do you like the border and background color like it is or would you rather just have it be the same color as the container it lives in?
Otsikko: Re: News Fader
Kirjoitti: H3lioz - syyskuu 10, 2011, 01:40:28 IP
Lainaus käyttäjältä: mashby - syyskuu 10, 2011, 01:37:42 IP
You can likely remove that style then as the color is now defined as white. Do you like the border and background color like it is or would you rather just have it be the same color as the container it lives in?
The color the text is in. But i want it in the whole newsfader not just a little bit :s
Otsikko: Re: News Fader
Kirjoitti: mashby - syyskuu 10, 2011, 01:48:19 IP
Can I ask why the need to look exactly like another site? I guess it's not all that important, so try this:
/* the newsfader */
#smfFadeScroller
{
text-align: center;
overflow: hidden;
color: #ffffff; /* shouldn't be shorthand style due to JS bug in IE! */
}

And
#smfNewsFader {
    font-size: 1em;
    font-weight: bold;
    line-height: 1.4em;
    padding: 1em;
    text-align: center;
    background-color: #393939;
    border: 1px solid #545454;
}
Otsikko: Re: News Fader
Kirjoitti: H3lioz - syyskuu 10, 2011, 01:55:31 IP
Thanks again Mashby! :D

Can i ask you about one more thing?  :-[

Could you look at this and tell me if you know how to fix it?
http://www.simplemachines.org/community/index.php?topic=269091.msg3156249#msg3156249
Otsikko: Re: News Fader
Kirjoitti: H3lioz - syyskuu 12, 2011, 07:23:24 AP
Mashby,

Do you know how to change the category background or what its calld into titlebackground?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi53.tinypic.com%2Fbebx5f.png&hash=4b7155f9fcabd7c522419aed3df3cd3ce05273a2)
That