xoops forums

pablo103

Not too shy to talk
Posted on: 2010/5/9 16:20
pablo103
pablo103 (Show more)
Not too shy to talk
Posts: 181
Since: 2008/2/3 1
#11

Re: Tutorial: Add rmcommon comments to your modules

Can you provide a a code ofr catads? i tried with ads_id but doesn t work

//get all comments for this article/item     RMFunctions::get_comments('catads','post='.$_GET['ads_id']);      // Comments form     RMFunctions::comments_form('catads', 'post='.$_GET['ads_id'], 'module', '');


thanks

kaotik

Just can't stay away
Posted on: 2010/5/10 9:23
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#12

Re: Tutorial: Add rmcommon comments to your modules

ok, i'll install catads.

kaotik

Just can't stay away
Posted on: 2010/5/10 13:00
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#13

Re: Tutorial: Add rmcommon comments to your modules

pablo103: solution for catads 1.53:

open catads/templates/catads_item.html
find around line 199:
<{/if}>
</
div>


replace with:
<{/if}>
</
div>
<!-- 
Start Comments -->
<
a name="comments"></a>
<{include 
file="db:rmc_comments_display.html"}>
<{include 
file="db:rmc_comments_form.html"}>
<!-- /
End comments -->


open catads/adsitem.php
around line 363 find:
showAds();
include 
XOOPS_ROOT_PATH.'/include/comment_view.php';


replace with:
showAds();
        include 
XOOPS_ROOT_PATH.'/include/comment_view.php';
        
//get all comments for this article/item
        
RMFunctions::get_comments('catads','catad='.$_GET['ads_id']);
        
// Comments form
        
RMFunctions::comments_form('catads''catad='.$_GET['ads_id'], 'module''');


Now comments work for catads

deka87

Friend of XOOPS
Posted on: 2010/5/14 12:55
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#14

Re: Tutorial: Add rmcommon comments to your modules

Thanks, kaotik! I have successfully added comments to the lexikon module. However I have problems implementing recaptcha to the form. Can you help me with that?
Mind anchors

kaotik

Just can't stay away
Posted on: 2010/5/24 13:01
kaotik
kaotik (Show more)
Just can't stay away
Posts: 861
Since: 2004/2/19
#15

Re: Tutorial: Add rmcommon comments to your modules

Hi deka87: Sorry I haven't responded earilier, just saw your post. Sure I'll help you.

pablo103

Not too shy to talk
Posted on: 2010/6/26 3:23
pablo103
pablo103 (Show more)
Not too shy to talk
Posts: 181
Since: 2008/2/3 1
#16

Re: Tutorial: Add rmcommon comments to your modules

Well, they works for catads and i can submit a poast. Unfortunatelly the template is not displaying properly. It s a big chaos...

In debug:
Notice: Undefined variable: comms in file /modules/rmcommon/class/functions.php line 254
Warning: Invalid argument supplied for foreach() in file /modules/rmcommon/plugins/avatars/events/rmcommon.php line 18

pablo103

Not too shy to talk
Posted on: 2010/7/6 16:27
pablo103
pablo103 (Show more)
Not too shy to talk
Posts: 181
Since: 2008/2/3 1
#17

Re: Tutorial: Add rmcommon comments to your modules

Could anyone help? This is deffenetely a bug, i am not the only personlooking for the solutinon on this forum, where is xoops support team?

thanks in advance.

chefry

Home away from home
Posted on: 2010/7/6 17:08
chefry
chefry (Show more)
Home away from home
Posts: 1005
Since: 2006/10/14
#18

Re: Tutorial: Add rmcommon comments to your modules

Xoops support team????

Everyone here is a volunteer.
And the problem is not with Xoops, but with your module called rmcommon, which is not shipped with the xoops core package

your support should come from the module developer

brass

Just popping in
Posted on: 2010/7/24 23:58
brass
brass (Show more)
Just popping in
Posts: 1
Since: 2010/7/24
#19

Re: Tutorial: Add rmcommon comments to your modules

Hello,

I tried to implement comments hack into catads module but I am having the same layout problem. This is the link to my website.

Thanks