Mobile Apps
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.
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.
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.
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.






