Version: 1.00, by Davey
Developer Last Online: Jun 2008
Version: 2.2.x
Rating:
Released: 01-20-2003
Last Update: Never
Installs: 2
No support by the author.
[ Copyright updates automatically (v1.2) ]
Ok guys and girls, this is my first contribution, and php edit.
This works pretty fine for me, and I hope you all enjoy it.
Basically, it updates the copyright year in the footer template and on the admin/index.php page.
(I hope this isn't a breech of copyright Jelsoft/vB, it's just a contribution aranoid:..)
Follow the guides in the attached TXT file, and this should be installed fine.
If I've missed anything out, or if this doesn't work, please let me know in this thread.
I hope you enjoy this hack!!
Regards; David G.
[Things to do]
2 files to edit (admin/global.php, admin/index.php)
2 templates to edit (footer, phpinclude)
0 new files
0 new templates
0 queries to run
[Bug fixes]
1.1: $thisyear works in the admin index now .
1.2: none.
[Updates]
1.1: Set the variable $thisyear in the admin global.php file so it works ok in the admin panel.
1.2: Used Boofo's idea on the main page: Used vbdate("Y", $ourtimenow); so that the copyright year follows the user's timezone as opposed to the server's. But NOT in the admin CP, because vbdate(); isn't set in admin/global.php is it? So it wouldn't work, I don't think.
[Instructions]
- Upgrading to 1.1 from 1.0: I'd reinstall the whole hack because I neatened out the instructions.
- Upgrading to 1.2 from 1.0: Reinstall the hack using the new and improved instructions. A few more things added.
- Upgrading from 1.1 to 1.2: Open up the phpinclude template, and replace $thisyear = date("Y"); with $thisyear = vbdate("Y", $ourtimenow);
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
@Davey - Remember if you make updates to your hacks then make the changes in the original post rather than posting another file in a totally separate post... saves confusion
Thanks.
Well Chen is probably extremely busy at the time being and I had read the 'update copyright to 2003' post in the feedback forum (here).
It was Logician who made me think about this hack for some reason, due to his post.
And hey presto, I made it, lol.
It was quite simple actually, I'm not sure why no-body else had thought of it.
Well thanks Dark Blaze .
However, I've just noticed a cock-up myself.
Seems NTLDR is right.
In the admin index, it says:
Quote:
?2000 - $thisyear Jelsoft Enterprises Ltd.
Ok, NTLDR, where do include $thisyear in admin/global.php because I don't really understand whereabouts you put it...
Or what you put for that matter, because I tried it and nothing happened ( $thisyear = date("Y"); ).
Sorry I've fixed this now .
It works fine and the installation is clearer (hopefully ).
Download the original .TXT file [here] to install it again.
Enjoy this working version!