FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Today's Posts on home page
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Today's Posts on home page [message #10926] Fri, 13 June 2003 17:02 Go to next message
Varen is currently offline  Varen   United States
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #10935 is a reply to message #10926] Fri, 13 June 2003 20:09 Go to previous messageGo to next message
Varen is currently offline  Varen   United States
Messages: 7
Registered: May 2003
Karma: 0
Junior Member
Hi

I've located the file root_index.php.t but I'm unable to follow your instructions because I don't see a $t value nor do I know how to "redirect the user to a different page". I'm no stranger to hacking a little code but the info you gave me was a little too esoteric.

Would you mind being a little more specific or even post a new line of code to replace an old line of code? I'm working with a default set of files.

Your help would be very appreciated.

Thanks very much.

Varen Swaab
Re: Today's Posts on home page [message #10936 is a reply to message #10935] Fri, 13 June 2003 20:19 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous message
Varen is currently offline  Varen   United States
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: User editing.
Next Topic: background image help please
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 01:50:14 GMT 2024

Total time taken to generate the page: 0.02534 seconds