TinyPortal
Development => Support => Topic started by: Radm0n on March 13, 2007, 11:39:55 AM
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
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
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.
Thank you!
Worked flawlessly for my application.