By Alex Lee on Monday, 25 July 2016
Posted in General Issues
Replies 7
Likes 0
Views 706
Votes 0
Hello,
i want to change the insert query of easydiscuss because i want to add a new column in it so i want whenever a new record is inserted i update that field also. But i am not getting the query.
Will you please tell me where i can find the insert query for it???
Waiting for a positive and sooner reply...
Thanks.
Hey Alex,

You can use this following similar SQL to insert new column in the table.

ALTER TABLE `#__discuss_posts` ADD `new_column_name` tinyint(1) NOT NULL;
·
Tuesday, 26 July 2016 11:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for reply arlex..but actually what i want
there is a field in `#__discuss_posts` table named as created
i want that when some post is created then the value of this field should also go in the new field which i have created named as `published_start_date`. But the problem is i am not getting the file location where i have to make changes in insert query so that it can behave like this as i want. Please tell me the file location where i have to make change....
·
Tuesday, 26 July 2016 12:11
·
0 Likes
·
0 Votes
·
0 Comments
·
You can update on this file -> JoomlaFolder\administrator\components\com_easydiscuss\tables\thread.php and refer on my attached screenshot below.
·
Tuesday, 26 July 2016 13:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks arlex.....but i am not getting this file in my folder.
I checked it there is no file exist with thread.php name at JoomlaFolder\administrator\components\com_easydiscuss\tables\
my easy discuss version is Version: 3.2.9744
please tell me where i can found it ??
·
Tuesday, 26 July 2016 14:22
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry for the delay of this reply,

It seems like you are still using older version of Easydiscuss 3.x , can you try download my attached file and double check what my changes on this file.

JoomlaFolder\administrator\components\com_easydiscuss\tables\post.php
·
Wednesday, 27 July 2016 12:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks..Arlex..
·
Friday, 29 July 2016 13:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Does the solution given solved your problems? Keep us updated then .
·
Friday, 29 July 2016 16:58
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post