Welcome to SMF Helper

Please login.

If you are not a member please take a minute and consider registering on the site for all member benefits.

Registration:

Please click here to register an account

Something will be put here soon.



Author Topic: new blue theme??  (Read 897 times)

0 Members and 2 Guests are viewing this topic.

Offline confusimo

  • New Member
  • *
  • Posts: 18
  • Karma: 33
  • SMF Version: 1.1.5
new blue theme??
« on: February 03, 2010, 09:57:57 PM »
http://www.activeboards.org/index.php?board=1.0

working on new theme.

windowbg1 is 000000

windowbg2 is 999999

windowbg3 is 666666

the  problem is windowbg2 is not only controlling the posts alternating  background.  but it is also making last post columnb grey.  I thought  windowbgs were only for posts not the list of threads.  I need to make  the grey area blend with the rest and keep windowbg for the posts.
« Last Edit: February 05, 2010, 03:54:47 PM by bigguy »

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: new blue theme??
« Reply #1 on: February 03, 2010, 10:18:44 PM »
Looks like locked or stickie topics use the right one.

Offline confusimo

  • New Member
  • *
  • Posts: 18
  • Karma: 33
  • SMF Version: 1.1.5
Re: new blue theme??
« Reply #2 on: February 03, 2010, 10:29:14 PM »
But only the first 2 are locked.  The rest are not locked.  So it should be normal.  Plus it is windowbg2 not locked or stickys controlling the right grey stuff under last post.

Online bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13247
  • Karma: 270
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: new blue theme??
« Reply #3 on: February 03, 2010, 11:21:49 PM »
If you could find out what is controlling the locked or stickie image then you could make the necessary edits right. ??? That is what my point was.

Offline butchas

  • Elite Member
  • *
  • Posts: 634
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: new blue theme??
« Reply #4 on: February 04, 2010, 12:38:54 AM »
With SMF 2.0 the use of "windowbg " changed.  Posts, PM's and most recent list are some examples that come to mind.

They are controlled in "MessageIndex.template.php".  Search for "color" and you will find something like this:

:
if ($context['can_approve_posts'] && $topic['unapproved_posts'])


$color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg';


// We start with locked and sticky topics.


elseif ($topic['is_sticky'] && $topic['is_locked'])


$color_class = 'stickybg locked_sticky';


// Sticky topics should get a different color, too.


elseif ($topic['is_sticky'])


$color_class = 'stickybg';


// Locked topics get special treatment as well.


elseif ($topic['is_locked'])


$color_class = 'lockedbg';


// Last, but not least: regular topics.


else


$color_class = 'windowbg';





// Some columns require a different shade of the color class.


$alternate_class = $color_class . '2'


"$color_class"  will make it either "windowbg" or any class that has no number in the end.
"$alternate_class" will make "windowbg2", or any other class ending with 2.

"windowbg3" has not used in the board colors since SMF 1.1.x.  SMF 2 only goes up to 2.
« Last Edit: February 04, 2010, 12:51:42 AM by butchas »
My mod, My site

Offline confusimo

  • New Member
  • *
  • Posts: 18
  • Karma: 33
  • SMF Version: 1.1.5
Re: new blue theme??
« Reply #5 on: February 04, 2010, 01:07:18 AM »
But what I'm saying is stickys are not the problem.  The grey area is not locked or stickyed.  Those are normal topics.

Offline butchas

  • Elite Member
  • *
  • Posts: 634
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: new blue theme??
« Reply #6 on: February 04, 2010, 09:24:50 AM »
The grey areas on your forum are "lastpost windowbg2".  Check those two styles.
 :)
My mod, My site

Offline confusimo

  • New Member
  • *
  • Posts: 18
  • Karma: 33
  • SMF Version: 1.1.5
Re: new blue theme??
« Reply #7 on: February 04, 2010, 01:50:56 PM »
It is windowbg2.  But if I change that value it changes the grey area and the post alternating background.  Doesn't look good.  I need to seperate the two.  Make the grey area blend withthe rest and the post alternating background #FFFFFF.  But if I goto index.css and say #FFFFFF it also changes the grey area on the topic list "last post".  I need to seperate the two.  1 color for the last post and 1 color for the actual posts.

