View Full Version : Show last 50 posts on homepage
giorgioarmani
12-28-2010, 04:28 PM
How can I show the last 50 posts on the homepage instead of the list of forums and sub-forums?
I'd suppose this could be done via .htaccess... Anyone?
Digital Jedi
12-29-2010, 08:26 AM
.htaccess is for server configuration. What you want could theoretically be done with a CMS like vBadvanced or something similar. It's more basic then what it's designed for, but would most likely do the job.
giorgioarmani
12-29-2010, 01:53 PM
VBadvanced seems like quite a complex way of achieving what I want...
I'm looking at something simple... I've managed to do it with MyBB on another forum and now would like the same on a site running vBulletin...
On MyBB I did it with .htaccess
Digital Jedi
12-29-2010, 02:08 PM
Less complex than you'd think. I'm sure there's other ways to get a PHP file to do what you want, but you'd still need something that lets you pull vBulletin content into an external page. I suggested vBadanced because you wouldn't need to know any coding to make that happen, and you could pick and choose and fine tune what parts of the threads you'd want listed.
VBadvanced is a good idea, it's pretty easy to install but I guess it can be a little tricky to learn. The thing with using .htaccess (which I'm sure we all know) is having a page to redirect to, and the closest thing I can find is search.php?do=getdaily , but that doesn't seem to let you select the page size and might return less than 50 (I haven't tried it a lot).
Digital Jedi
12-29-2010, 08:15 PM
Yup, if it would be the max daily number of posts, which could be more or less than 50. With a single page size vBa module, you wouldn't even need to use a redirect.
giorgioarmani
12-31-2010, 04:43 AM
Ok how about a redirect to a sub-forum...
So it shows the specific sub-forum instead of the general overview... Is that possible?
metalguy639
12-31-2010, 05:16 PM
Just to show the posts, you could always turn on the rss in your board and then install SimplePie on your web site and just have your front page be an rss feed of the latest 50 posts from your board only. that is what I'd do, its the easiest way if you make a custom template & have a custom front page.
Digital Jedi
12-31-2010, 05:19 PM
Ok how about a redirect to a sub-forum...
So it shows the specific sub-forum instead of the general overview... Is that possible?
If you just want a redirect, then yes. I presume since you've already done this with .htaccess on SMF, then you already know what to do?
James T Brock
01-01-2011, 12:52 AM
Try this...
https://vborg.vbsupport.ru/showthread.php?t=166791
giorgioarmani
01-01-2011, 01:59 PM
If you just want a redirect, then yes. I presume since you've already done this with .htaccess on SMF, then you already know what to do?
No idea... I just added some code I was recommended and it works...
Try this...
https://vborg.vbsupport.ru/showthread.php?t=166791
Not sure if thats the right thing...
Just came across this:
http://www.enotalone.com/forum/index.php
Looks like VB... :) Any clue how they managed that one?
James T Brock
01-01-2011, 03:49 PM
Why don't you think it's the right thing? Either of the mods below will do exactly what you're asking.
https://vborg.vbsupport.ru/showthread.php?t=166791
https://vborg.vbsupport.ru/showthread.php?t=147344
Actually, I suspect that you have your terminology mixed up. In the first post you said HOMEPAGE but I think what you mean is the forums index page? You want recent posts on the index page instead of the normal format with the sub-forums.
BirdOPrey5
01-01-2011, 06:11 PM
You can extend the "get daily" to any number of days with the following:
search.php?do=getdaily&days=10
That would be 10 days... as long as you'd gave at least 50 threads in 10 days you're fine.
Then in vbulletin optons -> message searching options set Search Results Posts Per Page to 50.
giorgioarmani
01-01-2011, 06:45 PM
Why don't you think it's the right thing? Either of the mods below will do exactly what you're asking.
https://vborg.vbsupport.ru/showthread.php?t=166791
https://vborg.vbsupport.ru/showthread.php?t=147344
Actually, I suspect that you have your terminology mixed up. In the first post you said HOMEPAGE but I think what you mean is the forums index page? You want recent posts on the index page instead of the normal format with the sub-forums.
Without a doubt it could be that I have my "terminology" mixed up but those two mods are not the simple solution I'm looking for...
What I want is when someone visits my site they are shown the contents of forum X.
In effect, then showing the posts from that forum on the "homepage"
Does that make sense?
BirdOPrey5
01-01-2011, 06:51 PM
You clould use htaccess to forward someone from http://www.yourdomain.com to http://www.yourdomain.com/forumdisplay.php?f=X
Where X is your forum id... I'd imagine the code wold be nearly identical as what you used my mybb.
giorgioarmani
01-01-2011, 07:08 PM
You clould use htaccess to forward someone from http://www.yourdomain.com to http://www.yourdomain.com/forumdisplay.php?f=X
Where X is your forum id... I'd imagine the code wold be nearly identical as what you used my mybb.
Yup that's exactly what I want...
I used:
DirectoryIndex /forumdisplay.php?fid=2 /index.php
But this doesn't work for VB.... :confused:
BirdOPrey5
01-01-2011, 07:25 PM
in vbulletin it would be:
DirectoryIndex /forumdisplay.php?f=2 /index.php
giorgioarmani
01-01-2011, 08:01 PM
in vbulletin it would be:
DirectoryIndex /forumdisplay.php?f=2 /index.php
Nice... That "redirects" - getting there...
How can I get it to just stay on the homepage instead changing the URL in the navigation bar?
BirdOPrey5
01-02-2011, 12:35 AM
I don't even know if that is possible with htaccess...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.