|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
|
Addict
Joined: Aug 2000
Posts: 1,609 |
I found a neat script at Dynamic Drive, that place that shortbus recommended in Design Matters, and I would like to insert it into the <head> of my IIP page only. The script detects your resolution and sends you to a specified page based on resolution. If user's are set to either 640x480 or 800x600 I would like the script to re-direct them to http://drumlines.org/threads/showflat.php?Number=25156 I know how I could put this script on every page (header-insert) but I don't think that would be very smart.  So how can I insert it into the <head> portion of IIP?
|
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
IIP uses the send_header function of .threads so the simplest way to insert your javascript is to place it in your header-insert.php file located in your /ubbthreads/includes directory. 
|
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
|
Addict
Joined: Aug 2000
Posts: 1,609 |
[]I know how I could put this script on every page (header-insert) but I don't think that would be very smart. So how can I insert it into the <head> portion of IIP?[/] I guess I have to explain why I don't want to do this. If someone comes to my website, and their resolution is 800x600 or below, every page they go to will re-direct them to the other page. Therefor, that would be the only page in my site they would see. That's no good folks. 
|
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
As far as I can see you would have to modify the send_header function to include a specific header_insert.php file for IIP.
It's been a while since I looked at the statistics but 800x600 was the most common resolution. Are you sure you want to target them? Maybe things have changed now with the decrease in price of larger CRT monitors.
|
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Here is a link to some browser statistics: http://www.upsdell.com/BrowserNews/stat_trends.htm#resYou may wish to look for more statistics but the 800x600 users are at 45%. I remember when it was over 95% so things definately have changed. 
|
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
|
Addict
Joined: Aug 2000
Posts: 1,609 |
Yes, 800x600 is the most common for my visitors. My latest figures show 47.83%. But websites nowadays, including mine and even ThreadsDev, are too bunched up when viewed at that resolution. It kinda makes me claustrophobic when looking at it!  I don't know what the recommended minimum size monitor for 1024x768 is, but I'm sure the majority of people nowadays can handle at least that, they just either don't know how to or haven't bothered to switch it. But now that I think about it, I could just create a simple, blank entrance page that would choose the destination of the visitor dependant on resolution. IIP if they're at least 1024x768 and the how-to page if they're below. Does this sound like a good practice, JustDave? What is your opinion on how visitors would react? Anyone else want to chime-in? 
|
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
|
Addict
Joined: Aug 2000
Posts: 1,609 |
I noticed your statistics page after I posted. Interesting site. Thanks!  It even backed-up what I said about people keeping it at 800x600 when they could "upgrade" their resolution. []Some users surely have old PCs, with little video memory; the rest likely have PCs whose resolutions are set lower because (a) many new PCs default to a lower resolution,[/]
Last edited by AKD96; 05/20/2003 11:14 AM.
|
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
Well personally I would build a site that looks good at 800x600 and up. My wife uses 800x600 on her 17 inch monitor because it was easy to read, much better than the old 15 from years ago. My kids use that resolution as well. (my daughter knows how to change it and is fully capable but she likes that resolution for some reason). My best friend uses 800x600 on his 17 inch monitor because he has trouble reading things otherwise. It's your website though so you should set it up as you see fit. In my honest oppinion though I believe all websites should scale starting from the 800x600 and go up. It takes some work to make things look right but I believe it's worth the effort. 
|
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
I agree with JustDave. I don't care about 640x480, but I definately try to script a site to scale from 800x600 to 1600x1200 (the resolution that I use).
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 3273
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
|
|
|
|