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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,047
  • Total Topics: 21,336
  • Online today: 230
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 154
  • Total: 155
  • lurkalot

How to disable Tinyportal for a specific theme?

Started by m771401, April 07, 2010, 02:09:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m771401

Thanks!

That did the trick  O0

I removed the previous index.template edits and copied the file into the theme's directory.

Thanks again Bloc  :)


apochalypse

Tell, me, would this be possible to achieve today with the current layout and for SMF 2.0 ?
I've tried the above suggestions but it doesn't seem to work for me i'm afraid.
I'm guessing it's the way smf 2.0 works with it always having the layout etc loaded in the default theme folder.

IchBin


apochalypse

Quote from: IchBinâ,,¢ on November 19, 2011, 05:18:43 AM
I just tried what Bloc posted on the first page here and it worked just fine in SMF2.
http://www.tinyportal.net/index.php?topic=32327.msg259934#msg259934
weird.
I tried that, but it still used the TP frontpage.. :S
guess I have to try it again..

apochalypse

aha, now I see.
It does work, somewhat. ^^

It does indeed hide all the bars, but the frontpage is still = the frontpage.
Thus when using the smf4iphone theme it still redirects you to the frontpage when going to http://www.fenimo.com.

so would that be doable to change? so that it instead shows the forum. Or rather, www.fenimo.com/index.php?action=forum
Or is that something I have to code in to the theme?

what I've currently have for TP in the index.template.php is:


function template_html_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// TinyPortal
if (function_exists('tp_hidebars'))
tp_hidebars(all);
  unset($context['menu_buttons']['home']);

IchBin

Maybe you should explain what you are trying to achieve. I don't quite get what you are trying to do...

If you don't want a TP front page, then set in your front page settings to tell TP to go directly to the forum instead.

apochalypse

Quote from: IchBinâ,,¢ on November 21, 2011, 09:36:12 PM
Maybe you should explain what you are trying to achieve. I don't quite get what you are trying to do...

If you don't want a TP front page, then set in your front page settings to tell TP to go directly to the forum instead.
Ok,
well, I use TP and a theme from Dziner Studio normally for my site when you access it.
And it works great.
But I want to make it easier and less loading needed for users who access it using a wireless devices. (phones, (both using wap and smartphones), tablets etc)

Therefor I've added the smf4iPhone theme, curve mobile theme, and mobile theme. Together with an addon that auto detects mobile devices and changes the theme used for that visit.
And to simplify it even more, I want the standard for those themes only. To redirect to the forum, and thus ignoring the frontpage.
But for my standard theme, when accessing the site with a PC, it still use the frontpage.

But then again, I might be satisfied with the way it is now. Now that the frontpage at least doesn't have any panels or such things. :) 

IchBin

Well, with those mods I have no idea how they work so you are a little out of luck if you want my to figure out if TP can be turned off for them.

webby

My solution was to hide the to panels I didn't want to show by placing 'left between the brackets.  I repeated the line with 'right' between the brackets as it was late and I couldn't remember how to list both panels.

This website is proudly hosted on Crocweb Cloud Website Hosting.