Firefox PHP

Template: Mobile Template

Posted by Brian Moon 
All files from this thread

File Name File Size   Posted by Date  
mobile-0.2.zip 17.5 KB open | download Brian Moon 10/07/2016 Read message
Template: Mobile Template
February 27, 2011 03:58PM
I have create a new mobile template that supersedes the old iPhone Template. This one should work in Android and Opera mini as well. It should in general look better on the iPhone as well. Also, it has more coverage of Phorum features. You can read and post. You can also read and post private messages. Any page not available will return a message stating that the page is not supported in the mobile site rather than throwing you into some page you can't read.

Used in conjunction with the new Automatic Mobile Template module, your mobile users can get a mobile template automatically when landing on the forum.

This template (with the module) is running here at Phorum.org.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter



Edited 3 time(s). Last edit at 02/27/2011 04:13PM by Brian Moon.
Attachments:
open | download - mobile-0.2.zip (17.5 KB)
Re: Template: Mobile Template
February 27, 2011 04:05PM
This reply was made from my iPhone using the mobile template.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Template: Mobile Template
February 27, 2011 08:03PM
I just had to see what this looked like, even though I don't have a smart phone. It took me a few minutes to figure out how to get a control center to select a different template. <G>
Re: Template: Mobile Template
March 02, 2011 02:31PM
Are you aware that the download links are not shown when viewing this page from an iPhone? I had to change the browser ID to IE8 so that I could download the mod.

Thanks!
Re: Template: Mobile Template
March 02, 2011 04:08PM
Why would you download an archive on the iphone? ;)
I can understand the need for images or alike but archives?


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Template: Mobile Template
March 02, 2011 07:54PM
Here is a warning I received when I tried to add the module: possible module "mobile" found, but no module information is available for that module.
Re: Template: Mobile Template
March 02, 2011 08:11PM
That means that you have failed to keep modules and templates apart. You're in the template forum here, so that should be a pretty good hint that you should not drop the code that you download here in the modules folder.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Template: Mobile Template
March 02, 2011 08:16PM
Uhps...Sorry about that!
Re: Template: Mobile Template
March 02, 2011 08:37PM
I got some error logs:
PHP notice: Undefined index: PM : Have I accidentally removed {LANG->PM} from the language file?
I also received: Undefined index: raw_last_post
The template loads but it does not seem to connect with the "index" hook for example.
(I need to reveal: I don't own a smartphone.)
Re: Template: Mobile Template
March 03, 2011 02:00AM
The phorum variable {URL->INDEX} does not return what it is supposed to on the read.tpl and pm.tpl pages.

EDIT: Of course, the simple fix was to replace the variable with a simple "index.php"


Robert Angle
Phorum lover, nothing more.
Ruminations



Edited 1 time(s). Last edit at 03/03/2011 02:03AM by Robert Angle.
Sorry, only registered users may post in this forum.

Click here to login