vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display Forum Elements on Main Website page (https://vborg.vbsupport.ru/showthread.php?t=149848)

smith2007 06-16-2007 11:11 AM

Display Forum Elements on Main Website page
 
Hi - This is my first post here. I was recommended to this site and what a great site this is!

We have recently installed Vbullein. It is not live yet, as we are learning how to use it properly first.

My question; is it possible to include some elements of our Vbulletin Forum on our main website's home page? The main website is an ecommerce store. (I can edit this with an HTML editor)

I was thinking of things like a side box showing latest forum posts or perhaps a Poll etc.. The idea being to attract our webstore browsers to have a look at our new forum and become involved. I can easily add a simple link to the forum, but thought some dynamic content would be more attractive.

Is it possible to do this with VB 3.6.7PL1 as it is, or do I need a hack or another program to acheive this?

Any help will be really appreciated - thank you.

Dismounted 06-16-2007 11:18 AM

<a href="http://www.vbulletin.com/docs/html/main/vboptions_externaldataprovider_implementing" target="_blank">http://www.vbulletin.com/docs/html/m...r_implementing</a>

smith2007 06-16-2007 11:30 AM

Thanks Dismounted! for your quick and helpful reply.

Looks like I'm going to be on a steep learning curve. Other than very simple Java (e.g. displaying a pop up page) I'm a complete novice. I will need to study how to retreive certain elements like 'Latest Posts' or 'Latest Polls' from my vbulletin forum.

Appreciate your help and thanks for putting me on the right track.

Dismounted 06-17-2007 04:23 AM

Note that you said 'Java', which is NOTHING like 'Javascript' (the one you're trying to talk about).

smith2007 06-20-2007 01:49 PM

I tried the code shown on the link you provided and this displays the lastest thread title and who posts it OK.

<script src="http://www.yourdomain.com/forumpath/external.php?type=js" type="text/javascript"></script>
<script type="text/javascript">
<!--
for (i in threads)
{
document.writeln(threads[i].title + " (" + threads[i].poster + ")<br />");
}
//-->
</script>

What I would really like to acheive is to make the displayed current threads clickable (i.e. to take you to that particular thread). I have spent the last two days trying, but with no success.
If this is possibe, can any one advise a script to call this from the external data source? The one above displays the info, but it is not clickable.

I was also trying to call info like the latest poll, but again am unsure how to go about it.

Any help or pointers re calling vbulletin info would be fantastic.

Dismounted 06-21-2007 05:48 AM

Try the hack 'vBExternal'.


All times are GMT. The time now is 05:44 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.01045 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)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