1
msdana
Comment System in a Module
  • 2006/7/7 23:49

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Hello All,

I am implementing the comment system into a module (RMSoft Minishop). I have completed the user side, now I'm working on the admin side. On the XOOPS Dev Site, it says this:

Quote:
That's about all you would need to add on the user side. As for the admin side, ALWAYS call the following function whenever an item is deleted so that the comments attached to the deleted item will also be removed and number of user posts be updated accordingly.

function xoops_comment_delete(integer module_id , integer item_id)


I need to know where to put that function, i.e., what file??? The instructions are rather vague and leave much up to the interpretation of the user trying to implement the comment system.

Thanks!
Dana

Oh, BTW, I have checked the FAQ and all documentation and posts; and my versions are not necessary.
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

2
Dave_L
Re: Comment System in a Module
  • 2006/7/8 0:49

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


You would call that function at the same place where you delete the item associated with the comments.

3
msdana
Re: Comment System in a Module
  • 2006/7/8 1:19

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


So I want to add this:

Quote:
xoops_comment_delete($xoopsModule->getVar('mid'), $idp)


to productos.php?? Because this is where I delete...

Quote:
rmms/admin/productos.php?op=delete&idp=8


Thanks!
Dana
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

4
msdana
Re: Comment System in a Module
  • 2006/7/8 3:18

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Done!

Thanks to zyspec who has helped me along the way. Gracias, mi amigo
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

Login

Who's Online

497 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 497


more...

Donat-O-Meter

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

Latest GitHub Commits