![]() |
Show last 50 posts on homepage
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? |
.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.
|
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 |
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).
|
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.
|
Ok how about a redirect to a sub-forum...
So it shows the specific sub-forum instead of the general overview... Is that possible? |
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.
|
Quote:
|
|
Quote:
Quote:
Just came across this: http://www.enotalone.com/forum/index.php Looks like VB... :) Any clue how they managed that one? |
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. |
You can extend the "get daily" to any number of days with the following:
Code:
search.php?do=getdaily&days=10 Then in vbulletin optons -> message searching options set Search Results Posts Per Page to 50. |
Quote:
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? |
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. |
Quote:
I used: Quote:
|
in vbulletin it would be:
DirectoryIndex /forumdisplay.php?f=2 /index.php |
Quote:
How can I get it to just stay on the homepage instead changing the URL in the navigation bar? |
I don't even know if that is possible with htaccess...
|
All times are GMT. The time now is 08:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|