Offline butchas

  • Elite Member
  • *
  • Posts: 634
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: new blue theme??
« Reply #8 on: February 04, 2010, 04:19:33 PM »
As long as the code includes the  "MessageIndex.template.php" content I showed above and the "index.css" file does not have extra backgrounds added all you need to do is change is the "background-color:" numbers below:

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg, #preview_body
{
   color: #000000;
   background-color: #e7eaef;
}
.windowbg2
{
   color: #000000;
   background-color: #f0f4f7;
}

If you want to change the post and or the lastpost code changes and additional css elements may have to be added.
« Last Edit: February 04, 2010, 04:22:45 PM by butchas »
My mod, My site

Offline confusimo

  • New Member
  • *
  • Posts: 18
  • Karma: 33
  • SMF Version: 1.1.5
Re: new blue theme??
« Reply #9 on: February 05, 2010, 12:05:18 AM »
Looks like might have to be added.  Where and what do I add?  Cuz those values change everything and not just 1 or the other.
« Last Edit: February 05, 2010, 12:07:35 AM by confusimo »

Offline butchas

  • Elite Member
  • *
  • Posts: 634
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: new blue theme??
« Reply #10 on: February 05, 2010, 11:21:13 AM »
You need to do something like this.  This should allow you to make a different last post by editing the background in the css items ending with 4.  Minor changes may be required:

:
<?xml version="1.0"?>

<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">

<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

<id>butchas:Diff_Last_Post</id>
<version>1.0</version>

<file name="$themedir/MessageIndex.template.php">
<operation>
<search position="replace"><![CDATA[// Some columns require a different shade of the color class.
$alternate_class = $color_class . '2';]]></search>
<add><![CDATA[// Some columns require a different shade of the color class.
$alternate_class = $color_class . '2';
$alternate_class_last = $color_class . '4';]></add>
</operation>
<operation>
<search position="replace"><![CDATA[<td class="lastpost ', $alternate_class, '">]]></search>
<add><![CDATA[<td class="lastpost ', $alternate_class_last, '">]></add>
</operation>
</file>

<file name="$themedir/css/index.css">
<operation>
<search position="replace"><![CDATA[.windowbg3
{
color: #000000;
background-color: #cacdd3;
}]]></search>
<add><![CDATA[.windowbg3
{
color: #000000;
background-color: #cacdd3;
}
.windowbg4
{
color: #000000;
background-color: #7b8184;
}
.lockedbg4
{
background-color: #90999b;
font-style: italic;
}
.stickybg4
{
background-color: #a19f99;
}
.topic_table td.locked_sticky4
{
background-image: url(../images/icons/quick_sticky_lock.gif);
background-color: #a19f99;
background-repeat: no-repeat;
background-position: 98% 4px;
}
.approvebg4
{
color: #000000;
background-color: #fff2f2;
}
.approvetbg4
{
color: #000000;
background-color: #f3bd9f;
}]></add>
</operation>
</file>
</modification>

Sorry I made it into a xml file, force of habit but, I am sure you get the idea ;)
My mod, My site

Offline confusimo

  • New Member
  • *
  • Posts: 18
  • Karma: 33
  • SMF Version: 1.1.5
Re: new blue theme??
« Reply #11 on: February 05, 2010, 12:07:30 PM »
So do I add that to index.css or messageindex.

Offline confusimo

  • New Member
  • *
  • Posts: 18
  • Karma: 33
  • SMF Version: 1.1.5
Re: new blue theme??
« Reply #12 on: February 05, 2010, 03:27:02 PM »

Offline butchas

  • Elite Member
  • *
  • Posts: 634
  • Karma: 398
  • Illustrious key typer
    • East Coast Rolling Thunder car club
  • SMF Version: 2.0 RC5
Re: new blue theme??
« Reply #13 on: February 05, 2010, 05:35:52 PM »
ok...

So do I add that to index.css or messageindex.

Both.
My mod, My site