TinyPortal

Development => Support => Installation => Topic started by: Polymath on December 27, 2008, 12:58:49 AM

Title: TP on BlackRain Theme
Post by: Polymath on December 27, 2008, 12:58:49 AM
Hello again. Been a while.

Anyway. I had crashed my website and have done a rebuild. New Theme, updateing everything to current versions.

I have the edits to instal on Default alright, but to get it in my theme I have only one missing problem.

How would I get this last bit

';
// TinyPortal
if($context['TPortal']['leftbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if($context['TPortal']['rightbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end
echo '


In to this bit please:

[// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li', $current_action == 'logout' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';
echo '
</ul>
  </div>';
}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)


I am using BlackRain theme. I have done Default and the rest of BlackRain edits for index.template.php

Thank  you
Title: Re: TP on BlackRain Theme
Post by: G6Cad on December 27, 2008, 12:50:25 PM
What TP version do you use ?
Title: Re: TP on BlackRain Theme
Post by: Polymath on December 27, 2008, 02:26:28 PM
I don't use any yet. My previous one was TP.98 I think it was. databases should still be there so on install it hopefully appears. and I can then turn things off or on.

The one I downloaded to instal was TP_0983 but it gave the index.template error.
I have not installed it yet. Thought I would do the edit first on index.template then install and then upload the template.php

using SMF 1.1.7
Title: Re: TP on BlackRain Theme
Post by: Crip on December 27, 2008, 03:34:31 PM
Here you may download my BR theme in either TP versions , and it has been updated to smf 117 ....
http://www.tinyportal.net/index.php/topic,7956.0.html
Title: Re: TP on BlackRain Theme
Post by: Polymath on December 27, 2008, 11:24:30 PM
Ahh. Thank you Crip.. ah how do I install a theme that already has TP in it. I don't install but just upload files and folders?

That right?
Title: Re: TP on BlackRain Theme
Post by: Lesmond on December 28, 2008, 12:01:57 AM
it may seem a  silly question but you are installing with the default theme, and all themes should be installed using the Themes and Layout/Install a New Theme
Title: Re: TP on BlackRain Theme
Post by: Crip on December 28, 2008, 12:05:06 AM
Quote from: Polymath on December 27, 2008, 11:24:30 PM
Ahh. Thank you Crip.. ah how do I install a theme that already has TP in it. I don't install but just upload files and folders?

That right?

The converted theme is only for TP9803 , ?
Title: Re: TP on BlackRain Theme
Post by: Lesmond on December 28, 2008, 12:09:07 AM
Quote from: Crip on December 28, 2008, 12:05:06 AM

The converted theme is only for TP9803 , ?

Thats what I meant to say too ;)
Title: Re: TP on BlackRain Theme
Post by: Crip on December 28, 2008, 12:12:02 AM
ya well ant sure what they actually wanna do Yet.. ?
Title: Re: TP on BlackRain Theme
Post by: Polymath on December 28, 2008, 12:15:36 AM
No not really

Quoteit may seem a  silly question

Sorry about being cautious
I asked a silly question just last week...and got no answer fast enough(time zones) and went ahead with what I thought was obvious. Thats what caused my crash.

I have TP in Database but not installed in any new theme. including Default
Title: Re: TP on BlackRain Theme
Post by: Crip on December 28, 2008, 12:20:11 AM
So install on Default 1st then Black Rain will be OK the way it is now.
Title: Re: TP on BlackRain Theme
Post by: Polymath on December 28, 2008, 12:23:31 AM
Right, I get it now. Thanks.