Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 28 Dec 2010, 18:28
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
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?
Reply With Quote
  #2  
Old 29 Dec 2010, 10:26
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
.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.
__________________
Reply With Quote
  #3  
Old 29 Dec 2010, 15:53
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
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
Reply With Quote
  #4  
Old 29 Dec 2010, 16:08
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
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.
__________________
Reply With Quote
  #5  
Old 29 Dec 2010, 22:13
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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).
Reply With Quote
  #6  
Old 29 Dec 2010, 22:15
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
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.
__________________
Reply With Quote
  #7  
Old 31 Dec 2010, 06:43
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
Ok how about a redirect to a sub-forum...

So it shows the specific sub-forum instead of the general overview... Is that possible?
Reply With Quote
  #8  
Old 31 Dec 2010, 19:16
metalguy639 metalguy639 is offline
 
Join Date: Jan 2009
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.
Reply With Quote
  #9  
Old 31 Dec 2010, 19:19
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by giorgioarmani View Post
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?
__________________
Reply With Quote
  #10  
Old 01 Jan 2011, 02:52
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Try this...

http://www.vbulletin.org/forum/showthread.php?t=166791
Reply With Quote
  #11  
Old 01 Jan 2011, 15:59
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
Originally Posted by Digital Jedi View Post
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...

Originally Posted by James T Brock View Post
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?
Reply With Quote
  #12  
Old 01 Jan 2011, 17:49
James T Brock James T Brock is offline
 
Join Date: Sep 2004
Why don't you think it's the right thing? Either of the mods below will do exactly what you're asking.

http://www.vbulletin.org/forum/showthread.php?t=166791
http://www.vbulletin.org/forum/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.
Reply With Quote
  #13  
Old 01 Jan 2011, 20:11
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
You can extend the "get daily" to any number of days with the following:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #14  
Old 01 Jan 2011, 20:45
giorgioarmani giorgioarmani is offline
 
Join Date: Dec 2006
Originally Posted by James T Brock View Post
Why don't you think it's the right thing? Either of the mods below will do exactly what you're asking.

http://www.vbulletin.org/forum/showthread.php?t=166791
http://www.vbulletin.org/forum/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?
Reply With Quote
  #15  
Old 01 Jan 2011, 20:51
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:47.

Layout Options | Width: Wide Color: