![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Posts: 9,752
|
When r u actualy going to update your footer 2012 date?
I have 60 sites about, maybe 600 pages.
I should be done around July. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
DirtyPeach.com
Industry Role:
Join Date: May 2010
Location: I'm mobile
Posts: 828
|
In Dreamweaver, you should create your footer as a Library item. Then just update the Library item and it'll update site-wide.
For my Joomla sites, it's even easier. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
|
Apparently, you don't know php or javascript
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jun 2003
Posts: 3,284
|
<?php echo date("Y"); ?>
;) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Feb 2003
Location: Where The Teens Are
Posts: 5,702
|
All my sites are done in Wordpress and it automatically adjusted the dates for all of them, even though the WP installs I use are all several versions behind.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
|
OP = retarded
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
Code:
<script type="text/javascript"> <!-- var currentTime = new Date() var year = currentTime.getFullYear() document.write(year) //--> </script> ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: May 2010
Posts: 5,735
|
lol people still put the date in manually?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
I Like Depth Of Field!
Industry Role:
Join Date: Jan 2003
Location: Las Vegas, NV, USA: 36.12318 N, 115.090219 W
Posts: 14,861
|
Working on my php inserts tomorrow! (Only a few days late, LOL!)
__________________
www.SexyGirlsCash.com CONTACT // FITZMULTI AT GMAIL.COM // {Please include a message so I know you are from GFY! I get too many spam "add requests"!} |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Jul 2005
Location: Beck's City, North Teutonia
Posts: 3,185
|
(C) 1999 - 2066 ... why update? mwahahahaha
__________________
There aren't enough faces and palms on this planet for an appropriate reaction to religion. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Unregistered Abuser
Industry Role:
Join Date: Oct 2007
Posts: 15,547
|
no network wide includes = fail
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Posts: 9,752
|
Only for this, extra code and more things to jump through when updating the individualize pages.
I could change the pages to php just for the reason to use: <?php echo date("Y"); ?> But I don't liek full sites in php slow loading and resource hogs. Only use it when I really have to. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Registered User
Industry Role:
Join Date: Dec 2011
Location: United States
Posts: 69
|
PHP is not slow and is not a resource hog.
__________________
ICQ: 609051050 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
if you wannna show the start year, as well as the current year this should do it.
Code:
<?php function custom_copyright() { global $wpdb; $copyright_dates = $wpdb->get_results("SELECT YEAR(min(post_date_gmt)) AS firstdate, YEAR(max(post_date_gmt)) AS lastdate FROM $wpdb->posts WHERE post_status = 'publish'"); $output = ''; if($copyright_dates) { $copyright = "© " . $copyright_dates[0]->firstdate; if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) { $copyright .= '-' . $copyright_dates[0]->lastdate; } $output = $copyright; } return $output; }
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Posts: 9,752
|
What planet are you fun, compared to html of course it is
![]() Any active page is over static. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Registered User
Industry Role:
Join Date: Dec 2011
Location: United States
Posts: 69
|
Quote:
I personally wouldn't compare it to HTML because PHP isn't only used for web development. PHP can be ran from the command line and used as a web service. The world I come from is the world of many years as a Software Engineer. ![]()
__________________
ICQ: 609051050 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |