Information

We have an employee who is no longer with our agency. This employee was an author of 350 articles in our install of Joomla 3.7.0. Is there a way in the Joomla Administrator to change the author of the articles to someone else with one batch process? Or does this have to be done using SQL at the database level?

Thanks,
Scott
Advertisement
User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 28308
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: How to change the author of 350 articles with one batch process

Post by imanickam » Mon Jul 10, 2017 5:02 pm

You could do this using phpMyAdmin.

Try the following SQL:

Code: Select all

UPDATE jos_content SET created_by = YY WHERE created_by = XX;
where jos_ is the database/table prefix of your site, YY is the user id of the new author, and XX is the user_id of the old author.

Note:
Make a copy of the database content before attempting this
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Joomla! Core - Tamil (தமிழ்) Translation Team Coordinator
Former Joomla! Translations Coordination Team Lead
Eegan - Support the poor and underprivileged
 
pintobuck
Joomla! Explorer
Joomla! Explorer
Posts: 294
Joined: Tue Mar 06, 2007 9:39 am

Re: How to change the author of 350 articles with one batch process

Post by pintobuck » Mon Jul 10, 2017 5:10 pm

Or if you do not feel comfortable with mysql language (sql novice here), you could try the free extension by RegularLabs called DB Replacer. It is very user friendly. Of course, back up you database before attempting any changes.
 
ssemegran
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Fri Jul 14, 2006 1:17 pm
Contact: 

Re: How to change the author of 350 articles with one batch process

Post by ssemegran » Tue Jul 11, 2017 12:07 pm

Thanks! I'll do a test first with a select then perform your SQL.

Scott
评级: 0.00   票: 0   传出命中: 13   传入命中: 0   收藏 夹: 0  
Template Settings
Select color sample for all parameters
Red Green Olive Sienna Teal Dark_blue
Background Color
Text Color
Select menu
Google Font
Body Font-size
Body Font-family
Direction
Scroll to top