TinyPortal
Development => Resources => Topic started by: m771401 on June 13, 2008, 11:00:28 PM
I'm one of those people that use my PDA to keep track of my forum. One of the things I've always been bothered with is the mobile interface post TP install. For example, the redirection any time you click " Up one level", "Login, and "Log out". All three of which redirect to the page that says "Not implemented yet".
Since screen real estate is so precious on PDAs I have no need to see TP blocks and articles. Just need the forum.
So instead of redirecting to "Not implemented yet" I edited the TPwireless.template.php so that it redirects to the mobile url of the forum. I'm sure there is a better way but I'm not smart enough to figure it out. This however works for me and hopefully it will help those that have a similar requests.
tpwireless.template.php
<?php
// Version: 0.9; TPwireless
// TPortal wireless for wap,wap2 and imode
function template_wap_tp()
{
header('Location:index.php?action=forum;wap');
}
function template_wap2_tp()
{
header('Location:index.php?action=forum;wap2');
}
function template_imode_tp()
{
header('Location:index.php?action=forum;imode');
}
// dl manager
function template_wap_tpdl_main()
{
echo 'Not implemented yet';
}
function template_wap_tpdl_item()
{
echo 'Not implemented yet';
}
function template_wap_tpdl_cat()
{
echo 'Not implemented yet';
}
?>
Not smart enough ? If it works the way YOU want it to, then i dont see it's not a smart thing to do.
But the smartest thing you did was post what you did so others can benefit from it, and that is really something we like more members to follow.
Thank you, you just made my day :D