PopWindows using background from theme.

Drandarian Grey - June 8, 2009 - 19:45
Project:Image Assist
Version:6.x-2.0-alpha4
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am using the Acquia Marina theme but when I go to use the image assist with wysiwyg and tinymce. When I use the popup window it has the same theme background as Marina is there a way to stop this?

#1

Matt B - June 9, 2009 - 19:46

I have the same issue. The theme background is used on the popup making the popup unusable.

#2

philbar - July 1, 2009 - 23:24
Category:support request» bug report

I'm also having this problem. Since mine is a dark background, I can't view the dark text. This makes the module difficult to impossible to use.

Changing to a bug report.

See attached image for the problem.

AttachmentSize
dark-bg-img-assist.png 75.64 KB

#3

tonebari - July 15, 2009 - 15:18

Ditto

#4

mgriffith - July 28, 2009 - 16:10

In your theme's page.tpl.php, make sure that the body tag includes the following:

<body class="<?php print $body_classes; ?>">

Then edit your CSS file so that your background is assigned like so:

body.front, body.not-front {
   /* all style rules pertaining to the font & background color or image. e.g.: */
   background: url(path/to/bkgrnd.jpg);
}

That will keep the site's background image out of FCKEditor and should work for Image Assist as well.

#5

Matt B - July 28, 2009 - 19:54

Thanks, that did work for the thumbnail pop up, but when I click on Upload, it's readable at the top, then half way down the background switches to dark blue (the theme background) and the text is still unreadable. Unfortunately, CSS is not my strong point!

#6

mgriffith - July 30, 2009 - 23:11
Category:bug report» task
Priority:normal» minor
Assigned to:Anonymous» mgriffith

Matt,

Point me to the site and I will take a quick look. I don't think this is a bug for Image Assist - more a theme issue.

--Mike

#7

Matt B - August 4, 2009 - 14:08

Go to http://thepositiveword.com and create yourself an account. Let me know and then I'll give you the permission level needed to add images.

Thanks

Matt

#8

mgriffith - August 20, 2009 - 16:13

Matt,

Created an account. We can likely finish resolving this via eMail. Ping me at the account I signed up with.

--Mike

#9

traceelements - September 21, 2009 - 04:42
Version:6.x-2.0-alpha3» 6.x-2.0-alpha4

I am having this issue as well. My custom theme has a dark background image, which is showing up in the image assist popup, and making the text unreadable. I tried adding body.img_assist {background: #fff;} to my style.css, but that didn't do anything. Help, please! In my theme's page.tpl.php, my body tag is written this way: <body<?php print phptemplate_body_class($left, $right); ?>> so I don't know how to implement the suggestion that is listed above.

#10

traceelements - September 21, 2009 - 04:43
Category:task» support request
Priority:minor» normal
Assigned to:mgriffith» Anonymous

#11

traceelements - September 21, 2009 - 07:32
Status:active» closed

Nevermind. The background color is now the default gray and I have NO IDEA why it changed.

#12

traceelements - September 21, 2009 - 20:24
Status:closed» active

Okay, now it's back to the dark background image. Help, please!

#13

traceelements - October 5, 2009 - 19:52

Anyone? Surely someone else had and solved this issue.

#14

Keyz - October 12, 2009 - 21:57

Try this (works for me)... open your style.css file and add the following to it:

body.img_assist {
  background-image: none;
}

Clear Drupal's caches (especially if you have CSS aggregation and other caching enabled) at Administer > Site configuration > Performance.

Next clear your browser's cache. The changes don't appear to take hold immediately unless you do this.
Go back to your site and reload the page and open up an Image Assist window. The background image should now be gone.
Hope this helps.

#15

traceelements - October 12, 2009 - 22:26
Status:active» fixed

Oh my god, it worked. Thank you sooooo much. I feel dumb that I didn't try that earlier.

#16

Matt B - October 21, 2009 - 20:30

Thanks Keyz! On the sky theme I had this in my appearance.css:

html,body {
  background: #314C74 url('../images/bg-body.png') repeat-x left top;
}

I added your body.img_assist code but found I had to remove 'html,' from the above. It now works fine, hopefully I've not caused a problem elsewhere!

#17

System Message - November 4, 2009 - 20:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.