×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Plugin Creation

Plugin Creation 15 years 6 months ago #1181

  • Sylvain Ard
  • Sylvain Ard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi !

I want to create a Joomla!Comments plugin for my component com_irf, I have arrived to make the comments visible on my component but I have a problem.

In fact the pages which where the comments would display are like : index.php?option=com_irf&task=fiche&insecte_id=32
The 32 can be another number, the comments are dispayed on every index.php?option=com_irf&task=fiche* good like I wanted but the same comments display on each different insecte_id page.

I would like that each different insecte_id page has its own comments.
I tried a lot of things to do it but none ran.

Thanks for help me !

Good Bye !

PS : Please excuse my bad English !

Plugin Creation 15 years 6 months ago #1188

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm happy to hear that you are developing a plugin for our extension :)

What I think is that you don't get the right id of the page and that is why you get always the same content.

Plugin Creation 15 years 6 months ago #1191

  • Sylvain Ard
  • Sylvain Ard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi !

No there is one and only one insecte_id by page of com_irf&task=fiche, it's my component so I am sure of it.
What I want to know is how to link the commentid or contentid to this insecte_id so that I can select only the comments of a certain insecte_id on a certain page.
Another thing I don't know is what is the sense of commentid or contentid and their difference.

Precisions :
The comments (for beginning) must only display on pages beginning by com_irf&task=fiche > I arrive to do this

Bye !

Plugin Creation 15 years 6 months ago #1355

  • Sylvain Ard
  • Sylvain Ard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi !
Is it at this line I need to replace REPLACEid by my insecte_id ?

17> $id = isset($row->REPLACEid) ? $row->REPLACEid : 0; /* document id */

Thank you for answer.
  • Page:
  • 1
Time to create page: 0.126 seconds