vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to Hook/Show latest threads in a specific forunm....? (https://vborg.vbsupport.ru/showthread.php?t=193940)

imk 10-18-2008 02:07 PM

How to Hook/Show latest threads in a specific forunm....?
 
Say the forum id was 1 what is the code to hook the latest threads in that forum?

i want this in my side column?

any help?

--------------- Added [DATE]1224345988[/DATE] at [TIME]1224345988[/TIME] ---------------

????????

Lynne 10-18-2008 03:13 PM

You may want to look at the modifications for this (search "latest" "all mods" "titles only") .

imk 10-20-2008 10:04 AM

nope, any help there should just be abit of code to hook surely?1

Lynne 10-20-2008 02:30 PM

How about this method (make sure to see post 3 also) - http://www.vbulletin.com/forum/showthread.php?t=283817

imk 10-20-2008 05:48 PM

thank you, great mod btw.

--------------- Added [DATE]1224529342[/DATE] at [TIME]1224529342[/TIME] ---------------

ok 1 problem doesnt seem to be working great for some reason it's not hooking every thread i post in that forum


this is my code,

Code:

<tr>
<td class="alt1">

<!-- show latest active threads -->
<table cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr>
<td colspan="2">
<a href="search.php?do=getnew">Latest Active Threads</a>
</td>
</tr>
</tbody>
<tbody>
<tr>
 
<td width="100%">
 
<div>
<script type="text/javascript" src="external.php?forumids=32,37,38,39,40&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 8; x++)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script></div>
 
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />


</td>
</tr>

any help?

Lynne 10-20-2008 06:32 PM

I've never used the script before. However, you should be aware that using any method that uses external.php will only give you threads that are available for unregistered users to see. If you need to see threads in other forums, you'll either have to modify external.php to allow those forumids or you'll have to use code that makes the query for those threads.

imk 10-20-2008 06:56 PM

ok so i think its working, it just takes its time to load new threads created....anyway to speed this up?

--------------- Added [DATE]1224532831[/DATE] at [TIME]1224532831[/TIME] ---------------

any other ideas on how to do this better ?

Lynne 10-20-2008 07:18 PM

I use an actually query for my home page. But then, I grab more than just basic thread info for my home page so it's not a 'normal' threads query.

imk 10-20-2008 08:01 PM

it works just it's slow....surely i can speed it up somhow?

any other suggestions?

Lynne 10-20-2008 08:31 PM

My only suggestions are get it from external.php or get it from a query. I don't know what else to suggest.


All times are GMT. The time now is 09:35 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.01033 seconds
  • Memory Usage 1,726KB
  • 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
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete