Author Topic: Modify the templates/customisation  (Read 10069 times)

0 Members and 1 Guest are viewing this topic.

Offline fredfery

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • http://www.webmaster-tools.tv/
Modify the templates/customisation
« 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Modify the templates/customisation
« Reply #1 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline fredfery

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • http://www.webmaster-tools.tv/
template
« Reply #2 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Modify the templates/customisation
« Reply #3 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline fredfery

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • http://www.webmaster-tools.tv/
Modify the templates/customisation
« Reply #4 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Modify the templates/customisation
« Reply #5 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline fredfery

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • http://www.webmaster-tools.tv/
Modify the templates/customisation
« Reply #6 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