News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

Background color doesn't match theme when ads between posts

Started by witte, November 15, 2006, 07:49:41 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

witte

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


jerm


witte

Quote from: jerm on November 15, 2006, 09:43:32 PM
Version of the mod you are using?

Ad Managment v2.0

SMF 1.1rc3

TP 0.9.5

TP_Techheadrc3  theme

jerm


witte

Quote from: jerm on November 16, 2006, 11:18:31 PM
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...

aikencolon

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!!! :-)

aikencolon

"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!

Gaz

Quote from: aikencolon 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!!! :-)


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

Gaz

Quote from: DanielRosca on March 14, 2010, 01:14:20 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