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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-03-2012, 05:10 PM   #1
chaze
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.
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 05:12 PM   #2
LightscapeMedia
DirtyPeach.com
 
LightscapeMedia's Avatar
 
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.
__________________
LightscapeMedia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 05:14 PM   #3
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Apparently, you don't know php or javascript
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 05:14 PM   #4
machinegunkelly
Confirmed User
 
machinegunkelly's Avatar
 
Join Date: Jun 2003
Posts: 3,284
<?php echo date("Y"); ?>

;)
machinegunkelly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 05:26 PM   #5
Jim_Gunn
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.
Jim_Gunn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 05:38 PM   #6
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
OP = retarded
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 05:46 PM   #7
Barry-xlovecam
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>
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 05:59 PM   #8
anexsia
Confirmed User
 
anexsia's Avatar
 
Industry Role:
Join Date: May 2010
Posts: 5,735
lol people still put the date in manually?
anexsia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 06:00 PM   #9
fitzmulti
I Like Depth Of Field!
 
fitzmulti's Avatar
 
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"!}
fitzmulti is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 06:08 PM   #10
Overload
Confirmed User
 
Overload's Avatar
 
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.
Overload is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 07:32 PM   #11
papill0n
Unregistered Abuser
 
Industry Role:
Join Date: Oct 2007
Posts: 15,547
no network wide includes = fail
papill0n is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 10:28 PM   #12
chaze
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Posts: 9,752
Quote:
Originally Posted by papill0n View Post
no network wide includes = fail
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.
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 10:32 PM   #13
RonTheDon
Registered User
 
Industry Role:
Join Date: Dec 2011
Location: United States
Posts: 69
Quote:
Originally Posted by chaze View Post
But I don't liek full sites in php slow loading and resource hogs. Only use it when I really have to.
PHP is not slow and is not a resource hog.
__________________
ICQ: 609051050
RonTheDon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 11:23 PM   #14
fris
Too lazy to set a custom title
 
fris's Avatar
 
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 = "&copy; " . $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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2012, 11:39 PM   #15
chaze
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Posts: 9,752
Quote:
Originally Posted by RonTheDon View Post
PHP is not slow and is not a resource hog.
What planet are you fun, compared to html of course it is

Any active page is over static.

Last edited by chaze; 01-03-2012 at 11:40 PM..
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2012, 12:36 AM   #16
RonTheDon
Registered User
 
Industry Role:
Join Date: Dec 2011
Location: United States
Posts: 69
Quote:
Originally Posted by chaze View Post
What planet are you fun, compared to html of course it is

Any active page is over static.
Of course PHP has it's purpose and if you don't need to use it, then there is no reason too... as you stated in your previous post (you using it only when needed).

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
RonTheDon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2012, 12:43 AM   #17
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by machinegunkelly View Post
<?php echo date("Y"); ?>

;)
+1

You can also create an include and put it into the footer of all of your sites. Change it once, it changes it across all of them.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.