Hi every one

I have installed gallery2 on my website (http://wiprabha.info). All modules in gallery2 except one module, comment option, are working properly. I still cannot add comment even I have activated comment module.

Maybe someone of you had faced this problem before and knows the solution for it. I use drupal 4.7.2

thanks in advanced and hope I can solve this problem as soon as possible.

cheerss,
Luhur Bima

Comments

kiz_0987’s picture

It may be related to something I saw from mindless or valiant in the Gallery2 posts, where the comments use an <h2> that is set to not display in the drupal_g2.css file (which is needed so that titles are not repeated). I think that 2.2 will correct this, but for now you will have to check the .css files or change the gallery2 template so that comments do not use <h2> tags.

michelle’s picture

I was the one who found the H2 issue. It is being changed to H3 in Gallery but you can also fix it by making this change to drupal_g2.css:

/* Removes the Gallery Title (as Drupal displays it)*/
/*#gallery .gbBlock h2 {*/

#gallery .gbBlock table h2{
display: none;
}

Michelle

kiz_0987’s picture

Nice one Michelle. Thanks for your help.

kiz_0987’s picture

Michelle -- can you please tell me exact which h2 was not showing up. I took a quick look at my test site and all comment functions seemed to be working already without your change and with an old gallery version. I must be missing something.

Thanks.

michelle’s picture

Zimzat made the add comment block I'd been asking for so I upgraded to the SVN version to get it. I complained on IRC about the lack of a title on the block and mindless said he had a title on his. So I did some investigating and it turned out that the title was H2, unlike the others which are H3 and that it was getting hit by the display:none. Bharat suggested the change above and that fixed it and also confirmed that the title should be H3. I don't know if it has been changed, yet, but I imagine it will be at some point if it hasn't. Even so, I suggest adding that change to the Drupal module as it limits the H2s that it hits. AFAIK it limits it just to the title but it's possible there are other H2s that I haven't noticed being affected.

Michelle

kiz_0987’s picture

Ah, OK. That's why I can't see the issue -- I am still using 2.1.2.

Luhur, I suspect that your issue is not related to the h2 tag, but probably that the permissions have not been set on the album to allow comments.

kiz_0987’s picture

Committed h2 tag change -- thanks Michelle.

luhur Bima’s picture

Hi all,

Thanks for the comments, sorry for being late to respond them because of my activities.
Kiz, I had set the permission to allow the comment but there was no positive result. do you have any other solutions maybe?

thanks in advance

Bima

alexandreracine’s picture

Component: User interface » Code / API
Status: Active » Fixed

Hope that work.

------------
Feel free to reopen and put the 6.x version if so.
Please look at the latest version first!

http://drupal.org/project/gallery

Closing (cleanup)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.