News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

August 20, 2019, 10:36:55 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3751
  • Latest: tom888
Stats
  • Total Posts: 188690
  • Total Topics: 20745
  • Online Today: 109
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 18
Total: 19

Author Topic: WAP, WAP2, IMODE Redirection TP(0.9x)  (Read 4445 times)

0 Members and 1 Guest are viewing this topic.

m771401

  • Guest
WAP, WAP2, IMODE Redirection TP(0.9x)
« on: June 13, 2008, 04: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
Code: [Select]
<?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';

}



?>


« Last Edit: June 13, 2008, 04:02:18 PM by m771401 »

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: WAP, WAP2, IMODE Redirection TP(0.9x)
« Reply #1 on: June 14, 2008, 12:47:47 AM »
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