No banner shown
lluubboo - April 26, 2008 - 06:18
| Project: | Marinelli |
| Version: | 6.x-2.9 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello!
I am using the great Marinelli theme on my site www.erasmusbg.info . Unfortunately the banner images don't show. Locally on my computer on WAMP everything works great though.
Any ideas? Could it be that the godaddy banner above my site is somehow blocking the images and the rotation?
I would be thankful for any ideas, I really like these theme.

#1
Did you erased the banners from the banners folder? did you supply your own? check that first, it may fix your problem.
#2
Thanks for your post madjukebox. Yes, I have my own images in the banners folder and have deleted the old ones. Once again, everything works fine on WAMP on my PC.
I have been experimenting a little more. I uploaded the orignal Marinelli theme with the orignal banners and it does not show any images either.
If I change style.css to point to a specific image (not rotate.php) no image appears either. It only worked if I copied the image to the marinelli main folder.
I tried copying rotate.php and all the banner images to the main marinelli folder (where style.css also is). The result was no image at all.
:(
#3
It almost has to be a permissions problem on the one of the directories in the path to the banner images...
When I type:
http://www.erasmusbg.info/sites/all/themes/marinelli/img/banners/roger.jpg
I get nothing....
When I type this:
http://www.signalkuppe.com/marinelli/themes/marinelli/img/banners/roger.jpg
I get the image...
So check to see if visitors have read permissions for your banner images.... Since the website displays OK we know that the /img directory is good, but what about your banner images specifically? Do they have read permissions? (I run wampp also and windows is very fast and loose with permissions,,, godaddy is linux and linux frowns on unauthorized access...)
Good luck,
Daniel
#4
Hello, dchapiesky.
I had a different name for the Marinelli folder, that is why roger.jpg did not show. I renamed it back now so the image does show:
http://www.erasmusbg.info/sites/all/themes/marinelli/img/banners/roger.jpg
So I guess it is not a permissions issue. But you are right, for some reason the theme does not pull the banner images.
Thank you for the post anyway.
#5
I had a different name for the Marinelli folder, that is why roger.jpg did not show. I renamed it back now so the image does show:
lluubboo, at the time of my last post, I used the URL lines from the source code of the page being displayed on my browser... So while roger.jpg did not exist at
http://www.erasmusbg.info/sites/all/themes/marinelli/img/banners/roger.jpg
style.css did exist at
http://www.erasmusbg.info/sites/all/themes/marinelli/style.css
Question: do you have marinelli installed in multiple locations within your drupal distribution, such as:
http://www.erasmusbg.info/sites/all/themes/marinelli
as well as
http://www.erasmusbg.info/themes/marinelli/
???
The rotate.php serves images relative to the position of style.css. So ../style.css must have banners at ../img/banners/*.jpg
- Daniel
#6
Hi,
This theme is excellent. Unfortunately I am having this same banner image not showing issue. When I type:
http://joelmoore.org/sites/all/themes/marinelli/img/banners/roger.jpg
I get the roger.jpg image. It's not a permissions issue.
-Joel
p.s. I am also hosting with godaddy.com
p.s.s I should also note that I'm using 6.x-1.7
#7
Yes, it's exactly the same with my site.
I doublechecked the paths, they are ok. I think it is something godaddy does and I don't know how to fix it.
#8
lluubboo.... try this test....
Please put
<noscript>at the bottom of page.tpl.php...
Then try it...
Obtained from http://desmo.wordpress.com/2008/04/07/drupal-godaddy-ad-hack/
---------------------------------------
owlsnest....
when I try http://joelmoore.org/sites/all/themes/marinelli/img/banners/rotate.php
I get the following
Warning: opendir(/sites/all/themes/marinelli/img/banners/) [function.opendir]: failed to open dir: No such file or directory in /home/content/o/w/l/owlsnest/html/sites/all/themes/marinelli/img/banners/rotate.php on line 171
Warning: readdir(): supplied argument is not a valid Directory resource in /home/content/o/w/l/owlsnest/html/sites/all/themes/marinelli/img/banners/rotate.php on line 172
Warning: closedir(): supplied argument is not a valid Directory resource in /home/content/o/w/l/owlsnest/html/sites/all/themes/marinelli/img/banners/rotate.php on line 180
It appears to be looking for "/sites/all/themes/marinelli/img/banners/" relative to "/home/content/o/w/l/owlsnest/html/sites/all/themes/marinelli/img/banners/" which would give us:
/home/content/o/w/l/owlsnest/html/sites/all/themes/marinelli/img/banners/sites/all/themes/marinelli/img/banners/
Please check rotate.php and set the $folder line to
/* ------------------------- CONFIGURATION -----------------------
Set $folder to the full path to the location of your images.
For example: $folder = '/user/me/example.com/images/';
If the rotate.php file will be in the same folder as your
images then you should leave it set to $folder = '.';
*/
$folder = '.';
You can test by going to the same address...
If you get garbage instead of the above warnings, then do the noscript thing I told lluubboo to do...
Good luck,
Daniel
#9
Hi Daniel,
Thanks for the noscript!!! That looks a million times better.
As for the header banner image...still no dice for me. I've returned rotate.php to it's default - $folder "." because as per config instructions since the file is living in the same directory as my image files I should leave it $folder "."
In the style.css file I have url(/sites/all/themes/marinelli/img/banners/rotate.php)
This path now returns the godaddy ad and this bit of garbled text (ÿØÿà)
One thing that I do not understand is in the rotate.php instructions I am told
INSTRUCTIONS
1. Modify the $folder setting in the configuration section below.
2. Add image types if needed (most users can ignore that part).
3. Upload this file (rotate.php) to your webserver. I recommend
uploading it to the same folder as your images.
4. Link to the file as you would any normal image file, like this:
< i mg src="http://example.com/rotate.php" >
5. You can also specify the image to display like this:
< i mg src="http://example.com/rotate.php?img=gorilla.jpg" >
This would specify that an image named "gorilla.jpg" located
in the image-rotation folder should be displayed.
That's it, you're done.
MY QUESTION IS
Why img src tag and where is it supposed to go?***img src="http://example.com/rotate.php"***
In the style.css file? If so, where?
Thank you.
http://www.joelmoore.org/sites/all/themes/marinelli/img/banners/YellowEy...
http://www.joelmoore.org/sites/all/themes/marinelli/img/banners/rotate.p...
******************sort of solution***************
I gave up on random rotation and was able to at least have one banner image by inserting the direct path to the image in style.css
This isn't a fixed issue if you want the random rotation of banners but at least I have a banner image of some kind now.
#10
Ignore the ?img tag... when rotate.php is called without the tag, it will randomly choose animage to display....
With the ?img tag, it will display the image specified...
This is only useful if you are embedding rotate.php within another script... let's say.... IF YOU ARE "DANIEL" THEN ROTATE.PHP?img=DANIEL.JPG ELSE ROTATE.PHP So if it's daniel display daniel's image, otherwise serve up a random one...
About the garbage being shown... I have been studying this...
The godaddy ad at the top of the page is placed there the following way....
1) You request a page...
2) godaddy finds the page (or in the case of drupal, let's drupal create the page)
3) godaddy sends the page to you but keeps the connection open
4) godaddy sends
</object></layer></span></div></table></body></html><!-- adsok --><script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>
which appends to your page...
5) The file gd01.js is a javascript applet
6) It looks at the entirety of the html sent before it as a document
7) It contacts godaddy for the ad content and __prepends__ it to the html drupal generated...
8) your browser renders the page which now contains new content from godaddy...
works because it tells IE not to run any scripts after it.... so godaddy never gets contacted...
When we call your rotate.php directly, it get's the above crap appended to the binary bits which describe the image... this screws up the format of the image and IE can't determine what kind of image it is or that it is not displayable... thus the garbage...
---------
Question: I went to your site and see the yellow eyes banner.... is the problem now fixed?
Daniel
#11
Hi Daniel,
I gave up on random rotation and just settled for a single image. Better than nothing. I inserted the full path to the image in the style.css where it is supposed to call up the rotate.php file. Not really a solution to the real problem but one that will work for me for now.
Now it seems that even though I've set the sitename to not display it refuses to go away.
Thanks for your help. I'm going to switch hosts as soon as I am able. I'm looking into site5.
#12
I'm going to start a thread asking who is using marinelli/drupal on godaddy and see what problems people are having besides the banner...
#13
I'm having the same issue with Marinelli just now. Before, it was working fine. I changed the path like OwlsNest did in style.css, but no luck. My web site is www.totalted.com.
By the way, OwlsNest, I switched to Site5. It's the best.
I'd appreciate any assistance.
Ted
#14
While the path to the script and images includes the directory /banners/, the script output will be blocked by Kaspersky Internet Security with the firewall application turned ON.
Change the directory name to anything that is NOT on this Kaspersky firewall list and you should be fine.
Remember to also change the path to the script and images in style.css
Also see: http://clemens.vermeulen.id.au/banners/kaspersky (warning: post is blocked by Kaspersky).
#15
Okay - ignore this ...
Firefox:AdBlock Plus - Need to "Whitelist" my own site.
#16
Tested and cleared on both AdBlockers
Solution: In the local implementation, modify the theme's image directory to avoid the commonly filtered "banner*" name.
#17
I also love this theme, but the banner is driving me crazy!
I am using Command Antivirus, but that is not the problem.
I am trying to work with i18n and multiple domains and that could be why the banner stopped working. (It had been working but stopped. I tried going back to Marinelli 1.8 but no good.)
I tried changing the directory from img/banner to img/topimg and it didn't help.
I moved it up a level to /sites/all/themes/marinelli/topimg/rotate.php but no good
What finally worked was moving the banner folder to /files/banner but I don't understand why. (My files are at the root level not under sites.)
In graphics.css change img/banner to
#header {background: #000033 url(/files/banner/rotate.php) no-repeat 0px 0px; /*rotates images in the banner folder */}
It would be nice to know why Drupal was blocking this. It didn't seem to be a .htaccess or permissions issue.
#18
This may not be the fix in your case, but I had the same problem. The fix was that I had the path commented out using "//" so IE didn't see it and it was "working" whereas Firefox was not working
#19
I can't get the rotate.php script to work either.
Even if I put the absolute url to the rotate.php script in style.css, it says "Page not found".
I can get a single banner image to display by putting the absolute url to the image inside my style.css folder.
Rotate.php and my images are all inside the "img/banners" folder.
I also tried renaming "banners" to "myfolder" in case there was a problem with the name being blocked but nothing changed.
I'm using site5 and have set up a multi-site configuration.
On my local MAMP machine, everything works as it should with the banner rotating.
Any ideas?
Thanks.
#20
Same problem here, on site5, and it used to work. I hadn't checked the site using the Marinelli theme in a while (months), but checked it today and no banner is showing. I wondered if had something to do with Site5 upgrading their servers to PHP5.
#21
I've tried the few options posted here that i somewhat understand. Still trouble. I don't know if this bit of info helps, I have a subdomain setup to address this site,
in ie; opera and firefox using the subdomain
www.prefix.url.com banners do not load. addressing the site as
www.url.com/subdir banner images load and rotate perfectly.
#22
I had the same problem - or, rather it was fine for me, but in a test run of the site around the office, one coworker could not see the site on her computer. Everyone else is on the same server.
Thanks to think thread, I realized she had an adblocker on that was interfering with the images. I confirmed that this was the issue by installing Adblock on my own installation of FireFox. With just Adblock, everything was fine, but with the Adblock Filterset.G upgrade the banner images disappeared! I renamed the banner folder, and changed the line in the graphics.css file that calls it up (just search for the word "banners" in the css doc to find it, and replace with the new name). Now it works with the adblock on!
#23
When I upgraded the theme and the banners stopped working in Firefox. Any idea why?
#24
Hope this might help
I was having the same issue, no banner showing up.
The rotate.php was not rendering any image. When I accessed it directly it produced this response:
<!-- SHTML Wrapper - 500 Server Error -->Finally it was related to the way PHP gets executed. I logged to my host control panel and switch it to FastCGI.
the solution found it here:
http://www.hostmonsterforum.com/showthread.php?t=1598
#25
Thank you Clemens . I met the same issue in a demo on my notebook as a server. I was using Kaspersky. I renamed the defolder name "banner" to another name not like "banner*" ,and IT WORKED!