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

Comments
  #2  
Old 21 Jan 2003, 17:17
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
Congrats on your first hack. Keep them comming.
__________________
Floren Munteanu
Axivo Inc.
Axivo Community - Visit the forums to find out more about us
Why Queued - My personal blog
Reply With Quote
  #3  
Old 21 Jan 2003, 17:19
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
Thank you and I will try =).
I'm currently having a go at php and MySQL so my hacks might get more interesting, hehe.

Dave.
__________________
dgane.com - about me & my life
Reply With Quote
  #4  
Old 21 Jan 2003, 18:36
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Nice one.
Thanks.
__________________
Powered by: vBulletin
Reply With Quote
  #5  
Old 21 Jan 2003, 18:39
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)
You need to add this line somehwhere in admin/global.php I suggest otherwise $thisyear won't work:


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

__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote
  #6  
Old 21 Jan 2003, 18:45
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
What a good idea !
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #7  
Old 21 Jan 2003, 18:45
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Originally posted by NTLDR
You need to add this line somehwhere in admin/global.php I suggest otherwise $thisyear won't work:


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

Read Step 10 & 11.
It's working fine.
Reply With Quote
  #8  
Old 21 Jan 2003, 18:47
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)
Originally posted by nuno


Read Step 10 & 11.
It's working fine.
Since when has the phpinclude template been parsed in the ACP?
__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote
  #9  
Old 21 Jan 2003, 18:53
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Originally posted by NTLDR


Since when has the phpinclude template been parsed in the ACP?

That's why it's there for, parsing php.
Reply With Quote
  #10  
Old 21 Jan 2003, 18:55
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)
I'm not talking about templates, for the forums, but admin/index.php if the code is only added to the phpinclude template then it isn't parsed in the ACP hence $thisyear won't show on admin/index.php
__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote
  #11  
Old 21 Jan 2003, 19:04
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Oh, yes, you are right.
__________________
Powered by: vBulletin
Reply With Quote
  #12  
Old 21 Jan 2003, 21:33
Chris Gwynne's Avatar
Chris Gwynne Chris Gwynne is offline
 
Join Date: Jan 2003
@Mist - Yes it is

@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
Reply With Quote
  #13  
Old 21 Jan 2003, 21:58
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally posted by NTLDR
You need to add this line somehwhere in admin/global.php I suggest otherwise $thisyear won't work:


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

Where would be a good place to add this in the global.php?
Reply With Quote
  #14  
Old 22 Jan 2003, 05:49
Davey Davey is offline
 
Join Date: Nov 2002
Real name: David Gane
Yeah I might have to ask where abouts in global.php you add that cause I can't think where :speechless:....

Dave.

PS: If that's the only place it shows up, in admin/index.php, I'm not sure if it's worth editing now .
__________________
dgane.com - about me & my life
Reply With Quote
  #15  
Old 22 Jan 2003, 06:30
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
Neat idea, although it emphasizes that the admin is incredibly lazy, it's still one less bug to worry about.
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 11:31.

Layout Options | Width: Wide Color: