Welcome!
Log In
Create A New Profile
Home
>
Add-ons and Hacks
>
5.2 Modules/Add-Ons
>
Topic
>
Page 2
Module: Automatic Mobile Template
Posted by Brian Moon
|
March 28, 2011 02:56PM |
Admin Registered: 10 years ago Posts: 8,790 |
As a first change I uploaded a new version which allows showing files when directly linked.
Showing them in a post needs to be done in the template.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Showing them in a post needs to be done in the template.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
|
Images now partially working... April 08, 2011 09:14AM |
Registered: 7 years ago Posts: 122 |
The image links now show up so that you can tap on them to view but the thumbnail view that is produced by embed images mod still shows up weird. Basically you get two links in a post, 1. the embedded thumb and 2. the name of the image as a link. Either will display the picture when tapped on.
I would ideally like to get the thumb to show up but if not possible then I would like to not display the empty thumb box and just display the name as a link.
See the image for an example...
I would ideally like to get the thumb to show up but if not possible then I would like to not display the empty thumb box and just display the name as a link.
See the image for an example...
|
Re: Module: Automatic Mobile Template April 08, 2011 01:53PM |
Registered: 2 years ago Posts: 12 |
I want to put the spam prevention feature on the mobile template used with the module, but cannot find the hook or code to do so.
I am also having the same problem with the 'terms of service' module checkbox not appearing in the mobile template. Both of these features worked fine on the older version of the module and mobile template (the automatic iphone module)
Other than that, the mod works fine and the template works pretty well. I just want to add the other features before it goes live to the site audience.
I am also having the same problem with the 'terms of service' module checkbox not appearing in the mobile template. Both of these features worked fine on the older version of the module and mobile template (the automatic iphone module)
Other than that, the mod works fine and the template works pretty well. I just want to add the other features before it goes live to the site audience.
|
Re: Module: Automatic Mobile Template April 12, 2011 02:57PM |
Registered: 2 years ago Posts: 14 |
Hi,
Nice module. Just installed this and got many mails in my inbox about the php ./script.php --scheduled:
To solve this, I modified mod_mobile.php as below:
Thanks.
Kindest regards,
Giam Teck Choon
Nice module. Just installed this and got many mails in my inbox about the php ./script.php --scheduled:
PHP Notice: Undefined index: HTTP_USER_AGENT in /path/to/phorum/mods/mod_mobile/mod_mobile.php on line 14
To solve this, I modified mod_mobile.php as below:
Language: PHP
function mod_mobile(){ global $PHORUM;
Thanks.
Kindest regards,
Giam Teck Choon
|
April 18, 2011 04:32AM |
Registered: 9 years ago Posts: 106 |
Brilliant. This works perfectly!!! Thank you so much.
The only thing I had to fix was remove "icon-exclamation" class from read.tpl to get rid of the background image
Also it would be nice if the module settings automatically selected mobile template :D
___________
F4 Systems
The only thing I had to fix was remove "icon-exclamation" class from read.tpl to get rid of the background image
Also it would be nice if the module settings automatically selected mobile template :D
___________
F4 Systems
|
April 18, 2011 05:14AM |
Registered: 9 years ago Posts: 106 |
One problem i'm finding is that the "short" nav text in mod_mobile/lang/english.php is overriding the normal /include/lang/english.php names for buttons even when the mobile skin is not being shown. What is the loading procedure for module language files?
___________
F4 Systems
___________
F4 Systems
|
April 20, 2011 12:45AM |
Registered: 9 years ago Posts: 106 |
I changed the lang/english.php strings to $PHORUM["DATA"]["LANG"]["mod_mobile"][...] and the "mobile" templates as needed.
___________
F4 Systems
___________
F4 Systems
|
April 26, 2011 12:18PM |
Registered: 6 years ago Posts: 224 |
|
April 26, 2011 01:21PM |
Admin Registered: 8 years ago Posts: 8,782 |
Correct. The mobile template is stripped down to a bare minimum and moderation via mobile is not supported.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
June 30, 2011 05:40PM |
Registered: 5 years ago Posts: 521 |
Is there a way to detect a mobile browser and just draw from a different template?
I am writing my own mobile version of my phorum, and while I want the mobile detection, I do not want any modules or features disabled by it.
Essentially, I am just writing something that will display much nicer.
Robert Angle
Phorum lover, nothing more.
Ruminations
I am writing my own mobile version of my phorum, and while I want the mobile detection, I do not want any modules or features disabled by it.
Essentially, I am just writing something that will display much nicer.
Robert Angle
Phorum lover, nothing more.
Ruminations
Sorry, only registered users may post in this forum.

