Mobile Apps

Posted February 10, 7:52 pm 2012

Where do I add or remove icons on mobile?

Posted February 22, 1:54 am 2012

good ? I am looking for the same answer

Posted February 22, 1:57 am 2012
Quote:
Originally posted by: shone

good ? I am looking for the same answer

I dont think they have the answer for that yet until maybe the next version release of phpfox.
Posted March 12, 12:27 pm 2012

It seemes phpfox does not allow to remove Apps from the mobile.. which is very bad. If you delete the public function in the callback script in the file /module/apps/include/service/callback.class.php the whole mobile theme does not work.

So now to your question:

If you want a module (i.e blogs) to be shown or not shown on your mobile front end you have to edit the file
/module/blog/include/service/callback.class.php

and there you have to insert (when you want to have it displayed on your mobile frontend) the follwing lines:

public function mobileMenu()
{
return array(
'phrase' => Phpfox::getPhrase('blog.blog'),
'link' => Phpfox::getLib('url')->makeUrl('blog'),
'icon' => Phpfox::getLib('image.helper')->display(array('theme' => 'mobile/small_blogs.png'))
);
}


You also should have the file small_blogs.png in the folder /html/theme/frontend/default/style/default/image/mobile


So if you want do remove a module/icon (i.e blog) from your mobile frontend than just remove the public funciton for mobile in the callback script in the folder ie. /module/blog/include/service/callback.class.php

As I mentioned in the beginning, with APPS it does not work like this. If you have any solution for removing Apps from mobile, please let me know.

Last update on March 12, 12:27 pm 2012 by ich-bin-daheim.
The following users say Thank You to for this useful post:
Posted March 12, 10:26 pm 2012
Quote:
Originally posted by: ich-bin-daheim

It seemes phpfox does not allow to remove Apps from the mobile.. which is very bad. If you delete the public function in the callback script in the file /module/apps/include/service/callback.class.php the whole mobile theme does not work.

So now to your question:

If you want a module (i.e blogs) to be shown or not shown on your mobile front end you have to edit the file
/module/blog/include/service/callback.class.php

and there you have to insert (when you want to have it displayed on your mobile frontend) the follwing lines:

public function mobileMenu()
{
return array(
'phrase' => Phpfox::getPhrase('blog.blog'),
'link' => Phpfox::getLib('url')->makeUrl('blog'),
'icon' => Phpfox::getLib('image.helper')->display(array('theme' => 'mobile/small_blogs.png'))
);
}


You also should have the file small_blogs.png in the folder /html/theme/frontend/default/style/default/image/mobile


So if you want do remove a module/icon (i.e blog) from your mobile frontend than just remove the public funciton for mobile in the callback script in the folder ie. /module/blog/include/service/callback.class.php

As I mentioned in the beginning, with APPS it does not work like this. If you have any solution for removing Apps from mobile, please let me know.


Thank you very much.
Posted March 19, 9:37 pm 2012

this will now be solved in version v3.2.0 very cool, thanks phpfox team

The following users say Thank You to for this useful post:
Posted March 19, 9:41 pm 2012
Quote:
Originally posted by: shone

this will now be solved in version v3.2.0 very cool, thanks phpfox team


Thanks for the information and lets hope that when it is available it also has more funtion than just available.
All times are GMT. The time now is 8:16 pm.