vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Display threads on non VB pages? (https://vborg.vbsupport.ru/showthread.php?t=277356)

Varsh 01-21-2012 04:26 PM

Display threads on non VB pages?
 
Currently I'm putting together a website with vB as obviously the forums. What I'm wanting to do though is on my custom PHP page I've already created the layout however I'm needing a few things and that's:
  • Display a forum's thread list (via ID I'd imagine)
  • Limit the thread list to 5 items
How would I go about this? I have already managed to connect the user database without a problem thus have the VB globals file required.

I'm rather new to vBulletin hooks so I'm not sure exactly what to do so please go easy on me. xD

Lynne 01-21-2012 05:44 PM

If the forum has an rss feed, you could just use javascript.

[HowTo] Display your latest threads on an external page using an RSS2 feed
[HowTo] Display your latest threads on an external page using an XML feed
[HowTo] Display your latest threads on an external page using an RSS feed

Varsh 01-22-2012 11:54 AM

Thanks Lynne that helped a lot.

Is there a way so that I can add multiple RSS feeds into that code or would each RSS feed have to have a seperate script like this? I can't do this as separate includes without a problem. Also the author is not displayed with that code.

Popa Andrei 02-03-2012 08:31 PM

how can i set the rss to read the thread prefixes to and display on mi page some images i want instead of the thread prefixes? :D

kh99 02-03-2012 08:37 PM

I'm not sure exactly what you want - if you want to change the format of the RSS feed you'd have to edit external.php. The thread prefixes are already included at the beginning of the title so I suppose another option would be to change the code that receives the feed.

Popa Andrei 02-03-2012 08:45 PM

aham.Thank for the advice

kh99 02-03-2012 09:19 PM

Quote:

Originally Posted by Popa Andrei (Post 2295824)
aham.Thank for the advice

You're welcome. Unless that's sarcasm, in which case - you're welcome.

Popa Andrei 02-04-2012 04:44 PM

i wasnt sarcasmic,really,thanks.


All times are GMT. The time now is 07:03 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.01115 seconds
  • Memory Usage 1,720KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (8)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