Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Zeus (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-17-2001 Last Update: Never Installs: 0
 
No support by the author.

Is there a hack that lets you put the most recent posts in the forum on the main page of your site?

Where can I get it?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-18-2001, 08:25 AM
Guest
 
Posts: n/a
Default

If you use this, than all threads are shown on the mainpage, even threads that are in internal forums.

Is there a solution for this?
Reply With Quote
  #23  
Old 03-18-2001, 01:33 PM
Guest
 
Posts: n/a
Default

very nice and easy to install.

Is there a way i could have the date of the post and the name of the poster + the title? like in http://www.sitepoint.com/

thank you in advance
Reply With Quote
  #24  
Old 03-18-2001, 01:40 PM
Guest
 
Posts: n/a
Default

yes, that is the script that will solve all of our problems.
I have asked Wayne on their forums about it, but got no reply
Reply With Quote
  #25  
Old 03-18-2001, 02:57 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by auto
you can only include php code in a php page, which means it ends with either .php or .php3
a .shtml page can't execute php.
Um, actually it will if you use a SSI. As long as your server supports PHP parsing, you can include a PHP file via SSI (see this). Also, you can use the extension of .phtml on PHP files, assuming your server supports this.
Reply With Quote
  #26  
Old 03-18-2001, 03:04 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by TommyXXL
If you use this, than all threads are shown on the mainpage, even threads that are in internal forums.
Do you mean private forums that are limited access? If so, here's the solution. Change the line
PHP Code:
$query "SELECT * FROM thread ORDER BY lastpost DESC LIMIT $maxthreads"
to
PHP Code:
$query "SELECT * FROM thread WHERE forumid!=XX ORDER BY lastpost DESC LIMIT $maxthreads"
and change the XX to the number of the forum you want to exclude. (You can determine the forum number by going to your main forums page and mousing over the link to each forum. The forum number is the part of the url after forumid; e.g. http://yoursite.com/forumdisplay.php?s=&forumid=36. To exclude more than one forum, add this:
PHP Code:
 AND forumid!=XX 
for each additional forum you want to exclude. MAKE SURE you add a space before the word AND and a space after XX and you change the XX to the number you want excluded. Example: I want to exclude forums 6, 12, and 35.
PHP Code:
$query "SELECT * FROM thread WHERE forumid!=6 AND forumid!=12 AND forumid!=35 ORDER BY lastpost DESC LIMIT $maxthreads"
Second example: I want to exclude forum 6.
PHP Code:
$query "SELECT * FROM thread WHERE forumid!=6 ORDER BY lastpost DESC LIMIT $maxthreads"
Reply With Quote
  #27  
Old 01-05-2003, 01:21 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to get the user and date to display too.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:20 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.03993 seconds
  • Memory Usage 2,274KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete