vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   copyright update automatically. (https://vborg.vbsupport.ru/showthread.php?t=47971)

nuno 01-21-2003 06:04 PM

Oh, yes, you are right.

Chris Gwynne 01-21-2003 08:33 PM

@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 :)

Boofo 01-21-2003 08:58 PM

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?

Davey 01-22-2003 04:49 AM

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 :p.

Velocd 01-22-2003 05:30 AM

Neat idea, although it emphasizes that the admin is incredibly lazy, it's still one less bug to worry about. ;)

Davey 01-22-2003 05:45 AM

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.

Dark Blaze 01-22-2003 10:46 AM

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 :)

Davey 01-22-2003 12:21 PM

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.

Sketch 01-25-2003 04:25 AM

Quote:

Originally posted by Boofo


Where would be a good place to add this in the global.php?

ummm...the bottom??

Davey 02-07-2003 07:06 PM

Sorry I've fixed this now :).
It works fine and the installation is clearer (hopefully :p).
Download the original .TXT file [here] to install it again.
Enjoy this working version!

Dave.


All times are GMT. The time now is 07:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01268 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete