Coinbase

Author Topic: Background color doesn't match theme when ads between posts  (Read 6411 times)

0 Members and 1 Guest are viewing this topic.

Offline witte

  • Newbie
  • *
  • Posts: 3
Background color doesn't match theme when ads between posts
« on: November 15, 2006, 07:49:41 am »
Hi, I managed to get this great mod working using techheadrc3 theme...it all works great except for when I put ads inbetween posts on a thread. The background color is always a dark grey, instead of the blue colour which is part of the theme.

Have tried searching for an answer to this, but to no avail...

1.1rc3 with tiny portal...tchheadrc3 theme

Any help would be greatly appreciated...

Thanks


Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Background color doesn't match theme when ads between posts
« Reply #1 on: November 15, 2006, 09:43:32 pm »
Version of the mod you are using?

Offline witte

  • Newbie
  • *
  • Posts: 3
Re: Background color doesn't match theme when ads between posts
« Reply #2 on: November 16, 2006, 03:22:19 am »
Version of the mod you are using?

Ad Managment v2.0

SMF 1.1rc3

TP 0.9.5

TP_Techheadrc3  theme

Offline jerm

  • Support
  • Elite Member
  • *
  • Posts: 726
Re: Background color doesn't match theme when ads between posts
« Reply #3 on: November 16, 2006, 11:18:31 pm »
Link to issue in question so i can understand better.

Offline witte

  • Newbie
  • *
  • Posts: 3
Re: Background color doesn't match theme when ads between posts
« Reply #4 on: November 17, 2006, 01:15:46 am »
Link to issue in question so i can understand better.

[edit] problem solved, display.template.php was trying to call a non existent class from the css file [windowbg3]...

Thanks anyway...
« Last Edit: November 17, 2006, 01:39:31 am by witte »

Offline aikencolon

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Background color doesn't match theme when ads between posts
« Reply #5 on: March 05, 2010, 12:06:03 pm »
I am having a similar problem.

The background behind my ad img is always pink.

http://www.energyauditortalk.org
(although I don't think you can see ads without being a signed-in member, which I would like to change too)

Here is my php code:

echo '
<div align="left" style="margin-left: 200px;" style="background-color: white;">
<a href="http://www.cleanedison.com?a_aid=act" target="_blank"><img src="', $settings['theme_url'], '/images/cleanedison.jpg"" alt="Clean Edison- Building Green Professionals" width="600px" border="0"></a>
</div>';

I've tried all sorts of variations on that "background-color" code, but nothing is working! The other style (margin) is just fine.

I use SMF 2.0 RC2, "day relax" theme.

I look forward to hearing from you!!! :-)

Offline aikencolon

  • Jr. Member
  • **
  • Posts: 10
    • Email
Re: Background color doesn't match theme when ads between posts
« Reply #6 on: March 08, 2010, 01:27:05 pm »
"why not to change the background for the ADs"

I don't understand.

I am looking to change the background of the ads, and it is not working. If anyone can help, I'd greatly appreciate it. The PHP code is above.

Thanks!

Offline Gaz

  • Jr. Member
  • **
  • Posts: 11
Re: Background color doesn't match theme when ads between posts
« Reply #7 on: March 10, 2010, 12:31:25 am »
I am having a similar problem.

The background behind my ad img is always pink.

http://www.energyauditortalk.org
(although I don't think you can see ads without being a signed-in member, which I would like to change too)

Here is my php code:

echo '
<div align="left" style="margin-left: 200px;" style="background-color: white;">
<a href="http://www.cleanedison.com?a_aid=act" target="_blank"><img src="', $settings['theme_url'], '/images/cleanedison.jpg"" alt="Clean Edison- Building Green Professionals" width="600px" border="0"></a>
</div>';

I've tried all sorts of variations on that "background-color" code, but nothing is working! The other style (margin) is just fine.

I use SMF 2.0 RC2, "day relax" theme.

I look forward to hearing from you!!! :-)


Two different issues here - the ability for guests to see ads must be turned on in the site admin - groups - permissions - edit the guests membergroup and under "Carry out admin duties" (dumb positioning in my opinion - it should be under "view extra board content") - turn on the view adds (put a tick in the box).

As to the background colour - I assume you're referring to the background of the post row which contains the advert?
Your code has already set the background INSIDE the advert to white.  It HAS NOT set the background inside the <div to white, nor has it reset the post background to white - that's three different display zones nested within each other.

The post row background is set in the css file - though good luck on finding it - you might be better to create an entirely new css class for that post type, then assign the class name to the ad management php file that sets the ad-post parameters (however it is set up - I haven't dug that deep into it as for now I'll live with the pink background)

Gaz

Offline Gaz

  • Jr. Member
  • **
  • Posts: 11
Re: Background color doesn't match theme when ads between posts
« Reply #8 on: March 14, 2010, 03:16:00 am »
There should be implemented transparent background, would be much more better

You're missing the point of css page structures - the ads have to go into a div or table, no matter what the properties of those.  Even your regular user posts and admin posts go into a css class div or table.

All the mod author has done is use a pre-existing css div class to highlight the post row of the ad - drawing attention to it, allowing users to ignore it or focus on it as is their want - if you don't like the default css class properties, you can edit them in the css file (much easier than editing half a dozen template files in a dozen places each) and change them to the display properties that you prefer.  You could even change the ad-mod css to use normal post sequencing background if you want.

Before moaning about how it's been done, it might be better to go learn some basic html and css coding, and how and where to apply them, because the css method is one heck of a lot easier to change than it used to be before the curve default theme arrived in SMF 2.0

Gaz

SMF Ads Support Forum

Re: Background color doesn't match theme when ads between posts
« Reply #8 on: March 14, 2010, 03:16:00 am »
.

 

.