By Manish Arora on Wednesday, 25 June 2014
Posted in Technical Issues
Replies 20
Likes 0
Views 544
Votes 0
i offer some privileges to my site members when they achieve certain level of points,
but now they are hacking the system by post and deleting discussion and thus earning points

So i need points to be deducted when discussion is deleted

additionally rankings are not working when user achieves a certain points level his rank is not updated ?
Hello Manish,

Can you please run this SQL? this will add one rule Remove discussion in your discuss_rules table. Make sure to change #_ to your database prefix
INSERT INTO `#__discuss_rules` (`id`, `command`, `title`, `description`, `callback`, `created`, `published`)
VALUES
('','easydiscuss.remove.discussion','Remove a discussion','This rule allows you to assign a badge or points for a user when they remove a discussion.','','2014-05-19 12:25:16',1);


Once the new row is created, you can create a new Point here: http://screencast.com/t/arfcqrEGi . As for the rank, can you elaborate more on how to replicate it? You can provide us your backend and FTP so we ca have a better look on your issue.
·
Wednesday, 25 June 2014 09:10
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks that worked well
Also the same is required when we remove a comment.

and about the rank issue:

Say i have a rule that for points:

0 - 200 the rank is NEW VAIDYA
201 - 800 the rank is EMERGING VAIDYA

But when i cross that 200 mark. The rank is not changed form NEW VAIDYA to EMERGING VAIDYA Please login with the admin account it has 195 points .Post a new test discussion it will award you 10 points and there is no change in rank.
·
Wednesday, 25 June 2014 14:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

I've added the trigger for remove comment in: ../components/com_easydiscuss/views/comment/view.ajax.php. You can run this SQL same like what you did for remove discussion.

INSERT INTO `#__discuss_rules` (`id`, `command`, `title`, `description`, `callback`, `created`, `published`)
VALUES
('','easydiscuss.remove.comment','Remove a comment','This rule allows you to assign a badge or points for a user when they remove a comment.','','2014-05-19 12:25:16',1);


As for the rank, you might want to upgrade your Easydiscuss to the latest version and see how it goes. Make sure you back up any modification including the remove comment trigger in view.ajax.php. Please give it a try.
·
Wednesday, 25 June 2014 15:50
·
0 Likes
·
0 Votes
·
0 Comments
·
i have upgraded easydiscuss (did'nt updated the simplistic theme folder)
now i am unable to delete any discussions please see this issue asap and check weather ranks are working properly after update.

And i just forgot to remember to backup the comment trigger which you have added please add it again.
·
Wednesday, 25 June 2014 17:06
·
0 Likes
·
0 Votes
·
0 Comments
·
please see the issue i am unable to delete a discussion and please recreate the easydiscuss.remove.comment trigger:(
·
Wednesday, 25 June 2014 20:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

Sorry for the late reply. Seems like there is something wrong with you database. May I have an access to your phpmyadmin? Please advise.
·
Thursday, 26 June 2014 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
phpmyadmin can be accessed via cpanel password is same as ftp password given to you.

please see this i am getting lots errors like

Undefined property: DiscussPost::$catid in /home/ayurnew/public_html/plugins/content/contentads/contentads.php on line 140
·
Thursday, 26 June 2014 14:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

I can't access your cpanel. Can you provide the URL to your cpanel? Please advise.
·
Thursday, 26 June 2014 15:59
·
0 Likes
·
0 Votes
·
0 Comments
·
168.144.144.122/cpanel
·
Thursday, 26 June 2014 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

I'm sorry, is it possible for you to uninstall and install back the Easydiscuss? Seems like your current ED got some issues.
·
Thursday, 26 June 2014 17:25
·
0 Likes
·
0 Votes
·
0 Comments
·
it would be nightmare , just simply hack the code to make delete button work is it possible?
·
Thursday, 26 June 2014 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
okay lets see i am unistalling and installing
·
Thursday, 26 June 2014 18:01
·
0 Likes
·
0 Votes
·
0 Comments
·
i have uninstalled and reinstalled
please correct this issue by today
·
Thursday, 26 June 2014 18:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

I've fixed it for you. Please have a look.
·
Thursday, 26 June 2014 20:12
·
0 Likes
·
0 Votes
·
0 Comments
·
thank you very much ,please

1.) Add The comment trigger again to deduct points on comment removed.

2.) Also 30 % of times when i submit a new new discussion i am getting name lookup error ...i think its something related to facebook autoposting some timeout maybe
·
Thursday, 26 June 2014 22:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

I've added the remove comment trigger in this file: ../components/com_easydiscuss/views/comment/view.ajax.php. Please do a backup before proceed with any upgrade. As for your second issue, I'm not really sure what is the cause since I can't replicate it.
·
Friday, 27 June 2014 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
okay now i see easyblog points are not added to easydiscuss
·
Tuesday, 01 July 2014 02:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

Can you elaborate more on your issue here?
·
Tuesday, 01 July 2014 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
when some thing new is added to easyblog(a new blog entry) the points of that should be added to points database maintained by easydiscuss.
but its not happening on my website
·
Friday, 04 July 2014 02:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Manish,

I've added rule for easyblog new post for you. Please have a look.
·
Friday, 04 July 2014 10:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post