4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: fredfery on April 12, 2002, 07:46:09 AM

Title: Modify the templates/customisation
Post by: fredfery on April 12, 2002, 07:46:09 AM
hello

That's what I am trying to do:

I want to modify the templates (home.html, and details.html) to customise to my needs
I don't need the user login box, but want to add extra url in the same <td> instead (about this site, contact us...)

In the detail.html template, I need to remove the userbox tag {user_box} and move down a bit the {description} tag

It doens't work I get this error message:

Parse error: parse error in /Library/WebServer/Documents/4images/includes/template.php(130) : eval()'d code on line 122

What I don't understand is when I replace the old template with the backed up version the error is still there..

any ideas?
Frederic
Title: Modify the templates/customisation
Post by: Jan on April 12, 2002, 08:16:27 AM
Do you have PHP-Code in your Templates? Be sure that this Code is intact and the PHP Starttag and Endtag is not in the same line.

not correct:
<?php echo "test" ?>

correct:
<?php
echo "test";
?>


Jan
Title: template
Post by: fredfery on April 12, 2002, 08:34:44 AM
Jan
I am not even trying to make a template
I just tried to modify the default templates
Just removing a tag in the home.html or details.html was causing the error
Title: Modify the templates/customisation
Post by: Jan on April 12, 2002, 08:40:36 AM
There is an example php-Code in all the templates:
Code: [Select]
<?php
echo date&#40;"d.m.Y, H&#58;i"&#41;; 
?>

This code shows only the actual date. Check if this code is already intact.

Jan
Title: Modify the templates/customisation
Post by: fredfery on April 12, 2002, 08:56:38 AM
in which template I should check??

I have checked in details.php and everything seems to be ok, i was only trying to modify details.html not php
Title: Modify the templates/customisation
Post by: Jan on April 12, 2002, 09:02:23 AM
Yes, i'm talking about details.html! Check the code i posted above in this file.

Jan
Title: Modify the templates/customisation
Post by: fredfery on April 12, 2002, 09:15:09 AM
Thanks Jan
the php code was actually intact, but I have found that removing it from the templates was the solution!!!

ta
Frederic