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,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 692
  • Total: 693
  • lurkalot

How to Make a Page at a different URL Yet, Keeping the TPish effect.

Started by Megaforum, November 15, 2007, 04:44:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wilsy

Hi Dragooon,

If I comment out $TBS->Show(); as below then the blocks are there as is the footer.

Quote$TBS = new clsTinyButStrong;
$TBS->NoErr = true;// no more error message displayed.
$TBS->LoadTemplate('template.html');
$TBS->MergeBlock('blk1',$display_array);
//$TBS->Show();

echo $show;

ssi_shutdown();

?>

Regards,

Wilsy.

P.S. I can mail you the zip of files for the importer script if you wish?

wilsy

Quote from: wilsy on December 28, 2007, 09:42:28 AM
Quote from: Dragooon on December 02, 2007, 10:51:28 AM
Thanks :)
And if you want to hide some panels you can use tp_hidebars function
Before
template_main_above(); Add
tp_hidebars('YOUR BAR');
'center' For Center
'left' For Left
'right' For right.

Can we use some code to show front page blocks?

Regards,

Wilsy.

Thanks for all your help today Dragooon regarding integrating the getmycontacts script, guess it just wasn't to be but your help was very much appreciated.

Can anyone provide any pointers on showing frontpage blocks on an external page. So far we can have left/right/centre but not front?

Regards,

Wilsy.

wilsy

Quote

Can anyone provide any pointers on showing frontpage blocks on an external page. So far we can have left/right/centre but not front?


Is it possible to include the frontpage blocks?

Regards,

Wilsy.


wilsy

Thanks Dragooon - if you cant solve it then it may well be impossible! ;)

Dragooon


wilsy

I managed to just use block code in the new page and it works pretty well. This page is at http://www.rewindlancs.com whilst the main site is at http://rewindlancs.com/forum/index.php

I'm hoping it may help with search engines a little as I was redirecting with .htaccess previously.

Regards,

Wilsy.

wilsy

I spoke too soon.

I'm now getting this error on the new page at www.rewindlancs.com

Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/rewind01/public_html/forum/SSI.php on line 162

This is the code in this page: -


<?php
require_once('/home/rewind01/public_html/forum/SSI.php');
$ssi_theme 21;
global 
$context;
TPortal_init();

template_main_above();

$banners = array (
'<div align="center"><a href="http://rewindlancs.com/forum/index.php?action=register"><img src="http://www.rewindlancs.com/forum/images/splash/spit_image3.jpg"></a>',
'<div align="center"><a href="http://rewindlancs.com/forum/index.php?action=register"><img src="http://www.rewindlancs.com/forum/images/splash/spit_image.jpg"></a>',

);

shuffle($banners);

echo 
$banners[0];

echo 
'
<p>
<div align="center">
<TABLE width="600px" border="0" cellspacing="0" cellpadding="10">
<tr> 
    <td align="center" valign="top"><IMG SRC="http://rewindlancs.com/forum/gallery/thumb_529_16_09_07_6_55_57.jpg" ALT="some RWL members" WIDTH=104 HEIGHT=78>
    <p>
    <IMG SRC="http://rewindlancs.com/forum/gallery/thumb_88_12_07_07_3_04_59.jpg" ALT="Anglezarke Falls" WIDTH=104 HEIGHT=78>
    <p>
    <IMG SRC="http://rewindlancs.com/forum/gallery/thumb_1_16_01_07_3_08_11.jpg" ALT="who says that\'s the boundary!" WIDTH=104 HEIGHT=78>
    <p>
     <IMG SRC="http://rewindlancs.com/forum/gallery/thumb_574_16_11_07_4_15_14.jpg" ALT="the hill" WIDTH=104 HEIGHT=78>
 
    </td>
    <td><b>Welcome to RWL - Lancashire\'s Original and Best Online Community</b><p>

There\'s lots to do at RWL but firstly we need to give you some background as to why this site was established in the first place!<p>
In 1974 Lancashire was carved up in a local government re-organisation. This meant that towns such as Bolton, Bury, Wigan and lots of others had \'Lancashire\' removed from their postal address. These were towns that were proud of their long association with Lancashire and many wanted that to continue. RWL was established in January 2007, not to become a pressure group, but simply to provide a community for all true Lancastrians, irrespective of their postal address. It is also a place where ex-pat\'s from all over the world can stop by.<p>
<p>
At RWL you will find very lively discussion forums where you can debate the latest news stories, things you find unbelievable, incredible, or just downright stupid! 
<p>
You can create a profile, add photos to it or tell the world a little bit about yourself. We have a games arcade with well over 100 games. You can arrange tournaments or just see if you can become a champion and beat the current high scores. 
<p>
There is a chat room which is always open and in there lives our resident chat host, Kelli, who will always have a few words to say if theres nobody else around to talk to ...but beware, she is rather sassy!! 
<p>
RWL is absolutely free to use, the only thing we ask you to spend is your time, and we hope that every minute with us in an enjoyable experience.
<p></td>
  </tr>
  <tr> 
    <td align="center" valign="top"><IMG SRC="http://rewindlancs.com/forum/gallery/thumb_293_22_08_07_7_14_13.jpg" ALT="some RWL members" WIDTH=104 HEIGHT=78></td>
    <td><b>Preston</b><p>

Night life in Preston is rich and varied. The town boasts a delightful array of restaurants and cafe bars along with many different pubs to choose from. For the younger crowd Preston is also host to many nightclubs.

The Grey Friar is a JD Wetherspoons situated at the bottom of Friargate, which is a perfect stopping point on your way into town. It usually packed but it is excellent value for money. Across the ring-road are Mood and Bar Censsa, which both have modern interiors and play cheesy music. Mood also has a dancefloor and has lots of drinks offers.
<p>
Off Fishergate trendy bars such as Voodoo Lounge, Loft, Browns and Hush are great if you fancy dressing up smart and fancy something a bit more \'up market\'. 
<p></td>
  </tr>
  <tr> 
    <td align="center" valign="top"><IMG SRC="http://rewindlancs.com/forum/gallery/thumb_293_22_08_07_7_14_53.jpg" ALT="some RWL members" WIDTH=104 HEIGHT=78></td>
    <td><b>Lancaster</b><p>

The nightlife in Lancaster can be as exciting as you want it to be. The city offers a diverse nightlife scene that can be enjoyed by all persons.

Depending on what you are looking for, there are many places you can go out to at night. For those who like to party, you\'ll be glad to know that most clubs are open every night. Some of the clubs and bars include The Sugarhouse, Revolution, Liquid, Toast, the Lounge and Bentleys.
<p>
Lancaster has a great selection of traditional pubs. There are plenty to choose from, as you would expect from a City with a large resident student population. If you are not to keen on dancing and just want to spend some time with your mates, there are a number of pubs to choose from where you can do just that.
</td>
  </tr>
  
</TABLE>
</div>

'
;

ssi_shutdown();
?>


Does anyone have any ideas?

Regards,

Rick.

Dragooon

Admin > Server Settings > Feature and configuration
Make sure the fol. is correct :
Enable local storage of cookies (unchecked)
Use subdomain independent cookies (checked)

wilsy

Hi Dragoon,

Yes, I have that correct. I'm wondering if the path to SSI.php has been called correctly, it seems to be right?

Regards,

Wilsy.

This website is proudly hosted on Crocweb Cloud Website Hosting.