Schedule

Post your suggestions for the script here.

Schedule

Postby Saszoo » Wed Oct 11, 2006 7:56 pm

Show the headlines of postponed articles on your frontpage...

That would be cool :lol:
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby scottdallas » Wed Oct 11, 2006 10:51 pm

Oooh! Heck yes that would be. I never thought of that!
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby FI-DD » Wed Oct 11, 2006 11:40 pm

Open inc/show.news.php and change this:

Code: Select all
$where[] = 'date < '.(time() + $config_date_adjust * 60);




to this:

Code: Select all
      if($schedule){

         $where[] = 'date > '.(time() + $config_date_adjust * 60);

      }

      else{

         $where[] = 'date < '.(time() + $config_date_adjust * 60);

      }

      $schedule = false;




Add $schedule = true; to your include code.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Thu Oct 12, 2006 3:13 am

dude you are the man, that's awesome!
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Saszoo » Thu Oct 12, 2006 5:17 pm

Thank you very musch!!
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby clemco » Mon Apr 28, 2008 7:23 pm

I've been running this on my site for months and all of a sudden its started displaying the most recent news first from this category on all three of my websites which use it :S
clemco
 
Posts: 7
Joined: Wed Jan 23, 2008 10:16 pm

Postby scottdallas » Tue Apr 29, 2008 12:35 am

I'm so behind, I don't have the answer cause I just added that code to my show.news.php today :P I almost forgot about this.
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Partyism » Wed Feb 18, 2009 8:24 pm

im going to try this, however how do a make a post as a draft?

If i post news in the future, like tomorrow its beeing shown on the website while its shouldnt be. Time is correct etc..
How is this possible?
Partyism
 
Posts: 399
Joined: Tue Sep 25, 2007 6:24 pm

Postby eberswine » Tue Mar 30, 2010 4:40 pm

Wondering how would I make 2 of these I can use?
One would be for a date to expire 1 day after and then the other 5 days after?
I want to use $schedule = true
and $schedule2 = true????

Code: Select all
else {
if($schedule){

  $where[] = 'date > '.(time() + $config_date_adjust * 60 - 432000);

}

else{

  $where[] = 'date < '.(time() + $config_date_adjust * 60);

}

$schedule = false;   }

else {
if($schedule2){

  $where[] = 'date > '.(time() + $config_date_adjust * 60 - 86400);

}

else{

  $where[] = 'date < '.(time() + $config_date_adjust * 60);

}

$schedule2 = false;   }
User avatar
eberswine
 
Posts: 289
Joined: Thu Apr 26, 2007 7:23 pm

Postby eberswine » Fri Apr 09, 2010 7:55 pm

anybody have a suggestion to get this to work.. i tried several variations with none of them succeeding :(
User avatar
eberswine
 
Posts: 289
Joined: Thu Apr 26, 2007 7:23 pm


Return to Suggestions



Who is online

Users browsing this forum: No registered users and 0 guests

cron