Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
copyright update automatically. Details »»
copyright update automatically.
Version: 1.00, by Davey Davey is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

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.

Comments
  #12  
Old 01-21-2003, 06:04 PM
nuno's Avatar
nuno nuno is offline
 
Join Date: Oct 2001
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, yes, you are right.
Reply With Quote
  #13  
Old 01-21-2003, 08:33 PM
Chris Gwynne's Avatar
Chris Gwynne Chris Gwynne is offline
 
Join Date: Jan 2003
Posts: 316
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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
  #14  
Old 01-21-2003, 08:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by NTLDR
You need to add this line somehwhere in admin/global.php I suggest otherwise $thisyear won't work:

PHP Code:
$thisyear date("Y"); 
Where would be a good place to add this in the global.php?
Reply With Quote
  #15  
Old 01-22-2003, 04:49 AM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #16  
Old 01-22-2003, 05:30 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Neat idea, although it emphasizes that the admin is incredibly lazy, it's still one less bug to worry about.
Reply With Quote
  #17  
Old 01-22-2003, 05:45 AM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 01-22-2003, 10:46 AM
Dark Blaze's Avatar
Dark Blaze Dark Blaze is offline
 
Join Date: Nov 2001
Location: World Wide Web
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #19  
Old 01-22-2003, 12:21 PM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"); ).

Dave.
Reply With Quote
  #20  
Old 01-25-2003, 04:25 AM
Sketch Sketch is offline
 
Join Date: Apr 2002
Location: Baltimore, Maryland
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo


Where would be a good place to add this in the global.php?
ummm...the bottom??
Reply With Quote
  #21  
Old 02-07-2003, 07:06 PM
Davey Davey is offline
 
Join Date: Nov 2002
Location: England
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05759 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete