Author Topic: Creating Templates  (Read 27120 times)

0 Members and 1 Guest are viewing this topic.

Offline Term

  • Newbie
  • *
  • Posts: 31
    • View Profile
Creating Templates
« Reply #15 on: November 02, 2002, 12:08:26 PM »
I swear I seen that post.. read it... and it was ONLY in german.... I guess I looked to quick.

Offline Term

  • Newbie
  • *
  • Posts: 31
    • View Profile
Creating Templates
« Reply #16 on: November 04, 2002, 05:52:54 PM »
Hey...

Anyone got a cure for my problem yet? I really need help here   :cry: :(

Thanks anyone.. someone... you! :)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Creating Templates
« Reply #17 on: November 04, 2002, 06:22:27 PM »
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Look here
« Reply #18 on: January 06, 2003, 04:17:31 AM »
Quote from: Term
Then I LINK to about_us.html from the home.html template.

Now on the about_us.html template I got pretty much the same template 4images comes with so it has many
Code: [Select]
{these} things...

But my problem is on about_us.html none of them are parsing... What do I do?

I think this would take care of what you're trying to do.  Just supply the template name in the URL of your link in home.html like so:
Code: [Select]
http://www.YourDomain.com/index.php?template=about_us
4images accepts the "template=" and takes care of adding ".html" to about_us and looks for a file called "about_us.html" in the current template directory.  If it's found, it's processed.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: Creating Templates
« Reply #19 on: March 10, 2006, 05:48:20 PM »
This is what I always do and is very helpful to maintain it organize

open includes/page_header.php

before the
Code: [Select]
?>
add this
Code: [Select]
//---------------------------------------------------------------------------------------------
//---- New template {these}  --------------------------------
//---------------------------------------------------------------------------------------------

$these = $site_template->parse_template("these");
  $site_template->register_vars(array(
    "these" => $these
  ));
  unset($these);
now you can add {these} to any template

and you need to create a these.html template



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
Re: Creating Templates
« Reply #20 on: March 11, 2006, 01:53:01 AM »
usingin v1.7 dont you?
since v1.7.1 your method will not work, the template parsing must be done AFTER registering the tags ;)
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 ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: Creating Templates
« Reply #21 on: March 11, 2006, 02:17:10 AM »
im using 1.7.2 :) and it works perfectly :) :D

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
Re: Creating Templates
« Reply #22 on: March 11, 2006, 07:40:18 AM »
usingin v1.7 dont you?
since v1.7.1 your method will not work, the template parsing must be done AFTER registering the tags ;)
^
stupid :oops:
overlooked what was actualy registering as a tag...
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 Beautiful Body Castings

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Creating Templates
« Reply #23 on: June 14, 2006, 03:41:51 AM »
i can offer people template creation to fit with your existing site all i need is a copy of the default templates or the modified ones your using (header and footer only)

and a copy of one of your standard site pages with out any main content just a word like content where u wish the gallery stuff to be in relation to other elements on the screen etc

Michael