Today's Posts on home page [message #10926] |
Fri, 13 June 2003 17:02 |
Varen
Messages: 7 Registered: May 2003
Karma: 0
|
Junior Member |
|
|
I'm trying to figure out how to place todays post's as the default view on the home page, rather than the general listing of categories. Has anyone done this, can anyone give me any tips/instructions?
Thanks.
|
|
|
Re: Today's Posts on home page [message #10930 is a reply to message #10926] |
Fri, 13 June 2003 17:31 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to hack up the code inside root_index.php.t, if
$t is empty or == 'index' and there are no other $_GET variables then redirect the user to the page you want.
FUDforum Core Developer
|
|
|
|
Re: Today's Posts on home page [message #10936 is a reply to message #10935] |
Fri, 13 June 2003 20:19 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I suggest that you carefuly review the file, the $t variable is quite visible and I fail to see how you could've missed it given the fact it appears numerous time in that the file.
As far as redirecting the user if you have ever coded in PHP you must've come across the header() function, use it. If you have not the look up the documentation for the function on http://www.php.net
FUDforum Core Developer
|
|
|
Re: Today's Posts on home page [message #10937 is a reply to message #10926] |
Fri, 13 June 2003 21:55 |
Varen
Messages: 7 Registered: May 2003
Karma: 0
|
Junior Member |
|
|
I guess I'll have to blow off that idea and not bother coming back to this board until I'm an expert on coding php. I'm humbly sorry for wasting your time.
|
|
|