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,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 320
  • Total: 320

Blocks on my website without using SMF theme?

Started by Z.O.D, February 11, 2010, 12:15:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Z.O.D

Its the code dragoon gave. It baiscally shows everything, adn all I want is the left and right blocks. No header, no footer no shoutbox.

<?php
// ID of the theme
$ssi_theme 1;

// Exact path to SSI.php
require_once('SSI.php');

global 
$context;

TPortal_init();

// Your page Title
$context['page_title'] = 'Demo Page';

template_main_above();
template_tp_above();

// Here comes all your contents
echo 'SMF/TP Rules baby!';

// And this ends stuff
ssi_shutdown();
?>


ZarPrime

Z.O.D,

I think Ichbin meant that he would like to see the code you have so far, not Dragoon's code.  We can read that for ourselves.

Maybe it's better if we start over from the beginning.  A couple of questions are in order ...

1.  Do you have SMF installed and, if so, what version?
2.  Do you have TinyPortal installed and, if so, what version?
3.  If I am reading you right, you want to use SMF/TP to show a couple of TinyPortal blocks on your Front Page but nothing else.  Is that correct?
4.  Will you be using a Forum for your members to login and post.  If not, why do you need these blocks?  Please tell us exactly what you are trying to accomplish.
5.  If all you "want is 1 php block 1 navigation block and 1 news block", why don't you just build those blocks in your php file using standard php and html?

If you answer these questions, maybe we can figure out what it is you are trying to do.  It would also help us if you would use the template in the Posting Guidelines to give us additional details about your site.  Finally, please post the code that you have so far in code tags so that we can try to help you.

ZarPrime

Z.O.D

That is the code, all of it. I need to start somewhere and I need to do this first before I put my own stuff in. So I'm starting off that template. When I can get rid of the header and footer, Ill be on my way. Even if I could just hide the header and footer would be enough.

That is the code I want to use. I just want the header and footer hidden or gone. At least this way, using SSI I can have those blocks.

SMF = 1.1.11
TP =  1.083
Member Color Link = 3.0.7

I need the blocks because most people aren't on our forum, yet they still need to see what those blocks contain. So I don't have to do two separate things everyday I just want to be able to update the blocks in the forum using TP which updates the blocks everywhere forum and my homepage.  Making a separate script doesnt help me achieve ease of use. But if I have to, I will.

IchBin

Take out this line if you don't want the header.

template_main_above();

You can't remove the footer as that is what shows the SMF copyright. That part is required if you're powering your page using the functions of SMF and TP.

Z.O.D

Tx IchBin, that works.

How do you show the theme? When I select 1 or 2, the theme doesn't show, it's just a simple white background on it.

Or can you guys tell me how I can implement my own theme for those blocks? I have the theme already made. Should I modify someone elses theme and call it instead?

Any ideas?

IchBin

I haven't even tried this. I'd have to take a look at what you're doing to see how it's working. Don't know how or why it's not using the theme at this point.

Z.O.D

Okay, found the problem. In order for me to keep the theme, this actually needs to be there


template_main_above();

:(

Not even the collapse functions work without it.

Im going to try leave it there, but hide it instead. see if that works.

This website is proudly hosted on Crocweb Cloud Website Hosting.