Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
copyright update automatically. Details »
copyright update automatically.
Mod Version: 1.00, by Davey (Member) Davey is offline
Developer Last Online: Jun 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 2
Released: 21 Jan 2003 Last Update: Never Downloads: 0
Not Supported  

[ 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);

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[Release] Update your copyright for 2k3 Brad vBulletin 2.x Template Modifications 21 17 Feb 2003 13:28
[Release - MiniHack] Make update user info update post counts DarkReaper vBulletin 2.x Full Releases 5 19 Jan 2002 05:47

  #16  
Old 22 Jan 2003, 06:45
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
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.

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
  #17  
Old 22 Jan 2003, 11:46
Dark Blaze's Avatar
Dark Blaze Dark Blaze is offline
 
Join Date: Nov 2001
hmmm... Davey's first hack and it looks good.. I say that is a success

When I have time later on I will check it out and see if I will be needing this in the near future
Reply With Quote
  #18  
Old 22 Jan 2003, 13:21
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
Well thanks Dark Blaze .
However, I've just noticed a cock-up myself.
Seems NTLDR is right.
In the admin index, it says:
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"); ).

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
  #19  
Old 25 Jan 2003, 05:25
Sketch Sketch is offline
 
Join Date: Apr 2002
Originally posted by Boofo


Where would be a good place to add this in the global.php?
ummm...the bottom??
Reply With Quote
  #20  
Old 07 Feb 2003, 20:06
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
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!

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
  #21  
Old 19 Feb 2003, 12:20
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Davey, if you change this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

then the year will actually change according to the user's timezone and not the server's.
Reply With Quote
  #22  
Old 22 Feb 2003, 13:21
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
Ok Boofo; I updated the phpinclude with that, but not the Admin control panel because vbdate(); is custom so I don't think it was set in the ACP was it?

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
  #23  
Old 22 Feb 2003, 13:24
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I changed them both to that since I am the only one who sees the Admin CP anyway. And it DOES work for the Admin CP if you change it there, too, by the way.

Last edited by Boofo; 22 Feb 2003 at 13:27.
Reply With Quote
  #24  
Old 22 Feb 2003, 13:28
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
Ok well my instructions use vbdate(); in the phpinclude and date(); in the admin control panel.
I believe this should be sufficient enough.
By the way does this work? I haven't tested it so I'm just taking Boofo's word for it...

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
  #25  
Old 22 Feb 2003, 13:36
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally posted by Davey
Ok well my instructions use vbdate(); in the phpinclude and date(); in the admin control panel.
I believe this should be sufficient enough.
By the way does this work? I haven't tested it so I'm just taking Boofo's word for it...

Dave.
Trust me, it works.
Reply With Quote
  #26  
Old 22 Feb 2003, 13:40
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
Okay .
Well thanks for the suggestion then - greatly appreciated.

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
  #27  
Old 22 Feb 2003, 14:23
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
You might want to change this from your first post.

- Upgrading from 1.1 to 1.2: Open up the phpinclude template, and replace $thisyear = date("Y"); with $thisyear = vbdate("Y", $thisyear);
Reply With Quote
  #28  
Old 22 Feb 2003, 15:56
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
Whoops another mistake, lol.
Thanks again .

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:38.

Layout Options | Width: Wide Color: