Discussion
Almanac Template Trouble(back to index)I cannot get the comments to save in this template. Are there any documents or discussion out there to read? If not, anyone know what I have not done yet?
posted by Mark on 27 Jul 05 at 4:16 PM
I seem to have commments working right now by changing a line to this: <form method="post" action="<#fbself#>">
and by adding this line: <input type="hidden" name="image" value="<#fbimagename#>" style="display: none;" />
I changed and added these lines in both almanac_main.php and almanac_comment.php.
posted by Mark on 27 Jul 05 at 5:09 PM
hmm, mine still doesn't seem to save properly and I did what you did. I added the line of <input type...> right above the other input lines, though.
Need heaps of help for this :(
Also, why can't I access /pblog/? I can only access the fb.php section. Did I had to change some permissions?
posted by
Noranna on 30 Jul 05 at 2:09 PM
By the way, my photoblog (still under major construction and testing mode) is accessible here: http://www.norannayasmin.com/pblog/fb.php
Why can't I access it as a /pblog/?
Also, with the Almanac template, is it possible to leave the header on when you're clicking on some of the links above?
Thanks heaps, I am new to this but the program seems cool so far.
posted by
Noranna on 30 Jul 05 at 2:18 PM
Noranna, to access it at /pblog/, the file has to be named index.php.
You can either just rename the PHP file to index.php, or create a file called index.php that includes the code:
<?php header("Location: http://www.norannayasmin.com/pblog/fb.php"); ?>posted by
donald on 30 Jul 05 at 6:56 PM
oh, cool, I can access it as pblog :) thanks!!!
still working on the comments trouble, though.
posted by
Noranna on 30 Jul 05 at 10:13 PM
Noranna, make sure $require_captcha is set to 0 in fb_settings.php
posted by
donald on 31 Jul 05 at 2:04 AM
ok, did that and it seemed I can get comments but like the comments are e-mailed to me but not displayed on the photoblog.
Anything else I should make sure of?
Thanks heaps!!! :D Folderblog is awesome!
posted by
Noranna on 31 Jul 05 at 3:40 AM
This is what I get, by the way:
Warning: fopen(comments/IMG_8346_com.txt): failed to open stream: Permission denied in /home/noranna/public_html/pblog/fb.php on line 234
Warning: fwrite(): supplied argument is not a valid stream resource in /home/noranna/public_html/pblog/fb.php on line 235
Warning: fclose(): supplied argument is not a valid stream resource in /home/noranna/public_html/pblog/fb.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/noranna/public_html/pblog/fb.php:234) in /home/noranna/public_html/pblog/fb.php on line 250
posted by
Noranna on 31 Jul 05 at 3:41 AM
Make sure you've created the /comments/ directory and CHMOD'ed to at least 755.
posted by
donald on 31 Jul 05 at 4:37 AM
Yep, I did create the comments directory in /pblog/ and CHMOD'ed to 755. Still not working... I'm using the default template tho, with some design/style tweaks here and there...
posted by
Noranna on 31 Jul 05 at 4:53 AM
ooh, it works now :) I CHMOD'ed it to 777.
Working on how to generate thumbnails now :(
posted by
Noranna on 31 Jul 05 at 7:25 AM
Ok, I can create thumbnails now but one more problem is with the posting! Whenever I post / add caption to a photo I uploaded, it says Warning: fopen(photos/IMG_8496.txt): failed to open stream: Permission denied in /home/noranna/public_html/pblog/index.php on line 284
Warning: fwrite(): supplied argument is not a valid stream resource in /home/noranna/public_html/pblog/index.php on line 285
Warning: fclose(): supplied argument is not a valid stream resource in /home/noranna/public_html/pblog/index.php on line 286
Warning: fopen(rss.xml): failed to open stream: Permission denied in /home/noranna/public_html/pblog/index.php on line 332
Warning: fwrite(): supplied argument is not a valid stream resource in /home/noranna/public_html/pblog/index.php on line 333
Warning: fclose(): supplied argument is not a valid stream resource in /home/noranna/public_html/pblog/index.php on line 334
posted by
Noranna on 31 Jul 05 at 8:15 AM
Noranna, might be the same problem — try chmodding your caption directory (and your folderblog directory itself, for the RSS) to 777 as well?
posted by
donald on 1 Aug 05 at 1:15 AM
thanks! works now! :D
posted by
Noranna on 1 Aug 05 at 7:01 AM
Still have the problems with comments. They do not work on my folderblog. I changed and added the lines as mentioned in this thread, i chmod the comments dir to 777 and set fbcaptcha to 0 in the fb_settings.php. Anything else to do? Btw i use the almanac theme.
thx in advance Mo
posted by
Mo on 2 Oct 05 at 11:09 AM
i am having the same problem that comments are e-mailed to me rather than being posted! i have also all the instrcutions that were posted here!
posted by
armeen on 6 Oct 05 at 9:01 PM
my problem is now fixed, i did not add the codes that Mark mentioned properly. now that i added, it is now all working. hooray!
posted by
armeen on 6 Oct 05 at 11:35 PM
thanks mark ! worked for me also !
posted by
rodrigo on 16 Oct 05 at 12:49 AM
hi all, I'm now installing the folderblog and it's great... (thanks Donald) but... it doesn't work properly.. and I read here I have to CHMOD the folders to 777.... I'm really a beginner.. how do I do that?
posted by
Alex on 24 Oct 05 at 11:38 PM
You need to use an FTP program. There are many out there. I am using WSFTP and I simply right click on the remote file/folder and select properties and it brings up chmod properties.
If you don't have any ftp software and you just want something basic you can go to:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
and download psftp. It works with unix shell commands:
to login "open domain.com"
to view directory contents "dir"
to change directory "cd directory_name"
to change chmod "chmod 777 directory_name"
posted by
Jason on 25 Oct 05 at 9:08 PM
thanks but I had that figured out in the meantime...
posted by
Alex on 25 Oct 05 at 9:08 PM
my comments are now working but this appears after you add a comment:
Warning: mail() has been disabled for security reasons in /mnt/storage/users/l/u/p/luplik/index.php on line 241
Warning: Cannot modify header information - headers already sent by (output started at /mnt/storage/users/l/u/p/luplik/index.php:241) in /mnt/storage/users/l/u/p/luplik/index.php on line 250
posted by
Lucia on 30 Oct 05 at 10:24 AM
Lucia, I think the mail thing is a problem of your specific server configuration / your webspace provider. You could try upload a separate PHP file with content like
<?
mail("myEmailAddress@domain.com", "This is a test subject", "This is the message");
?>
If you get the same error message, you wont be able to use the mail function in general with your current webspace. A solution would be to simply erase the lines that try to send you an email when somebody writes a comment on your blog.
posted by
ikue on 31 Oct 05 at 3:49 AM
:(((
the answer was:
Warning: mail() has been disabled for security reasons in /mnt/storage/users/l/u/p/luplik/test.php on line 2
posted by
Lucia on 31 Oct 05 at 6:09 AM
So, clearly your server has too strict security settings to use folderblog in the normal way. You have two options: 1) change the webspace provider 2) erase the mail() lines from the folderblog source code.
posted by
ikue on 31 Oct 05 at 6:37 AM
so i think i will erase the mail line... :(((
thank you for your help... i really appreciate that... :)
posted by
Lucia on 31 Oct 05 at 9:11 AM
Just installed fb (v3, Almanac). Also having problems with comments... comments allowed, captcha off, added the lines of code suggested above to comments and main, chmodded the comments folder, but keep getting this warning (and no comment posting or emails):
Warning: Cannot modify header information - headers already sent by (output started at /homepages/1/d89529408/htdocs/tara/wordpress/folderblog/fb.php:5) in /homepages/1/d89529408/htdocs/tara/wordpress/folderblog/fb.php on line 254
Anyone know what I should be doing?
Thanks in advance.
posted by
Tara on 4 Nov 05 at 11:08 AM
... also. Comments not displaying, but are being stored in comments/_com.txt. how to display?
posted by
Tara on 4 Nov 05 at 11:16 AM
... have deleted fb_ziptc.php (don't have a way to store iptc metadata as far as I know - which, admittedly, is little). comments now display, but am still getting that warning.
posted by
Tara on 4 Nov 05 at 12:21 PM
I know why such an error message occurs in general: Somewhere in the code might be a line like "Header("Location: blablabla.php")" or something. This is for redirecting to another page (maybe in your case to the fb.php).
The error then occurs because this attempt to redirect requires that there was really nothing (!) sent before by the website including the above mention line of source code. Therefore I guess it is a problem of your specific combination of Wordpress and folderblog, and as I remember there might be detailed help on the Wordpress website.
About the comments thing, why are you comments stored in the file you mentioned? As far as I know this never goes for folderblog, so it cant be its comments but maybe those of wordpress. Comments in folderblog are stored by creating a text file with the name of each image file in the same directory as the image is in.
Well... I hope this wasnt too technical now...
posted by ikue on 4 Nov 05 at 12:26 PM
no, not at all too technical. I just didn't know what to look for. thanks to you, found it immediately.
I just deleted those three lines where fb.php set the header and everything's working well.
no idea why the comments were storing in that particular file! deleted it (since it wasn't being used) and it hasn't reappeared.
thanks for the help!
posted by
Tara on 4 Nov 05 at 1:11 PM
Sometimes I wonder myself why solutions can be that easy. ;) You're welcome!
posted by ikue on 5 Nov 05 at 5:03 AM
Post a Reply:
(back to index)