1
jayfenster
Cloning comments into 2 separate functions.
  • 2005/11/28 22:51

  • jayfenster

  • Just popping in

  • Posts: 17

  • Since: 2005/8/25


Hi everyone,

I want to use the Comments functionality in XOOPS for a second function separate from the traditional one, for my affiliate/e-commerce module.

How would I go about "cloning" the Comment system so that I can have it display differently, and use a different database table, so that I can use the same functionality in two places and have it appear two different ways?

Thanks,

~Jay

2
m0nty
Re: Cloning comments into 2 separate functions.
  • 2005/11/28 23:02

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


go thru the files and where you find things that are to do with comments, duplicate and change some of the names slightly.. it's not that simple a task tho, that's just a brief explanation..

you would probly need to create new classes and functions too, and forms etc.. definitely not a simple task to do and will take a lot of time.

good luck.

3
jayfenster
Re: Cloning comments into 2 separate functions.
  • 2005/11/28 23:15

  • jayfenster

  • Just popping in

  • Posts: 17

  • Since: 2005/8/25


Alternatively, how could I create conditional statements that filter out what shows up in comment blocks and/or inline based on which module is calling them?

4
jayfenster
Re: Cloning comments into 2 separate functions.
  • 2005/11/29 6:08

  • jayfenster

  • Just popping in

  • Posts: 17

  • Since: 2005/8/25


OK, here's the code I'm looking at:

<{foreach item=comment from=$block.comments}>
  <
tr class="<{cycle values="even,odd"}>">
    <
td align="center"><{$comment.title}></td>
    <
td align="center"><{$comment.module}></td>
    <
td align="center"><{$comment.poster}></td>
    <
td align="right"><{$comment.time}></td>
  </
tr>
  <{/foreach}>


I want to start pulling the titles of the items that are being commented on up - how would i do this?

5
jayfenster
Re: Cloning comments into 2 separate functions.
  • 2005/11/29 7:19

  • jayfenster

  • Just popping in

  • Posts: 17

  • Since: 2005/8/25


if i could filter out a block so it only displayed comments from one module that would work too.

Login

Who's Online

123 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 123


more...

Donat-O-Meter

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

Latest GitHub Commits