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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 103
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 89
  • Total: 89

Go Directly to forum, based on browser ID or WAP?

Started by Radm0n, March 13, 2007, 11:39:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Radm0n

In plain english, this is what i would like to do:

If ( browser_id = 'my custom browser' ) or (connection_type=wap)
{
Go Directly to forum;  (not just link to forum...the front page needs to be set for the rest of the session)
}

All help appreciated.
Thanks

Radm0n

#1
Let me clarify my problem by a simple example....

If you go to this url:
http://www.ncnrulz.com/forum/index.php?board=21.0;wap2

.. you are in the public forum area in the general discussion area.

If you click on 'Up One Level" at the bottom, it takes you here:

http://www.ncnrulz.com/forum/index.php?;wap2

Instead of here!
http://www.ncnrulz.com/forum/index.php?action=forum;wap2

"Up One Level" is taking me back to the front page center block instead of the top of the forum.

Thanks


JPDeni

#2
I think you probably need to alter the Wireless.template.php file. Try changing


<p class="windowbg">[0] <a href="', $context['links']['up'], ';wap2" accesskey="0">', $txt['wireless_navigation_index'], '</a></p>', !empty($context['links']['next']) ? '


to


<p class="windowbg">[0] <a href="', $context['links']['up'], 'action=forum;wap2" accesskey="0">', $txt['wireless_navigation_index'], '</a></p>', !empty($context['links']['next']) ? '


I'm not exactly sure that's where you need to change it, but that's where I would make the first edit to see if it worked.

It also looks like there are some other similar lines that would need to be changed. BTW, this file is in your Themes/default directory.

Radm0n

Thank you!

Worked flawlessly for my application.


This website is proudly hosted on Crocweb Cloud Website Hosting.