Author Topic: Adding more pages?  (Read 7864 times)

0 Members and 1 Guest are viewing this topic.

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Adding more pages?
« on: December 27, 2002, 12:44:53 AM »
How do I add more pages using the same template? Basically what I did was deleted everything on the right in the home.html page and saved it as "contact.html" but when I uploaded it, the template was lost, and all messed up. 8O

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Adding more pages?
« Reply #1 on: December 28, 2002, 11:39:56 PM »
anyone?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Adding more pages?
« Reply #2 on: December 29, 2002, 01:28:58 AM »
I thnk u need first register that template for ex. if u want use your "contact.html" template with "home.html" u'll need change this code in index.php:
Code: [Select]
$templates_used = 'home,category_bit,whos_online,thumbnail_bit';

to this:
Code: [Select]
$templates_used = 'home,category_bit,whos_online,thumbnail_bit,contact';
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Shap

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Adding more pages?
« Reply #3 on: December 29, 2002, 07:34:14 PM »
that made it find the right page, but still lost all includes and style

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Hmmm
« Reply #4 on: January 06, 2003, 04:13:56 AM »
I don't know if this helps but you can simply supply the template name in the URL like so:
Code: [Select]
http://www.YourDomain.com/index.php?template=MyNewTemplate
4images accepts the "template=" and takes care of adding ".html" to MyNewTemplate and looks for a file called "MyNewTemplate.html" in the current template directory.  If it's found, it's processed.

Offline Vraxor

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • http://tc-revolution.net
Adding more pages?
« Reply #5 on: January 06, 2003, 07:32:42 AM »
I think this would do it

I was just curious so I tried it using http://madfunny.com/index.php?template=contact

it looks fine too, me so..

Cheers,
Vraxor

Offline Bomba

  • Full Member
  • ***
  • Posts: 202
    • View Profile
Adding more pages?
« Reply #6 on: February 19, 2003, 03:53:44 AM »
hmm i've tryed this but i can't get it working

can u guys please explain me what codes do i have to change?
i'm using the link to the new page on a menu next to random_image and i would like to open that link on the right side of the 4images template.

hope to get some answers :)
thanks