4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: Caramel_lady on December 11, 2005, 09:19:43 PM

Title: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 11, 2005, 09:19:43 PM
ok ... I went too edit my default template and everytime I make a change and click "save changes" it goes back to being regular. It diesn't say "template edited!" like it should. I did everything it said to do (chmoded my files. etc) ... I don't understand! Help me please!!  :(
Title: Re: *eeek* template won't edit!! help me please!
Post by: V@no on December 11, 2005, 09:27:47 PM
bug fixes
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 11, 2005, 10:32:49 PM
Huh? How can I fix it ... ?

Just wondering, why is this happening?
Title: Re: *eeek* template won't edit!! help me please!
Post by: Acidgod on December 11, 2005, 10:45:32 PM
Read the Bug fixes Forum... Link you can find in V@nos Signature...
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 11, 2005, 11:33:18 PM
ok ... I went to this link here: http://www.4homepages.de/forum/index.php?topic=10682.0 . I went to my ACP and I went to templates ... however I couldn't find where it said what it's suppose to say that I'm suppose to change like it said in that topic.

Any ideas where I would find that ... ? I looked at most of all the .html files in the "template.php" but couldn't find it ...
Title: Re: *eeek* template won't edit!! help me please!
Post by: Acidgod on December 12, 2005, 12:03:56 AM
You must edit the template.php and then put the changed File by FTP back on the Server!
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 12, 2005, 01:05:08 AM
hmm ok ... I did that but when I went to edit my template, I clicked on "templates" in my ACP and got this msg here:

Quote
Parse error: parse error, unexpected T_ELSE in /home/coponfan/public_html/visuals/admin/templates.php on line 41

Now I put the code ... unless I did it wrong  :? here's what I put:

Code: [Select]
if (isset($HTTP_GET_VARS['template_folder']) || isset($HTTP_POST_VARS['template_folder'])) {
  $template_folder = (isset($HTTP_GET_VARS['template_folder'])) ? trim($HTTP_GET_VARS['template_folder']) : trim($HTTP_POST_VARS['template_folder']);
if (isset($HTTP_POST_VARS['content'])) {
  $content = trim($HTTP_POST_VARS['content']);
}
else {
  $content = "";
}

wat's wrong??
Title: Re: *eeek* template won't edit!! help me please!
Post by: V@no on December 12, 2005, 03:31:54 AM
How about you read instructions very slow, and very carefull?
Looking at your prevous posts, I came to a conclusion that you are very careless regarding following the instructions.

Re-read the bug fix instructions and try again.
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 12, 2005, 05:47:51 AM
Ok ... so I got the code figured out (thanks to some1 else who explained it) , but now I get these warning messages when I go to edit something. And the code doesn't show. Now why is this happening??

Also, I use this for my other site, why is this problem happening now and didn't happenwith my other site? That's strange...
Title: Re: *eeek* template won't edit!! help me please!
Post by: V@no on December 12, 2005, 06:01:24 AM
WHAT PROBLEM? WHAT MESSAGES?
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 12, 2005, 06:29:59 AM
 ... this is the warning msg I recieve when I try to edit something:

Warning: file(): Unable to access ./../templates//home.html in /home/coponfan/public_html/visuals/admin/templates.php on line 131

Warning: file(./../templates//home.html): failed to open stream: Permission denied in /home/coponfan/public_html/visuals/admin/templates.php on line 131

Warning: implode(): Bad arguments. in /home/coponfan/public_html/visuals/admin/templates.php on line 131

and the problem I'm talking about is this. The fact that I had/have that little "bug" problem for this site but everything was fine when using it for my other site. Well ... hope this warning msgs get fixed ;)
Title: Re: *eeek* template won't edit!! help me please!
Post by: V@no on December 12, 2005, 07:46:17 AM
attach your templates.php (rename it to templates.txt) I bet that you made a misstake when edited it.
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 12, 2005, 11:13:33 PM
http://coponfan.com/visuals/templates.txt <- there's the link ... wat mistake did i make?
Title: Re: *eeek* template won't edit!! help me please!
Post by: V@no on December 13, 2005, 12:22:56 AM
Ok, I lost the bet :?

Can you create phpinfo.php file with this contents:
Code: [Select]
<?php
phpinfo
();
?>
and show the link to it.

Secondly, if you dont mind, I'd like to test it myself, so if you could create a temporary administrator account and send me the login info via PM.
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 14, 2005, 12:54:26 AM
ok done ... here's the link http://coponfan.com/visuals/phpinfo.php and I just sent you a PM w/ your info.
Title: Re: *eeek* template won't edit!! help me please!
Post by: V@no on December 14, 2005, 01:15:37 AM
OK, I thought I made a mistake but I was wrong :P
I won the bet. You indeed made a mistake in your templates.php
I'd suggest you take the original file and apply the patch again. It seems that when you first applyed the path (you've showed the changes you've made above), you made a mistake, then somebody showed you where is your mistake, and trying to fix that you removed more then supposed to from the file.
Title: Re: *eeek* template won't edit!! help me please!
Post by: Caramel_lady on December 14, 2005, 03:20:22 AM
........ ok you won the bet, lol! Thanks for all your help  ... it's working now :)