vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Hack pointer/advice request - last thread in each forum on forum home (https://vborg.vbsupport.ru/showthread.php?t=40543)

ixl 07-01-2002 11:03 PM

Hack pointer/advice request - last thread in each forum on forum home
 
Hi folks,

I just installed vB yesterday. The only thing it doesn't have that my old UBB had was the ability to show for each forum on the front page, the title and other information about the last post to the forum, not just the time/date and last poster ID.

Someone told me there was a hack here to do this but I can't find it. Does it exist? I am assuming not and trying to do it myself. The only way I can see to do it is to do a separate SQL query for each forum when the front page is displayed, which seems rather inefficient. Is there a better way to go?

Any advice appreciated one way or the other. Thanks.

Velocd 07-01-2002 11:13 PM

I'm sure it exists, but all I'm good for is bumping this post up to help you :p

ixl 07-02-2002 02:11 AM

Well, it exists now anyway. ;) I decided to just try to do it myself and considering I had never seen PHP code in my life prior to yesterday, not too bad.

Take a look and let me know what you think.

My main concern now is that having to do a query for each and every postable forum on the front page is really inefficient. Anyone know if there is a better way?

Charles

Scott MacVicar 07-02-2002 09:31 AM

Check my sig :D


All times are GMT. The time now is 07:04 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.01144 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete