[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5080: mysql_connect(): Too many connections
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5106: mysql_query(): Too many connections
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5106: mysql_query(): A link to the server could not be established
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5107: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given
CAA: Christian Anime Alliance • Help coding for Firefox
Page 1 of 1

Help coding for Firefox

PostPosted: Fri Mar 25, 2005 11:33 am
by Kireihana
I just started using Firefox and realized that my site looks horrible with it. Is there any way to adjust the coding to make it compatible with both IE AND Firefox?

http://manga.silver-essence.net/updates.php

PostPosted: Fri Mar 25, 2005 2:08 pm
by shooraijin
Several things become immediately apparent:

- A lot of your colours have no # in front. This is probably not the (whole) problem, but it doesn't help (i.e., #006000, not 006000).

- All CSS properties in a <style> tag should end with a semicolon ( ; ). You don't do this consistently.

- Your font in the tagboard is too big in Firefox because IE and Firefox use a different dpi. IE likes to use a 96dpi (for some reason) font display, while everything else uses 72dpi. For this reason, avoid using px to determine font size (your style sheet has a 10px in there, which is the problem, I think). Instead, try using em, like 0.5em for a smaller font (1 em = "default size") to make it more relative to the default. Look at this page: http://www.bigbaer.com/css_tutorials/css_font_size.htm

Hope this gets you started.

PostPosted: Fri Mar 25, 2005 3:30 pm
by Kireihana
Thanks, that's a huge help. I thought you only had to use "#" in the StyleSheets, but I guess not. I need to stop being lazy with the html. :eyeroll:

PostPosted: Fri Mar 25, 2005 5:41 pm
by shooraijin
Let me know when you make the changes, and I'll take another look if it's still not working.

PostPosted: Sat Mar 26, 2005 9:54 pm
by Kireihana
Okay I got the background color working. All I did was change it to CSS, rather than using the bgcolor attribute.

But the tagboard. I went into the tag.css and changed the fonts to 0.5 em but it didn't change anything. I wonder why because there are no problems with the font size in the taboard inputs and textarea, where I used "10px" for both.

I guess Mozilla doesn't support CSS filters? :forehead:

PostPosted: Sun Mar 27, 2005 9:56 pm
by shooraijin
CSS filters?

PostPosted: Mon Mar 28, 2005 3:38 am
by Fsiphskilm
Yes, IE

PostPosted: Tue Apr 12, 2005 7:16 pm
by Kireihana
shooraijin wrote:CSS filters?


Like filter:glow(offx=1px offy=1px.... etc. There are a lot of them for making glowing text, dropshadows, and other effects. They don't seem to show up in Mozilla so I was guessing that the browser doesn't support them.

PostPosted: Wed Apr 13, 2005 9:10 pm
by shooraijin
Oh, yes. Correct, filters are an MSIE-ism and are not part of the CSS standard.

PostPosted: Wed Apr 20, 2005 12:56 pm
by Knives
Kireihana wrote:I just started using Firefox and realized that my site looks horrible with it. Is there any way to adjust the coding to make it compatible with both IE AND Firefox?

http://manga.silver-essence.net/updates.php

Ummn your site got hacked!

PostPosted: Wed Apr 20, 2005 1:28 pm
by shooraijin
Actually, no, she didn't get hacked per se, but she *will* need to pull the first entry in the comments box out (that's where the redirect is coming from). Some joker put in an <iframe> tag to force people over to his site. If there is a way for you to disable HTML in your shoutbox, I strongly suggest you do it, or this (or worse) will happen again!

PostPosted: Wed Apr 20, 2005 10:06 pm
by Kaligraphic
Yeah, strip out all HTML code. But first, email google with the full content of the entry - including the specific URLs for the ads - because whoever put that in is making money off of it, and my reading of the Terms of Service for Google ads would indicate that it's in violation. Report it to Google, and let them cut the jerk's income. (he's probably done it on other sites, too.)

*edit* I have submitted a report to Google - still send your own report, but here's the body of the message that I gave them, minus the URLs I specifically don't want to link to:

One of your customers is taking advantage of the poor input-filtering of certain shoutbox code to place iframes on other people's sites, which display and redirect to his own page. This technique is used with the aim of displaying his google ads on sites over which he has no legal or administrative authority. My reading of your Terms of Service (a quick scan reveals from section 13 "Representations and Warranties. You represent and warrant that ... (b) You are the owner of each Site or that You are legally authorized to act on behalf of the owner of such Site(s) for the purposes of this Agreement and the Program;") indicates that this practice is not permitted; thus I wish to inform you of its use in this situation.

The redirect forces the user away from their desired website and onto (removed to avoid autolink)

A URL from a Google ad on that page is (removed to avoid autolink)

I have noticed this on a site maintained by an acquaintance of mine - you can find the particular page at http://manga.silver-essence.net/updates.php
I have advised her also to report this, as it is her site which was, essentially, defaced by this tactic.

I understand that Google is trying to set itself apart from the bulk of the "spam-for-cash" advertisers, but such behavior as this person is illustrating seems to go against the spirit of what you are trying to accomplish. I feel confident that this matter will be dealt with in a swift and appropriate manner.
*/edit*