1
Mamba
Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/23 17:49

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Some of you were asking about having a "Fast Comment" feature, that would offer users an option to provide comments without using the standard XOOPS Comments facility, similar to some blogging platforms.

Voltan has created a hack for it, but it needs to be tested on XOOPS 2.5.6. If the feedback is positive, we will consider to include it XOOPS 2.5.6 and possibly in XOOPS 2.6.0.

Download: SourceForge File Repository

How to use?

1) copy the files from the folder "comment_hack" to your XOOPS 2.5.6 folder

2) adjust your "xoopscomments" table by running the SQL statement in phpMyAdmin:

ALTER TABLE `xoopscommentsADD `com_userVARCHAR60 NOT NULL AFTER `com_uid`, ADD INDEX ( `com_user` );
ALTER TABLE `xoopscommentsADD `com_emailVARCHAR60 NOT NULL AFTER `com_user`, ADD INDEX ( `com_email` );
ALTER TABLE `xoopscommentsADD `com_urlVARCHAR60 NOT NULL AFTER `com_email`;


3) if you're using extGallery, Oledrion, or News, Voltan provided also examples of templates that you can test as well.

Thanks Voltan for the hack!
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

2
sabahan
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/24 0:30

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


thank you Voltan.....good job

1. xoopscomments table is missing from 2.5.6....i have to add it manually
then alter the xoopscomment to add name, email, url

2. i have tried to comment as guest and as registered user...i tried it with the extgallery module its working fine

3. as a guest i have to input captcha code for several time......... only then it will accept my code

4. the comment is all position centered in xoops 2.5.6 default theme..can this be change to justify or left ? i guess this also in 2.5.5 but never tried

5. Can we use other editor ? i tried to change in system module setting to tinymce its not working....but for me i prefer text area for comment simple

6. some suggestion

- add a blank avatar for guest and maybe some text "Unregistered user" below their name to differentiate guest and registered user
- is there a way once a anonymous user submitted a comment, the name, email, url will be remembered and the anonymous user does not have to key in the field again and this also to prevent them from posting with different name
- add paging in the comments


thanks again...

3
Mamba
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/24 0:37

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Quote:
1. xoopscomments table is missing from 2.5.6....i have to add it manually
then alter the xoopscomment to add name, email, url

This has been now added to the XOOPS 2.5.6 Beta
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

4
sabahan
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/24 0:54

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


just redownload 2.5.6..still no xoopscomments table

5
Mamba
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/24 0:56

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Maybe the mirror didn't get yet the updated files.

Try to download directly from SVN
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

6
irmtfan
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/24 3:51

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


This hack is a wish for a long long time. So i should thank Voltan for it.
here is my points:
adding 3 fields for anon users in db need more coding and obviously will cause more issues.
At first i thought just one field (name/email) would be enough but it seems 3 fields should be added.
So if we accept 3 fields we should find more bugs

1- if you enter url as http://www.mysite.com without http:// it will not store in db. i consider that unfortunately we dont have any function for checking a url or email in xoops core and Voltan as a developer have to use php function " filter_var":

$com_url filter_var($com_urlFILTER_VALIDATE_URLFILTER_FLAG_SCHEME_REQUIRED);


2- The guest can input any email even @website or webmaster email. if we accept an email field for anon we should not leave it without any limitation.

3- maybe a webmaster like me want to make it even easier for anons and dont want email and url fields and just need the Name field required. ( or even no field required eg:automatically store anonymous123 if the guest leave the name field empty)

thank you Mamba for this topic.

7
sabahan
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/27 0:59

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


another suggestion maybe

if the anonymous user input URL..

the username of the anonymous is linked to the URL

8
irmtfan
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/28 4:59

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

the username of the anonymous is linked to the URL

i cannot understand this.

good features and I hope Voltan read this topic.

9
sabahan
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/1/28 10:02

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


Quote:

irmtfan wrote:
Quote:

the username of the anonymous is linked to the URL

i cannot understand this.

good features and I hope Voltan read this topic.


just like in wp

i mean if a guest key in his/her url in the url field......when we click the guest name it will redirect us to his/her website..


10
hipoonios
Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6
  • 2013/12/21 13:03

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


This hack works fine besides these small bugs:

1. If you comment as a anonymous user and enter a name then it will be in lowercase.

eg. Clark Kent will be clark kent.

2. The recent comment block still displays the name as anonymous user and not the name you entered.

Ps. I need a fast comment template for the Publisher module. Anyone?

Login

Who's Online

295 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 295


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