 Brian
|
I would like to only allow comments on the individual photos themselves, not the gallery or folders. Is there a way to do this?
Thank you,
brian
|
 Marcel
|
Yes that is possible.
Add this to the top of the comment-template just above <div id="comments">
global $lg_gallery;
if ( $lg_gallery->is_gallery() ) {
if ( ! $lg_gallery->is_image( $lg_gallery->file ) ) return;
}
and don’t forget to put the code between <?php ?> tags
|
 Brian
|
Thanks, I will give this a try! While I have you here, the last thing I’ve been banging my head over is a frontend uploader. I know you are working on one, but I need to launch this private blog soon. Basically, I would like my users to be able to upload a photo into a folder and passing their username and description into a field. Can you give me any advice on where I might start?
Thanks!
|
 Marcel
|
Have you searched in the WordPress plugin repository for frontend uploaders?
Maybe you could tweak a plugin to work for LG
|
 Brian
|
Man, I’m really becoming a pest! I finally got around to trying to hide the comments with your suggestion above, but there is no <div id="comments"> in the /wp-includes/comment-template.php I tried putting your code in anyway and it broke stuff. Any other suggestions?
Sorry man… I really appreciate all of your help!
Thanks,
-Brian
|
 Marcel
|
try hacking the comments_template.php in lazyest-gallery/inc/
|
 Brian
|
MAN! You’re awesome, that did it, but I’m getting an error message at the bottom of the page.
Parse error: syntax error, unexpected T_IF, expecting ‘,’ or ‘;’
It says it’s on line 20, which is the bit about
if ( $lg_gallery->is_gallery() ) {
Any thoughts?
Thanks again for ALL of your help! Do you have a donation page? I’ll chip in!
-Brian
|
 Brian
|
Also, that code has turned off comments on the photos themselves too! Can I get those back or is it an all or nothing thing?
Thanks man,
Brian
|
 Marcel
|
No it is not an all or nothing thing. I will try to find out why it doesn’t work.
|
 Marcel
|
There was a missing semicolon in the code example. I have corrected it. Please copy the code from above. This code will hide the comments form altogether.
|
 Developer
|
please read also: http://brimosoft.nl/2012/01/17/how-to-show-comments-on-slides-only/
|