I just want a few tinyportal blocks on my homepage is that possible without having the same theme used as my forum? I want to use my actual websites theme but with tinyportal blocks.
It would make my life so much easier man.
Also, is it possible to still use the smf permissions to see those blocks?
Just to clarify, does your site have a seperate them from the forum?
If it does, then the short answer is no.
As TP relies on SMF, the page being viewed must be an SMF based page, inorder for TP to display blocks on that page.
However, depending on what you want to do, then you could either make the pages SMF based, or possibly utilise SMF's SSI for generating/displaying blocks.
All I want is 1 php block 1 navigation block and 1 news block.
Yes, its just my website theme, or header really, the background is just a 1px color all over.
I'll add to that.
I don't want to use SMF on my website because it is really slow. My other forum on the same server is as fast as lightening. So It has to be SMF. But my vB forum doesn't allow me to use these types of blocks on my homepage, so I tried SMF, but now I found I can't use TP on my homepage alone..Which now defeats the purpose of me having SMF.
Z.O.D,
First of all, TinyPortal requires that SMF be installed somewhere on your site in order to work since it is a Mod for SMF. You cannot show TP Blocks on your site if the SMF ssi.php is not available to access.
What mc is saying is esentially correct. I have to admit that I have never done this, but what you want to do is technically possible though, if you want a different theme for your Main Site page, that theme will probably need to be installed on SMF in order to call it on the Main Page. TinyPortal has the ability to show a Front Page for your Forum and, for most people, this is sufficient. It can even have a different theme than your main Forum by setting up a FrontPage Featured article to use a different theme.
Secondly, I think a little discussion on how TinyPortal works might be in order.
Let's make a few assumptions ...
1. Assume that your main site url is here --> http://www.MySite.net/
2. Assume that you have installed your SMF Forum to a folder inside your site, like this --> http://www.MySite.net/SMF
3. Assume you have setup TP 1.x to work with your Forum.
Assuming that all of these are correct, your main site in #1 above is not currently connected in any way to your Forum. That means that your Forum url is http://www.MySite.net/SMF/index.php?action=forum and your TinyPortal FrontPage is at http://www.MySite.net/SMF/index.php
Your goal is to show the TinyPortal blocks on your main site which is --> http://www.MySite.net/
A couple of things are required in order to do this ...
1. The page for your main site must be php, for instance --> http://www.MySite.net/index.php
2. In order to show TP blocks, that page will need to make use of the functions in ssi.php from your Forum installation.
3. In order to do this on your main page, you will have to know a little bit about writing php code, primarily to show any additional content that you want on your Main Site page.
If you want to try something like this then the following topics will be of use to you ...
http://www.tinyportal.net/index.php?topic=21681.0
http://docs.simplemachines.org/index.php?topic=789
http://www.simplemachines.org/community/index.php?topic=14906.0
http://www.simplemachines.org/community/index.php?topic=12936.0
http://www.simplemachines.org/community/index.php?topic=13016.0
http://www.simplemachines.org/community/index.php?topic=13205.0
http://docs.simplemachines.org/index.php?topic=400.0
Now, with all that being said, TintPortal 1.x allows you to import an article, which can essentially be used to create a splash page or another page. For a little more on that, read this --> http://www.tinyportal.net/index.php?topic=21681.msg176719#msg176719
Finally, don't be intimidated by all this. I know that what you want to do can be done because others have indeed done it. However, it will take a little work on your part. I don't know how much help we can give you with it, but if you need additional help, the support topics on SMF about using ssi.php are certainly available and we can try to help you at least troubleshoot your code.
ZarPrime
Maybe this is what you're looking for. I'm not sure if it works with the current version of TP though.
http://www.tinyportal.net/index.php?topic=20069.msg163549#msg163549
Quote from: Z.O.D on February 11, 2010, 04:28:41 PM
I don't want to use SMF on my website because it is really slow. My other forum on the same server is as fast as lightening. So It has to be SMF. But my vB forum doesn't allow me to use these types of blocks on my homepage, so I tried SMF, but now I found I can't use TP on my homepage alone..Which now defeats the purpose of me having SMF.
SMF itself isn't slow, but compared with vB, most forum scripts are slow.
vB as standard uses a lot of pre-caching, where it caches certain items like posts and searches when they're initially made, so when they need to display, it's a simple case of pulling them from the database, and outputting them.
Pre-caching works well, but it does require extra disk space, and there is always the possibility that what you're seeing isn't the most upto date, but 99.9% of the time, you won't be any the wiser.
Most other forum scripts, don't use any form of caching as standard, so for each page, numerous database queries have to be made, and the results parsed/formatted, before finally outputting it. The benefit is that you're always guaranteed to have the latest posts/stats shown, but it can cause performance issues on high use sites.
If you were to disable all caching in vB, it would be very slow compared with SMF.
Thanks guys, I'm moving along, now on how to remove the header and stuff. I just want blocks not the whole SMF forum thing.
Much appreciated.
Z.O.D,
Keep us posted on your progress. I'm interested in knowing how it works out for you. ;)
ZarPrime
Not looking too good :( Its got the forum header with all the links in it,the shoutbox and the footer..I need to get rid of all of it but dont know how. that tutorial only lets me hide stuff like the blocks. Not the actual forum header. Its breaking my own header and adding it to the forums header instead of being on its own at the top. My jquery dropdown also doesnt work now.
If you want help, it'd be great if you provided some details. Like the code your using would be a good start. We have no idea what you're doing, so it's hard to read your mind.
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();
?>
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 (http://www.tinyportal.net/index.php/topic,581) 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
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.
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.
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?
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.
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.