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: 0
  • Guests: 824
  • Total: 824

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

I've amended the file to call the SSI.php file right at the beginning and it seems to have sorted it. Should this cause me any problems?

<?
require_once('/home/rewind01/public_html/forum/SSI.php');
?>

<?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 align="left"><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 align="left"><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 align="left"><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();
?>


Regards,

Wilsy.

Dragooon

the error disappeared for me. Try clearing your cookies and try logging in again.

wilsy

Seems ok now. if anybody else gets the error can they let me know?

Regards,

Wilsy

fangweile

I am using this code and it's really great. I have some small problems here. I integrated my smf and my coppermine gallery. I have gallery button in my forum (My theme is dilbermc btw). When i try to view my gallery, the selected menu bar is pointed to "HOME" button, What code should i use to make it point to my gallery button. I think that this is related to current action I use. Do i have to create a custom action for my coppermine gallery button. What code should I used. 

Hope someone could help, thanks in advance:o :o

when I view my coppermine gallery the buttons shows like this.


the selected menu must be at the gallery button, not in the home.

IchBin

coppermine is not part of SMF so that means that your menu won't be able to pick it up. No way I can think of that would make the menu active when you are in the forum.

fangweile

Hello there,

I have a custom action mod installed in my forum and I have an action for my gallery.

action=gallery

It is possible to use this code to tell smf that the page current action is on gallery.

Maybe adding some codes in
<?php
$ssi_theme 
1;
global 
$context;
require_once(
'..path..to...my...forum...test/smf1/SSI.php');
TPortal_init();
template_main_above();

echo 
'
This is to show you the divine power of SMF and TP!!!'
;

ssi_shutdown();
?>


any idea



[edit]

I have figured it out

I have modified the forum index.template.php

Find

    // Work out where we currently are.
   $current_action = 'home';


After it add this code
   if (defined('IN_COPPERMINE'))
      $current_action = 'gallery';


I really works.

This website is proudly hosted on Crocweb Cloud Website Hosting.