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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,242
  • Total Topics: 21,353
  • Online today: 192
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 134
  • Total: 135
  • lurkalot

How to display forum header outside forum using ssi - problem with TP

Started by elliel, June 02, 2007, 09:21:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

elliel

Hello

I am using efiction (story writing) database, and someone is kindly helping me bridge it to my forum (smf 1.1.2)  They have give me some instructions to add the forum header to the efiction so that it displays at the top which works well on their efiction/forum:

http://www.mendala.com/mentantrealm/stories/

All I want is the forum 'welcome guest login or register' and the forum tabs to show up in this other database, since it uses the same memberlist.

The instructions I have to add it to the header in the efiction database are this:

Quote// Theme we're going to use
$ssi_theme = 9;
// Layers we're going to use
$ssi_layers = array('main');
// Enable GZip compression (saves bandwidth)
$ssi_gzip = true;

global $inefiction;
$inefiction = true;

but they don't have TP and I do, so it displays but with all of these undefined index errors on the page:

QuoteNotice: Undefined index: TPortal in /home/*/public_html/forum/Themes/default/index.template.php on line 216

Notice: Undefined index: TPortal in /home/*/public_html/forum/Themes/default/index.template.php on line 257

Notice: Undefined index: TPortal_front_type in /home/*/public_html/forum/Themes/default/index.template.php on line 718

Notice: Undefined index: TPortal in /home/*/public_html/forum/Themes/default/index.template.php on line 838

Notice: Undefined index: TPortal in /home/*/public_html/forum/Themes/default/index.template.php on line 840
        
Notice: Undefined index: TPortal in /home/*/public_html/forum/Themes/default/index.template.php on line 460

Notice: Undefined index: TPortal in /home/*/public_html/forum/Themes/default/index.template.php on line 470

What I want is either just the forum header and navigation bar 
OR
the forum header, navigation bar and sidebars to display in this efiction database at the top like they have.

I don't want to uninstall TP but I do want the forum bridged with the efiction database, so can anyone tell me how to achieve this? 

bloc

It should work as long as the SSI.php file is properly modified..that should have been done when you installed TP. Doe the SSI.php in your forum folder contain a line with "TPortal" in it?

elliel

Hi Bloc

yes it does, in ssi.php I have this:

// Load the important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');
require_once($sourcedir . '/TPortal.php');

They thought it had something to do with this line:

$ssi_layers = array('main');

and wondered if that included TP as they are not familar with TP and wondered if it was not included in 'main'

bloc

The "main" is the "template_main_above" and ".._below" functions in index.template.php. TP does render those automatically as part of the layers for any theme.

But something clearly prohibits loading up TP from SSI.php, since you get those errors. I am not sure what it can be.

elliel

I am at a loss since I dont know anything about ssi really but it definitely isnt loading TP, it displays the navigation bar as follows:


Home  Help   Search   Admin  Profile   My Messages  Calendar     Members   Gallery   Logout      

with NO forum tab

All I really want is for the the complete forum header, not necessarily the sidebars, but I have no clue how to achieve this if the above code doesnt do it.

Thanks for your help

G6Cad

Icant even see that you actually have TP installed to your forum.
You cant use TP outside the forum as TP uses the SMF files to work

Also the English steel theme have to be TP enabled to show TP.

If you still want a custom header with SSI i suggest you look at simplemachines.org for their SSI documentation and how to build extras around the SMF forum with the SSI calles.

This is not much of an TP issue when you just seem to try to use a few functions FROM tp but with out tp installed compleatly.

elliel

Quote from: G6â„¢ on June 02, 2007, 12:49:46 PM
Icant even see that you actually have TP installed to your forum.
You cant use TP outside the forum as TP uses the SMF files to work

Also the English steel theme have to be TP enabled to show TP.

If you still want a custom header with SSI i suggest you look at simplemachines.org for their SSI documentation and how to build extras around the SMF forum with the SSI calles.

This is not much of an TP issue when you just seem to try to use a few functions FROM tp but with out tp installed compleatly.

the url in the first post is NOT my forum url.  It is the forum url of the person who  gave me the code.  As per my first post, where I said he doesnt have TP installed but I do.

The ssi code I also posted in the first post does work but not when you have TP installed, which is what I am trying to get to the bottom of.

I was therefore asking why it wouldnt work for me with TP installed when it does work for him without TP installed.  I have all the undefined index errors as explained in the first post so I believe that something extra needs to be done because I have TP installed or like Bloc says above, something is stopping it but he doesnt know what.



pvcblue

Quote from: confuzed on June 02, 2007, 01:40:55 PMI was therefore asking why it wouldnt work for me with TP installed when it does work for him without TP installed.  I have all the undefined index errors as explained in the first post so I believe that something extra needs to be done because I have TP installed or like Bloc says above, something is stopping it but he doesnt know what.

The answer to this may be as simple as TP is a light version Portal, similar to MK portal etc. What you may be trying to integrate it with I think is already a portal.

bloc

Could be that something is messing with sessions etc... but then the other one should also not work.

I will try to reproduce it and see what happens.

elliel

efiction is a database for writing stories, usually fan fiction.  It is 'bridged' or can be bridged to smf by a very basic bridge.  The efiction database tables are in the smf database, so they are one database.  It isnt a portal.

Anyway the bridge is very basic as you are supposed to modify it yourself (if you know how) This person has done it successfully and is sharing his code.

There are changes to files in efiction to give you $ from the smf shop and add to your forum post count, and links on posts etc, and they all work.  He has added the ssi code to the efiction header.php so that it displays his forum header, which you can see in the above URL.

I can get my forum header to display EXCEPT that it has all the above TP errors (in first post) and the forum tab is missing, so it is not loading/finding/displaying TP info.


Quote from: Bloc on June 02, 2007, 03:33:12 PM
Could be that something is messing with sessions etc... but then the other one should also not work.

I will try to reproduce it and see what happens.

thanks Bloc, appreciate any help to get this working

This website is proudly hosted on Crocweb Cloud Website Hosting.