[ABD] No more outdated browsers 1.1.0

Post your MODs, receive and provide feedback!
Topics in this forum are not for MOD support, they are for giving the author feedback.
Forum rules
The topics in this forum are not for general MOD support, they are for giving the MOD author some feedback, ideas and bug reports.
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

[ABD] No more outdated browsers 1.1.0

Post by Kamahl »

MOD Title: No more outdated browsers
MOD Description: Display the No more outdated browsers warning to all users browsing the forum with outdated browser (Firefox, Opera, Safari, Chrome, IE - you can choose which browser is outdated via ACP), to encourage them to upgrade to a modern browser. In ACP you can choose which alternative browsers are displayed in warning to download, and where to display the warning (header, footer, both or only index). In ACP are some next options too.

MOD Version: 1.1.0
Works with: phpBB 3.0.x ; prosilver and subsilver2
Language: English

Author: Kamahl
License: [url=http://opensource.org/licenses/gpl-license.php]GNU General Public License v2[/url]

Demo board: [url]http://www.phpbb3hacks.com[/url] browse with IE6,IE7, Opera 8, FF2, Safari 3, Chrome 1
Screenshots:
subsilver_nmie.gif
prosilver_nmie.gif

MOD Format: ModX

MOD Download: [url=http://www.phpbb3hacks.com/viewtopic.php?f=54&t=295]Download No more outdated browsers 1.1.0[/url]

The simple version of No more outdated browsers with only template changes, no ACP etc. You can download it here http://www.phpbb3hacks.com/viewtopic.php?f=54&t=297

Working on:
- MOD version check (always when new browser is released i have to update the MOD and you will see it)
- check the current versions of browsers (if i manage this, i wont do MOD version check)
- log users with outdated browsers
- rewrite ereg_replace() and eregi()
Last edited by Kamahl on 30 May 2011, 11:41, edited 4 times in total.
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [RC] No more IE6 1.0.0

Post by Obsidian »

Great idea, I love it! :lol:
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

Re: [RC] No more IE6 1.0.0

Post by Kamahl »

not my idea, inspired by http://www.ie6nomore.com :) but thanks. maybe you could install it on this board :D
User avatar
MasterZ
Member
Member
Posts: 87
Joined: 07 Jul 2007, 23:46
Real name: Jon
Location: Colorado Springs, CO
Contact:

Re: [RC] No more IE6 1.0.0

Post by MasterZ »

Nice idea. :)
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

Re: [RC] No more IE6 1.0.0

Post by Kamahl »

working on

- warning on more outdated more browsers (select in ACP)
- warning on outdated operation systems (win 95,98,2000)
- MOD version check (always when new browser is released i have to update the MOD and you will see it)
- log IE6 users

next release will be renamed to No more outdated browsers :)

if you have more ideas please post it here and little describe them

How the phpbb3 detect the browser in viewonline.php I was finding it in code but no success.. Should i use the http://www.quirksmode.org/js/detect.html ? or have i better possibility? :)
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [RC] No more IE6 1.0.0

Post by Obsidian »

Use a PHP backend to detect the browser, and then just the templates to display the message. Don't use javascript, some people surf with it disabled.
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

Re: [RC] No more IE6 1.0.0

Post by Kamahl »

but people using phpbb3 needs JS.

hmm but i think php would be better, i dont know JS :D i will fine some script to detect browser, or if you know some good, please post it here :) thx

edit : i will use this http://apptools.com/phptools/browser/source.php if you have better, please write me
User avatar
Mr. Bond
Member
Member
Posts: 89
Joined: 30 Mar 2008, 20:34
Real name: Bobby
Location: 127.0.0.1

Re: [RC] No more IE6 1.0.0

Post by Mr. Bond »

I wouldn't suggest using that script because it uses the ereg extension, which is deprecated in PHP 5.3.0.

$_SERVER['HTTP_USER_AGENT'] will contain the browser being used. The best way to determine which browser it is to use strpos() to check for msie, mozilla etc. (eg: strpos($_SERVER['HTTP_USER_AGENT'], 'msie')).
Twitter • Ohloh • GitHub
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

Re: [RC] No more IE6 1.0.0

Post by Kamahl »

what about to use preg_match() ? :) instead of ereg
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [RC] No more IE6 1.0.0

Post by Obsidian »

Kamahl wrote:what about to use preg_match() ? :) instead of ereg


That's better, as ereg is depreciated and preg is not. ;)
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

Re: [RC] No more outdated browsers 1.1.0

Post by Kamahl »

I have one question ... when i add the options to ACP like in this MOD, should i add an SQL command to create configs? or i can just add options to ACP and by first submiting of it in ACP, all line in config table will be created automaticly ... i do it by second way, but i dont know if it is right ... if not, i will provide the SQL commands too
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: [RC] No more outdated browsers 1.1.0

Post by Obsidian »

Use a separate installation script, actually. That's the best way.
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

Re: [RC] No more outdated browsers 1.1.0

Post by Kamahl »

too complicated for "nothing" like warning about browser .. i know that is the best way ... but is it possible to do my way? :D
User avatar
Kamahl
Member
Member
Posts: 135
Joined: 02 Jan 2008, 13:08
Real name: Martin
Location: Slovakia
Contact:

Re: [RC] No more outdated browsers 1.1.0

Post by Kamahl »

The simple version of No more outdated browsers with only template changes, no ACP etc. You can download it here http://www.phpbb3hacks.com/viewtopic.php?f=54&t=297
Locked