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: 312
  • Total: 312

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

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?

mc

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.

Z.O.D

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

ZarPrime

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

IchBin

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

mc

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.

Z.O.D

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.

ZarPrime

Z.O.D,

Keep us posted on your progress.  I'm interested in knowing how it works out for you. ;)

ZarPrime

Z.O.D

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.

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.