TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 05:58:59 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 79
  • Total: 80
  • @rjen

WAP, WAP2, IMODE Redirection TP(0.9x)

Started by m771401, June 13, 2008, 11:00:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m771401

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';

}



?>



G6Cad

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