xoops forums

Mamba

Moderator
Posted on: 2013/1/23 17:49
Mamba
Mamba (Show more)
Moderator
Posts: 10750
Since: 2004/4/23
#1

Hack: FastComment by Voltan, please test on XOOPS 2.5.6

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.10 | Docs | Modules | Bugs

sabahan

Quite a regular
Posted on: 2013/1/24 0:30
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#2

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

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...

Mamba

Moderator
Posted on: 2013/1/24 0:37
Mamba
Mamba (Show more)
Moderator
Posts: 10750
Since: 2004/4/23
#3

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

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.10 | Docs | Modules | Bugs

sabahan

Quite a regular
Posted on: 2013/1/24 0:54
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#4

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

just redownload 2.5.6..still no xoopscomments table

Mamba

Moderator
Posted on: 2013/1/24 0:56
Mamba
Mamba (Show more)
Moderator
Posts: 10750
Since: 2004/4/23
#5

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

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

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

irmtfan

Module Developer
Posted on: 2013/1/24 3:51
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#6

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

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 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.

sabahan

Quite a regular
Posted on: 2013/1/27 0:59
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#7

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

another suggestion maybe

if the anonymous user input URL..

the username of the anonymous is linked to the URL

irmtfan

Module Developer
Posted on: 2013/1/28 4:59
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#8

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

Quote:

the username of the anonymous is linked to the URL

i cannot understand this.

good features and I hope Voltan read this topic.

sabahan

Quite a regular
Posted on: 2013/1/28 10:02
sabahan
sabahan (Show more)
Quite a regular
Posts: 317
Since: 2006/3/4 5
#9

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

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..

hipoonios

Friend of XOOPS
Posted on: 2013/12/21 13:03
hipoonios
hipoonios (Show more)
Friend of XOOPS
Posts: 298
Since: 2005/9/24
#10

Re: Hack: FastComment by Voltan, please test on XOOPS 2.5.6

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?