1
hyperpod
XOOPS Comments system requires integer :(
  • 2005/8/10 2:18

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


Hello XOOPS developers,

I am working on a new module and am trying to integrate the XOOPS comments system into it. (xoops 2.0.13)

After following the Dev Wiki and getting the comments hooked into the module, i noticed a major problem.


The page im trying to attach comments to uses a alphanumeric ID.

The comments section wouldnt show up at all when they were supposed to.


Upon further investigation, I noticed in /include/comments_view.php that com_itemid can only be an integer. all alphanumeric are changed to value zero. :(

I really wanted to get it working so i proceeded to hack the comments code, even though I dont like to do this.

I took out the intval part so that it took the alphanumeric ID anyway. Then I also changed the database field com_itemid from mediumint(8) to varchar(25)

Still no joy :(

Does anyone know what else I might need to do to make comments take alphanumeric IDs ??

Any help would be greatly appreciated.

Best Regards,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support > My Wish List

2
hyperpod
Re: XOOPS Comments system requires integer :(
  • 2005/8/10 11:45

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


Well I continued on and hacked the XOOPS comments system to add alphanumeric support for the itemid

also found an old thread with two other module developers having this same problem.


Here is the alphanumeric comments hack:

here


Cheers,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support > My Wish List

Login

Who's Online

217 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 217


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