EZComments (CVS version) only works fine with adv_polls and pnFlashGames, it doesn't works with news :(
What can i do? Are there any docs to configure it for 0.750 news?
Other question: where can i download the last version of EZComments? download all the plugins through the cvs is horrible :S
Login
Donate to Zikula
Support
::
EZComments with Postnuke 0.750 news
-
-
The news module only supports the native comments module by default. There are hacked news module files around that allow the use of EZComments. You might check http://lottasophie.sourceforge.net/
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
Yep, with these two changes:
funcs.php
Quote
// --jn-- Start Modification
// the following lines are included for the EZComments counter
if (pnModAvailable('EZComments')) {
pnModAPILoad('EZComments', 'user');
$EZComments = pnModAPIFunc('EZComments',
'user',
'getall', array('modname'=>'News',
'objectid'=>$row['sid']));
$row['comments'] = count($EZComments);
}
// --jn-- End modification
article.php
Quote
// added display hook - bug #174 - ferenc veres
echo pnModCallHooks('item', 'display', $sid, "modules.php?op=modload&name=News&file=article&sid=$sid");
if ($info['withcomm'] == 0) {
if ($GLOBALS['mode'] != "nocomments") {
if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_READ)) {
// --jn-- Start Modification
// the following line is commented out so that the original comments module does not show up
if (!pnModAvailable('EZComments')) {
include("modules/NS-Comments/index.php");
}
// --jn-- End modification
But news module working on 0.750 doesn't show EZComments, ratings yep -
It only doesn't work with News, with adv_profile pnflashgames and advanced_polls works fine :(
Are there any modification on the news module that i have forgotten? -
I try changingwith
Quote
echo pnModCallHooks('item', 'display', $sid, "modules.php?op=modload&name=News&file=article&sid=$sid");
but i have the same problem :(Quote
echo pnModCallHooks('item', 'display', $sid, pnModURL('News',
'user',
'display',
array('sid' => $sid))); -
Are you sure you have enabled EZComments to hook into news? Administration > Modules > edit the news module > Activate EZComments for this module
Quote
I try changing
Quote:
echo pnModCallHooks('item', 'display', $sid, "modules.php?op=modload&name=News&file=article&sid=$sid");
with
Quote:
echo pnModCallHooks('item', 'display', $sid, pnModURL('News',
'user',
'display',
array('sid' => $sid)));
but i have the same problem Sad
I'd put the code back as it was if I were you.
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
wow! Yes, it was activated, but i have deactivated it and activated again and it works! :$
:D :D :D
Thanks a lot for spend your time helping me HammerHead!!!!!!
PS: and sorry for my spaguetti-english -
No problem, glad to help out :D
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide
