vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   HELP:Display threads, views & replies on html page? (https://vborg.vbsupport.ru/showthread.php?t=223481)

jl255 09-18-2009 01:02 AM

HELP:Display threads, views & replies on html page?
 
I reference to the other link giving instructions:
http://www.vbulletin.com/forum/showthread.php?t=277280

Code:

document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
how do i display the number of thread replies & number of thread views? i know that threads[x] array doesn't have those variables.... so how do i do it? Any help wld be greatly appreciated.

Lynne 09-18-2009 01:05 AM

Since the array doesn't have it, there is no way to do it using the method you are using. You would have to do a query and you can't do that in an html page.

jl255 09-18-2009 01:07 AM

tks. how abt a php page?

Lynne 09-18-2009 01:23 AM

Sure, you can write a query it it's a php page. There are several mods to display threads/views on other pages - do a search for one - and then grab the query from it and modify to suite your needs.

jl255 09-18-2009 01:44 AM

honestly, i've been searching for a few months now, but didn't find anything.... think u can help point me in the right direction?

Lynne 09-18-2009 01:58 AM

Articles forum? Create "Latest Threads" Custom Page


All times are GMT. The time now is 10:27 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
  • Page Generation 0.01109 seconds
  • Memory Usage 1,714KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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