folderblog
What is folderblog?
Folderblog is a free PHP script that automatically displays the images placed in a given directory, no database needed. It can be used as a blog or gallery — and anything in between.

» demo blog   » learn more   » download now

Discussion
Can't disable comments; add links(back to index)
I'm working with the relaxation theme (new version, in FB3) and I can't seem to turn comments off. I've opened fb_settings and see that $allow_comments = 0, which is supposed to mean that comments are disabled, but I still see the submit comment box. What am I doing wrong?

Also, I'm trying to add links to the left hand side of where the previous, archive, and next links are. I'm editing relaxation_main.php, between line 31 and 32 I added:
<div style="text-align:left;margin-bottom:5px;">
Home  
Blog  
Photos
</div>

But when I preview in my browser (Firefox and Safari) The new links (Home, Blog, Photos) are a line above the (Previous, Archive, Next) links. What gives?

Thanks for your help.
posted by super_kev on 30 Aug 05 at 4:09 PM
The style attribute for the links on the left should be:

float:left;text-align:left;margin-bottom:5px;

And on the right:

float:right;text-align:right;margin-bottom:5px;

Both sets of links need to be in their own <div> tag containters.

The comment form is hard-coded into the relaxation_main.php file, so turining comments off won't remove the form; it will just disable folderblog's comment system. You'll just have to remove the form manually (delete lines 66-80, by default).
posted by Elwing on 31 Aug 05 at 4:40 AM
Ok great, thank you. One more question... how do I add the "|" bars between the links on the left side so they match the right side?
posted by super_kev on 31 Aug 05 at 1:29 PM
With each link on a seperate line, do something like this:

<a href="" title="">Link</a> <span class="sep">|</span>
posted by Elwing on 31 Aug 05 at 6:19 PM
Post a Reply:

Name:    Remember me
URL:    
(include http:// or mailto:)
(back to index)