Here is the PHP code we use in our footer:
<?php echo "ยฉ " . date("Y") . " Cybersalt Consulting Ltd. All rights reserved.";?>
00:00 - Introduction and Acknowledgments
00:29 - Why Automatically Update the Copyright Year
01:01 - Methods for Updating the Copyright Year
01:30 - Using PHP in a Custom Module
02:10 - Creating a Custom HTML Module
02:30 - Adding PHP Code to the Module
03:00 - Saving and Displaying the Module
03:40 - Conclusion and Final Tips
SUMMARY
In this video, Tim Davis provides a step-by-step guide on how to automatically update the copyright year on your Joomla site using a custom HTML module with PHP code. This method ensures that the copyright year is always current without the need for manual updates, enhancing both professionalism and legal compliance. Timโs clear instructions and practical demonstration make this a valuable tutorial for Joomla site administrators looking to streamline their website maintenance tasks.
Introduction and Acknowledgments:
Tim Davis welcomes viewers, thanks them for tuning in, and mentions the sponsor, mysites.guru, which offers free Joomla site audits.
Why Automatically Update the Copyright Year:
Tim explains the importance of keeping the copyright year up to date for professionalism and legal reasons.
Methods for Updating the Copyright Year:
Tim outlines different methods to update the copyright year, emphasizing the efficiency of automating the process.
Using PHP in a Custom Module:
Tim demonstrates how to use PHP within a Joomla custom module to automatically update the copyright year.
Creating a Custom HTML Module:
Tim shows how to create a custom HTML module in Joomla, which will be used to add the PHP code for the dynamic copyright year.
Adding PHP Code to the Module:
Tim explains the specific PHP code needed to display the current year dynamically. He emphasizes that this code will ensure the copyright year updates automatically each year.
Saving and Displaying the Module:
Tim demonstrates how to save the custom HTML module with the PHP code and position it correctly on the Joomla site to display the updated copyright year.
Conclusion and Final Tips:
Tim wraps up by encouraging viewers to use this method for a more efficient and professional way to manage their websiteโs copyright information. He also reminds viewers to subscribe for more Joomla tips and tutorials.
Please send any feedback or bug reports or queries to;
Contact Tim Davis โบ
Joomla Training Cohort โบ https://cybersalt.com/jtc
Add comment