GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   When r u actualy going to update your footer 2012 date? (https://gfy.com/showthread.php?t=1052234)

chaze 01-03-2012 05:10 PM

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.

LightscapeMedia 01-03-2012 05:12 PM

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.

nation-x 01-03-2012 05:14 PM

Apparently, you don't know php or javascript

machinegunkelly 01-03-2012 05:14 PM

<?php echo date("Y"); ?>

;)

Jim_Gunn 01-03-2012 05:26 PM

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.

potter 01-03-2012 05:38 PM

OP = retarded

Barry-xlovecam 01-03-2012 05:46 PM

Code:

<script type="text/javascript">
<!--
var currentTime = new Date()
var year = currentTime.getFullYear()
document.write(year)
//-->
</script>

:upsidedow

anexsia 01-03-2012 05:59 PM

lol people still put the date in manually?

fitzmulti 01-03-2012 06:00 PM

Working on my php inserts tomorrow! (Only a few days late, LOL!)

Overload 01-03-2012 06:08 PM

(C) 1999 - 2066 ... why update? mwahahahaha

papill0n 01-03-2012 07:32 PM

no network wide includes = fail

chaze 01-03-2012 10:28 PM

Quote:

Originally Posted by papill0n (Post 18669453)
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.

RonTheDon 01-03-2012 10:32 PM

Quote:

Originally Posted by chaze (Post 18669607)
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.

fris 01-03-2012 11:23 PM

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;
}


chaze 01-03-2012 11:39 PM

Quote:

Originally Posted by RonTheDon (Post 18669613)
PHP is not slow and is not a resource hog.

What planet are you fun, compared to html of course it is :1orglaugh

Any active page is over static.

RonTheDon 01-04-2012 12:36 AM

Quote:

Originally Posted by chaze (Post 18669687)
What planet are you fun, compared to html of course it is :1orglaugh

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.

:winkwink:

DWB 01-04-2012 12:43 AM

Quote:

Originally Posted by machinegunkelly (Post 18669272)
<?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.


All times are GMT -7. The time now is 12:55 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123