This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Customisation, error 550?


avatar
hypostasis 0
From: -
Customisation, error 550?

Okay, so i want to edit the site header file in the templetes directory, but when i go to update it, it gives me a FTP 550 error, saying im not allowed to overwrite the file? Ive tried chmod and all that to try and make it let me overwrite it, but i cant for some reason?

The files arnt locked during installation or somthing, are they?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Customisation, error 550?
avatar
OP 0
From: -
Customisation, error 550?

Ah, okay, in my case i just put the whole thing in a variable using the same method you use in your templetes.

Also, im having a problem editing pages, when i go to create a new page, i press send and nothing happens. i get a blank page, and it doesnt show up anywhere..

This isnt any real big really, but I'd quite like to be able to write pages in the CMS rather than having to hard code them all Smiling Face since thats the idea of it Face with Stuck-Out Tongue
1 Re: Customisation, error 550?
avatar
Administrator
1340
From: Vienna, Austria
Customisation, error 550?

Originally posted by hypostasis
how can i do an include in a templete? the problem is i want to add a shoutbox to the header file (as you do) but unforuntatley <?php inlcude("shoutbox.php") ?> doesnt work (presumabley since its part of some PHP code...) What can i do to work around this?


Here an example:

<?php


echo "This is an ";
echo "example output";

?>


To include this script into a template, the output of echo needs to be written into a variable:

<?php


$output = "This is an ";
$output .= "example output";

?>


Here the site_header template modification:

<?php

global $insert;

// Including the output example script
include("output.php");

$EST_TEMPLATE = <<<TEMPLATE
<!-- Template site_header -->

$output


$output will be replaced with the output of the script (This is an example output)

Let me know if you need help with the adaptation
1 Re: Customisation, error 550?
avatar
OP 0
From: -
Customisation, error 550?

okay, new problem (i worked around the first one)

how can i do an include in a templete? the problem is i want to add a shoutbox to the header file (as you do) but unforuntatley <?php inlcude("shoutbox.php") ?> doesnt work (presumabley since its part of some PHP code...) What can i do to work around this?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.