hello
the commentform allows to comment photos, albums, news or pages.
For personnal use (whith my theme herited from zpGalleriffic) I modified the function printCommentForm in commentform.php like that :
line 314 :
`
function printCommentForm($showcomments=true, $addcommenttext=NULL, $showcommentmsg=true)
`
[note] : the addcomment parameter is not described yet in the user guide
line 351
`
case 0:
if ($showcommentmsg) {echo '
'.gettext('No Comments').'
';}
`
line 355
`
default:
if ($showcommentmsg) {echo ''.sprintf(ngettext('%u Comment','%u Comments',$num), $num).'
';}
`
line 466
`
if (!empty($addcommenttext)) {
if ($showcommentmsg) {echo ''.$addcommenttext.'
';}
}
`
those modifications allow the user to show or not some messages of the plugin
could you take this improvement in the zenphoto's core ?
it would be cool !
Comments
Thanks for the note about the parameter.
In fact, with my theme, i don't want to show some messages of comment_form : number of messages (it is shown) and add message.
first time, i've modified comment_form and commented the concerned line.
but i want to give my theme to the community: by taking this improvement, the users don't have to hack the file and the other themes always going well (the default value of the new parameter is true)...
Anyway, the "Trac" system is to be found on the "bugtracker" link.
i want to hide the number of comment but i don't want to hide the message "closed to comment".
i can't have two distinct CSS rules on those messages
to do that, i should use some javascript...
i will create a trac
as far i can remember, i have tried this :
- hide the high level div H3 commentcontent
- show the low level div H3 commententry
but commentcontent rule is high priority on commententry rule
maybe, usind a id rather a class...
You can also address sub items using `>`. Don't know the details right now but `div h3 #commententry > h3` might work. CSS can be tricky...
with those rules, it's going well thanks for your help