Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Blocks
Author Message
Malke
Hangin' Around



Joined: May 14, 2006
Posts: 25

PostPosted: Sat Nov 29, 2008 12:27 pm Reply with quote

I would like to change the "Big story of today" block to a block that shows the "big story of the week" or "Big story of the month" as we do not post news every day.

Can anyone help me with this?

Thanks.
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sat Nov 29, 2008 12:49 pm Reply with quote

You could use the Last 5 Articles block, but reduce to just show 1, or 2 articles.
 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Sat Nov 29, 2008 12:53 pm Reply with quote

I'm pretty sure "Big Story of Today" displays the "Most Read" story of that day, and how often you post news doesn't have any effect on what the block displays...
 
View user's profile Send private message Visit poster's website
Malke







PostPosted: Sat Nov 29, 2008 12:55 pm Reply with quote

Yep but it would just show the last article, right? Not the "top story", which I'm assuming means the one with the most views.
 
Malke







PostPosted: Sat Nov 29, 2008 12:59 pm Reply with quote

Yes but if there is no post made today there can not be a most read story of today, right? So if I post news 2-3 times/week, most days will have no top story. If the block displays the top story of the week or even month, there will always be a top story.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Nov 29, 2008 1:10 pm Reply with quote

If you look at the code for that block, it is pretty simple, so take a stab at it Wink
 
View user's profile Send private message Send e-mail
Malke







PostPosted: Sat Nov 29, 2008 3:04 pm Reply with quote

So I'm guessing this is what I'll have to change?

$today = getdate();
$day = $today["mday"];

and

(time LIKE '%$tdate%')

or what?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©