11
pablo103
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/5/9 16:20

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


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

12
kaotik
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/5/10 9:23

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


ok, i'll install catads.

13
kaotik
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/5/10 13:00

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


pablo103: solution for catads 1.53:

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


replace with:
<{/if}>
div>

<
a name="comments">a>
<{include 
file="db:rmc_comments_display.html"}>
<{include 
file="db:rmc_comments_form.html"}>


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

14
deka87
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/5/14 12:55

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


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

15
kaotik
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/5/24 13:01

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

16
pablo103
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/6/26 3:23

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


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

17
pablo103
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/7/6 16:27

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


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.

18
chefry
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/7/6 17:08

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


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

19
brass
Re: Tutorial: Add rmcommon comments to your modules
  • 2010/7/24 23:58

  • brass

  • Just popping in

  • Posts: 1

  • Since: 2010/7/24


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

Login

Who's Online

188 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits