| Author |
Message |
Malke Hangin' Around

Joined: May 14, 2006 Posts: 25
|
Posted:
Sat Nov 29, 2008 12:27 pm |
|
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. |
|
|
|
 |
jakec Site Admin

Joined: Feb 06, 2006 Posts: 3028 Location: United Kingdom
|
Posted:
Sat Nov 29, 2008 12:49 pm |
|
You could use the Last 5 Articles block, but reduce to just show 1, or 2 articles. |
|
|
|
 |
spasticdonkey RavenNuke(tm) Development Team

Joined: Dec 02, 2006 Posts: 1251 Location: Texas, USA
|
Posted:
Sat Nov 29, 2008 12:53 pm |
|
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... |
|
|
|
 |
Malke Hangin' Around

Joined: May 14, 2006 Posts: 25
|
Posted:
Sat Nov 29, 2008 12:55 pm |
|
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 Hangin' Around

Joined: May 14, 2006 Posts: 25
|
Posted:
Sat Nov 29, 2008 12:59 pm |
|
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: 6299 Location: Vsetin, Czech Republic
|
Posted:
Sat Nov 29, 2008 1:10 pm |
|
If you look at the code for that block, it is pretty simple, so take a stab at it  |
|
|
|
 |
Malke Hangin' Around

Joined: May 14, 2006 Posts: 25
|
Posted:
Sat Nov 29, 2008 3:04 pm |
|
So I'm guessing this is what I'll have to change?
$today = getdate();
$day = $today["mday"];
and
(time LIKE '%$tdate%')
or what? |
|
|
|
 |
|
|
|
|