Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > INDEXU DELUXE v1.x
Register Projects FAQ Members List Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-16-2008, 01:12 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default Detecting Mobile browsers....

Currently if you goto YouTube or other websites with your mobile browser it will automatically redirect you to a subdomain of the site where they have mobile support.

Is there a way to do the same with IndexU? Now that we have a mobi template, I would like to create a subdomain and have it attach to the same database. Then, if it detects its a mobile browser, automatically forward them to the subdomain.
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #2 (permalink)  
Old 10-16-2008, 01:31 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

I knew someone would ask that as soon as the .mobi template was available!

You can find a complete script to do this at Andy Moore Blog Archive PHP to detect mobile phones

You can also look at the following
http://www.brainhandles.com/2007/10/...bile-browsers/
Lightweight device-detection in PHP | mobiForge
Reply With Quote
  #3 (permalink)  
Old 10-16-2008, 04:01 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

Bruce...

If I used the "Lightweight device detection in PHP" code, where would I put the code?? In header.html?

I also downloaded Andy Moore's php script, but I'm also unaware on how I would integrate that into my site.
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #4 (permalink)  
Old 10-16-2008, 04:47 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

I have no idea to be honest, I would think in application.php because it's called from every major page.
Reply With Quote
  #5 (permalink)  
Old 10-17-2008, 06:54 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

So would it be a "include" statement I would want to use in Application.php?? Or maybe a 'call' statement?

Maybe the programmers might know?
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #6 (permalink)  
Old 10-18-2008, 12:25 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,032
Bruceper is on a distinguished road
Default

Call it as an include
Reply With Quote
  #7 (permalink)  
Old 10-18-2008, 04:35 PM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

Why not make it a plugin? I can't make it because I can't test it. I don't have a phone with mobile access. Any ideas?

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com

Last edited by mpdaddy; 10-18-2008 at 04:39 PM.
Reply With Quote
  #8 (permalink)  
Old 10-18-2008, 07:10 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

Code:
Content visible to License Owner only.
Wayne...

If you can create it... I can test it for you! Let me know
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #9 (permalink)  
Old 10-19-2008, 05:46 AM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

I will work on it today after I get off work and let you know when I have something to test.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #10 (permalink)  
Old 10-19-2008, 05:37 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

Code:
Content visible to License Owner only.
Sounds good
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #11 (permalink)  
Old 10-24-2008, 02:42 AM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

Sorry for the delay. I am starting a new Ebay business and my merchandise came in. I have been getting everything ready for that. I will find time tomorrow to get started on this plugin. Frank, I will let you know if/when I need it tested. I do not have the template, so you will need to test it on your domain. I will contact you by email tomorrow.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #12 (permalink)  
Old 10-24-2008, 05:16 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

No Problem mpdaddy! Let me know when you have something for me to test
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #13 (permalink)  
Old 10-25-2008, 05:38 PM
Active Member
 
Join Date: Nov 2007
Posts: 176
mpdaddy is on a distinguished road
Default

For anyone who is wondering. I have finished the plugin and I sent it ti FSGDAG to test it. I will give updates if needed and release it as soon as it is working 100%.

If you have the mobi template for IndexU and you have access to test with an Iphone, Ipod, or other mobile device with a browser, and would like to test it, I can send the plugin to you. I would not recommend testing it on a live site, you should have a test site set up for testing purposes. Contact me at my email address in my signature if you are interested.

Regards
Wayne
__________________
For questions related to any mods I developed, please contact me by pm or email at webmaster [at] scriptdragon [dot] com
Reply With Quote
  #14 (permalink)  
Old 10-25-2008, 06:14 PM
Registered User
 
Join Date: Mar 2008
Location: Rome, Italy
Posts: 62
Dr. Jekyll is on a distinguished road
Default

very nice
Reply With Quote
  #15 (permalink)  
Old 10-25-2008, 10:08 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

Ok... Question....

I'm getting ready to test this out.. Tell me if I'm off base here:

- I'm going to do a new install on the root of a domain.. We'll call it www.testdomain.com

- Then I'm going to create a subdomain called m.testdomain.com

- I'll then upload all the files to the subdomain, but application.php will have all the settings of the one in the root domain. This way they will share the same DB.

- I'll install the plugin and start testing with my mobile browsers

Here's the question:

m.testdomain.com will have the mobi template in it. Will I have to rename the directory of that template to match the name of the root domains template name?!?! I'm assuming I'll have to seeings that information is in the DB.
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobile Mod Rockyuk Blocks and Modification 3 02-22-2008 10:51 AM
Mobile Directory??? FSGDAG Customer Reviews 11 01-18-2008 12:40 AM
Mobile / Cell Phones Specifications Database - vol.2 - NEW and UPDATED soundofvtec Buy, Sell or Trade 0 10-12-2007 07:47 AM
Mobile Phones Specifications Database with all details soundofvtec Buy, Sell or Trade 0 07-28-2007 03:56 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 04:23 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate