vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   4.0 - Wordpress Bridge? (https://vborg.vbsupport.ru/showthread.php?t=245130)

mmoore5553 06-27-2010 04:39 PM

First you need to download the plugin

html-javascript adder


which can be downloaded here

http://www.aakashweb.com/download/ht...ript-adder.zip


I am using 1.4

then add the widget and put in this code.The code in different color change to what yours is. I have it pulling 10 at the moment. I also have it showing all threads. You can change the code to what you want.

Make sure external rss is enabled on forum. Some of the settings are here


http://www.vbulletin.com/docs/html/v...group_external

.

<script type="text/javascript" src="http://your.url.here/forum/external.php?forumids=0&type=js&lastpost=1"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<font style=\"font-size: 11pt;font-weight: normal\"><a href=\"http://your.url.here/forum/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br>(Posted By: "+threads[x].poster+")<br><br />");
}
//-->
</script>


also what other issues or what you trying to do ?

twitch 06-27-2010 07:41 PM

Quote:

Originally Posted by mmoore5553 (Post 2060583)
First you need to download the plugin

html-javascript adder


which can be downloaded here

http://www.aakashweb.com/download/ht...ript-adder.zip


I am using 1.4

then add the widget and put in this code.The code in different color change to what yours is. I have it pulling 10 at the moment. I also have it showing all threads. You can change the code to what you want.

Make sure external rss is enabled on forum. Some of the settings are here


http://www.vbulletin.com/docs/html/v...group_external

.

<script type="text/javascript" src="http://your.url.here/forum/external.php?forumids=0&type=js&lastpost=1"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<font style=\"font-size: 11pt;font-weight: normal\"><a href=\"http://your.url.here/forum/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br>(Posted By: "+threads[x].poster+")<br><br />");
}
//-->
</script>


also what other issues or what you trying to do ?

I will give that a try and get back to you. Thank you for your help!

mmoore5553 06-27-2010 10:12 PM

no problem ..i am using version 3.8 on my forum but i do not think code will be too different

Okay here is the correct syntax for vb 4 (tested and works)

<script type="text/javascript" src="http://www.url.com/forum/external.php?type=js&lastpost=1&forumid=0"></script>
<script type="text/javascript">
<!-- Start
for(x = 0; x < 10; x++)
{
document.writeln("<p><a href=\"http://www.url.com/forum/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br><span class=\"copytext\"> (posted by <i>"+threads[x].poster+")</i></span></p>");
}
//-->
</script>

twitch 06-28-2010 01:05 AM

Quote:

Originally Posted by mmoore5553 (Post 2060740)
no problem ..i am using version 3.8 on my forum but i do not think code will be too different


Okay here is the correct syntax for vb 4 (tested and works)

<script type="text/javascript" src="http://www.url.com/forum/external.php?type=js&lastpost=1&forumid=0"></script>
<script type="text/javascript">
<!-- Start
for(x = 0; x < 10; x++)
{
document.writeln("<p><a href=\"http://www.url.com/forum/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br><span class=\"copytext\"> (posted by <i>"+threads[x].poster+")</i></span></p>");
}
//-->
</script>

Thanks! Awesome

twitch 07-02-2010 03:58 PM

For latest vbulletin threads on wordpress homepage, I found this wordpress widget much easier to use and much more reliable.
Simple RSS Feeds Widget
Plugin link at wordpress: http://wordpress.org/extend/plugins/...-feeds-widget/
Author homepage: http://petitnuage.fr/developpement/s...get-wordpress/

use the RSS feed link of your forums and put that into the wordpress widget after install.
use example http://www.yoursite.com/forum/external.php?type=rss2

mmoore5553 07-02-2010 04:21 PM

good find but the javascript always works for me and also you can include or exclude forums with the javascript

twitch 07-02-2010 04:32 PM

Quote:

Originally Posted by mmoore5553 (Post 2063306)
you can include or exclude forums with the javascript

Very true, good point.

dcuellar 07-16-2010 12:46 PM

twitch,
Will this allow me to add vbulletin posts as wordpress posts? Or is it more of a widget placed on the side of the wordpress homepage?


All times are GMT. The time now is 06:06 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.01139 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete