[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.

[ABD] No more outdated browsers 1.1.0

Postby Kamahl » 11 Aug 2009, 23:46

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: GNU General Public License v2

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

MOD Format: ModX

MOD Download: Download No more outdated browsers 1.1.0

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
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more IE6 1.0.0

Postby Obsidian » 11 Aug 2009, 23:50

Great idea, I love it! :lol:
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: [RC] No more IE6 1.0.0

Postby Kamahl » 12 Aug 2009, 00:09

not my idea, inspired by http://www.ie6nomore.com :) but thanks. maybe you could install it on this board :D
User avatar
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more IE6 1.0.0

Postby MasterZ » 12 Aug 2009, 03:27

Nice idea. :)
User avatar
MasterZ
Member
Member
 
Posts: 91
Joined: 07 Jul 2007, 23:46
Location: Colorado Springs, CO
Real name: Jon

Re: [RC] No more IE6 1.0.0

Postby Kamahl » 12 Aug 2009, 10:42

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
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more IE6 1.0.0

Postby Obsidian » 12 Aug 2009, 15:13

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
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: [RC] No more IE6 1.0.0

Postby Kamahl » 12 Aug 2009, 18:38

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
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more IE6 1.0.0

Postby Mr. Bond » 12 Aug 2009, 21:02

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
Mr. Bond
Member
Member
 
Posts: 93
Joined: 30 Mar 2008, 20:34
Location: 127.0.0.1
Real name: Bobby

Re: [RC] No more IE6 1.0.0

Postby Kamahl » 12 Aug 2009, 21:24

what about to use preg_match() ? :) instead of ereg
User avatar
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more outdated browsers 1.1.0

Postby Kamahl » 12 Aug 2009, 23:40

New version released :)
User avatar
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more IE6 1.0.0

Postby Obsidian » 12 Aug 2009, 23:47

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


That's better, as ereg is depreciated and preg is not. ;)
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: [RC] No more outdated browsers 1.1.0

Postby Kamahl » 13 Aug 2009, 00:49

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
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more outdated browsers 1.1.0

Postby Obsidian » 13 Aug 2009, 01:13

Use a separate installation script, actually. That's the best way.
User avatar
Obsidian
Supporter
Supporter
 
Posts: 866
Joined: 13 May 2008, 15:20
Real name: Damian

Re: [RC] No more outdated browsers 1.1.0

Postby Kamahl » 13 Aug 2009, 01:16

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: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Re: [RC] No more outdated browsers 1.1.0

Postby Kamahl » 13 Aug 2009, 02:28

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
User avatar
Kamahl
Member
Member
 
Posts: 140
Joined: 02 Jan 2008, 13:08
Location: Slovakia
Real name: Martin

Next

Return to MOD Feedback

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron