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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 572
  • Total: 573
  • @rjen

TP on BlackRain Theme

Started by Polymath, December 27, 2008, 12:58:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Polymath

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

G6Cad


Polymath

#2
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

Crip

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
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Polymath

#4
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?

Lesmond

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

Crip

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 , ?
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Lesmond

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 ;)

Crip

ya well ant sure what they actually wanna do Yet.. ?
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Polymath

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

This website is proudly hosted on Crocweb Cloud Website Hosting.