Skip to content

RickR2H/mod_changeauthor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change Article Author Module for Joomla 6

Description

A Joomla 6 administrator module that allows you to change article authors in bulk. Transfer all articles from one user to another, or reset all articles in the system to a single user.

Installation

  1. Download or clone this module
  2. Install via Joomla's Extension Manager (System → Install → Extensions)
  3. The module will be automatically installed in the administrator area

Configuration

Publishing the Module

IMPORTANT: The module must be published in the icon position to appear on the administrator dashboard.

  1. Go to System → Manage → Administrator Modules
  2. Find "Change Article Author" module
  3. Click to edit the module
  4. Set the following:
    • Status: Published
    • Position: icon (this is required for the module to display correctly)
    • Access: Super Users (recommended for security)
  5. Click Save & Close

Module Position

The module is designed to work in the icon position on the Joomla administrator cpanel/dashboard. This position ensures proper display and integration with other dashboard modules.

Usage

The module provides two main functions:

1. Change Author (Transfer Articles)

Transfer all articles from one specific author to another:

  1. Select Source Author: Choose the user whose articles you want to transfer
  2. Select Target Author: Choose the user who will receive the articles
  3. Click Change Author button (enabled only when both authors are selected and different)
  4. Confirm the action in the dialog

The module will:

  • Transfer all articles created by the source author to the target author
  • Display the number of articles transferred
  • Show the names of both users in the success message

2. Reset All Articles to One User

Assign all articles in the system to a single user:

  1. Leave Source Author empty (do not select any source author)
  2. Select Target Author: Choose the user who will become the author of all articles
  3. Click Reset All Articles to One User button (enabled only when source is empty and target is selected)
  4. Confirm the action in the dialog (warning: this affects ALL articles)

The module will:

  • Change the author of every article in the system to the selected target user
  • Display the total number of articles affected
  • Show a confirmation with the target user's name

Button States

  • Both buttons are disabled (greyed out) by default
  • Change Author button enables when:
    • Both source and target authors are selected
    • Source and target are different users
  • Reset All Articles button enables when:
    • Source author is empty (not selected)
    • Target author is selected

Important Notes

⚠️ WARNING: All operations are irreversible. Once you change article authors, the action cannot be undone automatically.

  • Always backup your database before performing bulk operations
  • The module updates the created_by field in the #__content table
  • Both operations show confirmation dialogs before execution
  • Success messages display the number of articles affected

Requirements

  • Joomla 6.x
  • PHP 8.1 or higher
  • Administrator access (Super User recommended)

Features

  • ✅ Bulk transfer articles between authors
  • ✅ Reset all articles to one author
  • ✅ Smart button enable/disable logic
  • ✅ Real-time validation
  • ✅ Confirmation dialogs for safety
  • ✅ Detailed success/error messages
  • ✅ User-friendly interface matching Joomla's design
  • ✅ Modern namespace structure for Joomla 6

Technical Details

File Structure

mod_changeauthor/
├── mod_changeauthor.xml          # Module manifest
├── README.md                     # This file
├── services/
│   └── provider.php             # Service provider
├── src/
│   ├── Helper/
│   │   └── ChangeauthorHelper.php  # Helper class
│   └── Dispatcher/
│       └── Dispatcher.php       # Module dispatcher
├── tmpl/
│   ├── default.php              # Main template
│   └── default_items.php        # Form layout
└── language/
    └── en-GB/
        ├── mod_changeauthor.ini     # Language strings
        └── mod_changeauthor.sys.ini # System language strings

Namespace

YourNamespace\Module\Changeauthor

Support

For issues, questions, or contributions, please visit the repository or contact the developer.

License

GNU General Public License version 3 or later

Credits

Based on the implementation pattern of mod_resethits module.

About

Joomla 6 administrator module to change Joomla author in batch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages