Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Term

Pages: [1] 2 3
1
Mods & Plugins (Requests & Discussions) / Creating Templates
« 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! :)

2
Mods & Plugins (Requests & Discussions) / Creating Templates
« 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.

3
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 30, 2002, 06:51:58 AM »
Since I don't understand dutch.. or german... or whatever is used on this site... I couldnt read that post Jan made about vacation.. does anyone know when he/she is returning?

4
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 28, 2002, 04:52:24 PM »
yeah... thanks... i didnt mean to offend you or make a remark towards you personally :)

I am just so frustrated and I don't see why just placing a file in the templates directory wouldn't work... It's so wierd... I've searched all the code and although i'm a noviss php coder it looks like all the code does is read whats in that directory with a .html and parses it. So why isn't it working? I dunno.

Thanks for the information though vivid...

5
http://www.4homepages.de/forum/viewtopic.php?t=2292

In here Jan tells us how to do that. It will work to do what you want but this does NOT make you able to create a wholenew template page all together. Something I'm trying desperately to figure out.

It's really simple actually. For the sake of being nice I'll just tell you now incase you might get confused in that other thread.

in index.php right befor:
Code: [Select]

//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------


add:

Code: [Select]

//-----------------------------------------------------
//--- your_template_item -------------------------------
//-----------------------------------------------------[/
$your_template_item = $site_template->parse_template("your_template_item");
$site_template->register_vars("your_template_item", $your_template_item);



Replace your_template_item with whatever name you want for your:

Code: [Select]
{your_template_item}

Then upload a file called your_template_item.html (remember to use the name you decided) to the templates directory and chmod it 666.

You can now use {your_template_item} on any of the standard templates that came with 4images.

Just place the tag on there where you want it. I'm not sure this is the best way. But it worked for me.

6
Templates & Styles (Requests & Discussions) / Gallery Index Template Help
« on: October 28, 2002, 04:37:49 PM »
If you got a html editing program it would be a lot simpler.

Do you want to get rid of that whole column, are you SURE? if you are and still need help. Hit me up and I'll give you the code to get rid of that column.

7
Can someone tell me how I simply add a page to the templates? I want to add a about_us.html page with
Code: [Select]
{header} {footer} etc. on it but when I place it in the directory and chmod it... The file just won't parse... Can anyone help me please?

8
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 28, 2002, 04:28:36 PM »
Oh... and thanks to all the other php coders that so eagerly want to help...

thanks for that news...

9
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 28, 2002, 06:57:29 AM »
oh my gosh this is so impossible!!!!  :cry:

Ive looked through so many files.. EVERY FILE... and tried everything that i know to try....

SOMEONE... help me?

Jan? Please....  :oops:

Sorry... im desperate... I needa get this site up :)

Thanks so much for the support ANYONE!!!

 :D

10
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 28, 2002, 06:12:42 AM »
Help . . .  . . .    :cry:

11
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 27, 2002, 11:53:05 PM »
It seems like I asked this question poorly.

You gave me code to make a new
Code: [Select]
{thing} to be able to call it already in a template... I wanted to know how to make a new template altogether.

Such as about_us.html

12
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 27, 2002, 11:41:26 PM »
On index.php i added:

Code: [Select]
//-----------------------------------------------------
//--- About Us ----------------------------------------
//-----------------------------------------------------
$about_us = $site_template->parse_template("about_us");
$site_template->register_vars("about_us", $about_us);


and then in the templates directory I added a file called about_us.html

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?

13
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 27, 2002, 11:11:02 PM »
I got that all to work but now when I try to use template code on that individual templates.. it doesnt work.

For instance I have a template now called about_us.html and when i put:

Code: [Select]
{header} and
Code: [Select]
{footer}

on that template it doesn't display the header.html, it displays
Code: [Select]
{header}

What do I gotta do now and in what file?

14
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 17, 2002, 06:30:43 PM »
Nope I'm pretty sure that is wrong.. this is tricky for me! Hard to figure out. I keep looking through the code... and I know forsure the template item has to be included at the top for templates used... on each .php page..

linke index.php, categories.php etc. but i cant figure out exactly how to do it... someone should make a tutorial... im still new to php so i cant figure this out! :(

15
Mods & Plugins (Requests & Discussions) / Creating Templates
« on: October 17, 2002, 06:24:38 PM »
I think its somthing like...
Code: [Select]
$template_item = $site_template->parse_template("template_item"); And the html page would be template_item.html... But I know I'm missing some stuff.. or a lot????

Pages: [1] 2 3