vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBulletin-WordPress Bridge (https://vborg.vbsupport.ru/showthread.php?t=94443)

ScruffyDeluxe 04-08-2006 07:48 AM

I got a little impatient for an update, so I started hacking this myself into WordPress 2 / vB 3.5.

Everything except the comments RSS feed works so far. Any ideas?

chanzero 04-08-2006 06:17 PM

hey scruffy will you share see your hack code? maybe the group can work out the RSS too

ScruffyDeluxe 04-09-2006 04:44 AM

Sure, check the attachment. I used Beyond Compare to find the differences between my hacked files and the originals, so if I missed anything, give me a shout.

moethelawn 04-09-2006 08:43 AM

Quote:

Originally Posted by ScruffyDeluxe
Sure, check the attachment. I used Beyond Compare to find the differences between my hacked files and the originals, so if I missed anything, give me a shout.

Scruffy, thanks for changing the code to make it work for WP 2.0!

I did exactly what you had in your instructions, but i end up with this error:

Code:

WordPress database error: [Table 'gamerene_wp.user' doesn't exist]
SELECT userid FROM user WHERE username = 'admin'

WordPress database error: [Table 'gamerene_wp.thread' doesn't exist]
INSERT INTO thread SET title='test',lastpost='1144575715', forumid='183', open='1', postusername='moethelawn', postuserid='1', lastposter='moethelawn', dateline='1144575715', visible='1'

WordPress database error: [Table 'gamerene_wp.post' doesn't exist]
INSERT INTO post SET threadid='8', username='moethelawn', userid='1', title='test', pagetext='

       
Quote:

       
       
               
       
       

                       

                       
                               

                                        Originally Posted by The Front Page
                                       
                               

                               
test

                       
                       

               

Read the full blog entry.', ipaddress='', allowsmilie='1', iconid='1',visible='1', dateline='1144575715'

WordPress database error: [Table 'gamerene_wp.forum' doesn't exist]
UPDATE forum SET threadcount=threadcount+1, lastpost='1144575715', lastposter='moethelawn', lastthread='test', lastthreadid='8', lasticonid='1' WHERE forumid='183' LIMIT 1


Warning: Cannot modify header information - headers already sent by (output started at /home/gamerene/public_html/news/wp-includes/wp-db.php:102) in /home/gamerene/public_html/news/wp-admin/post.php on line 60

I'd thought I'd not change anything if you had some sort of idea what it is that's wrong. Thanks!

ScruffyDeluxe 04-10-2006 05:46 AM

I'm still a MySQL noob, but it looks like vB and WP are in different databases...?

BLazeD1 04-21-2006 04:00 AM

installed using your hack ^^^ and very impressed.

please keep us updated of any progress!

endquote 04-27-2006 10:49 PM

This works well for me VB 3.5.4 and WP 2.0.2. Some bugs:
  • If you edit the post in WP, it doesn't get edited in VB.
  • If you delete a post in WP, it doesn't get deleted in VB.
  • If you click "save" instead of "publish" in WP, it publishes in VB, even though it shouldn't.

The attached version fixes the first problem. It would be great to see the others fixed and the whole thing packaged into a proper WP plugin.

yessir 05-10-2006 01:38 PM

I would love to see this ported to plugins for 3.5.

ScruffyDeluxe 05-11-2006 09:00 PM

OK, I just did a bit more to this. I've tested a few different methods of creating blog entries, and these are known to work as expected (the entry's status options were set to 'Draft' unless otherwise stated):
Does not create thread (vb_threadid = NULL)
Write entry > Click 'Save and continue editing' button
Write entry > Click 'Save' button

Creates thread
Write entry > Click 'Publish' button
Write entry > Click 'Save and continue editing' button > Click 'Publish' button
Write entry > Click 'Save and continue editing' button > Select 'Publish' entry status > Click 'Save and continue editing' button
Each of the above tests were done on a fresh entry, and just to confirm that no duplicate threads can be created by the same blog entry, I did a rather important check:
Updates thread
Edit entry > Select 'Draft' entry status > Click 'Save and continue editing' button > Select 'Publish' entry status > Click 'Save and continue editing' button
Along the way, I removed some parts of the queries which made the first post jump to its chronological place in the thread whenever the blog entry is edited. I've totally ignored the 'Private' post status so far; I hope it doesn't need a whole new bunch of queries.

BLazeD1 05-11-2006 09:44 PM

Is this an update, or were you just telling us your progress?

Cheers

PS: Anyone notice funny characters come up in the VB forums when you post an image in the WP entry? e.g maxps3.com


Thanks!


Quote:

Originally Posted by ScruffyDeluxe
OK, I just did a bit more to this. I've tested a few different methods of creating blog entries, and these are known to work as expected (the entry's status options were set to 'Draft' unless otherwise stated):
Does not create thread (vb_threadid = NULL)
Write entry > Click 'Save and continue editing' button
Write entry > Click 'Save' button

Creates thread
Write entry > Click 'Publish' button
Write entry > Click 'Save and continue editing' button > Click 'Publish' button
Write entry > Click 'Save and continue editing' button > Select 'Publish' entry status > Click 'Save and continue editing' button
Each of the above tests were done on a fresh entry, and just to confirm that no duplicate threads can be created by the same blog entry, I did a rather important check:
Updates thread
Edit entry > Select 'Draft' entry status > Click 'Save and continue editing' button > Select 'Publish' entry status > Click 'Save and continue editing' button
Along the way, I removed some parts of the queries which made the first post jump to its chronological place in the thread whenever the blog entry is edited. I've totally ignored the 'Private' post status so far; I hope it doesn't need a whole new bunch of queries.



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