vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show last 50 posts on homepage (https://vborg.vbsupport.ru/showthread.php?t=256062)

giorgioarmani 12-28-2010 04:28 PM

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?

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.

kh99 12-29-2010 08:13 PM

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

Quote:

Originally Posted by giorgioarmani (Post 2141700)
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


All times are GMT. The time now is 01:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete