vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Blog API: Publish to vB Drupal from your Desktop (https://vborg.vbsupport.ru/showthread.php?t=98660)

tamarian 10-17-2005 10:00 PM

Blog API: Publish to vB Drupal from your Desktop
 
This is an addon module for vB Drupal: Community Plumbing

This addon should work for both vB Drupal versions, the 3.0.x version and 3.5 version.

What does it do: This module allows your users, who have the "edit own blogs" permission to publish to your vB Drupal site from their desktop, using any of the desktop blogging tools. It supports the following XML-RPC Engines: Blogger, MovableType and MetaWeblog

One major change from the original module is that it will apply vB's default strike system for failed logins.

Orginal source: This is actually a stock Drupal module. It was not included in vB Drupal since it allows remote logins, which some may not be comfortable with :)

License: GPL

Installation: Unzip and upload the files to their respective directories. The main xmlrpc.php goes to your main drupal directory, and is the one to use for the client interface, like http://www.example.com/forum/drupal/xmlrpc.php

Change Log

Oct 18, 2005: v0.9 Bug fixes

Oct 17, 2005: v0.8 beta release

dualboot 10-18-2005 03:59 AM

Thanks, the admin fix works flawlessly :)

tamarian 10-18-2005 04:14 AM

Quote:

Originally Posted by dualboot
Thanks, the admin fix works flawlessly :)

And thanks for the testing :up:

Snake 10-18-2005 11:59 AM

Thanks man.

Pete 11-15-2005 12:07 AM

Works great.

New posts are requiring moderation by default, anywhere to turn that off? I've got blog permissions locked down already, so this part is somewhat of a burden.

tamarian 11-15-2005 12:18 AM

Quote:

Originally Posted by Pete
New posts are requiring moderation by default, anywhere to turn that off? I've got blog permissions locked down already, so this part is somewhat of a burden.

What do you mean by "locked down"? It may be an issue of the default action set for the content type, if it's not set to publish.

Pete 11-15-2005 01:58 AM

Thanks for asking.

By locked down I meant only a small usergroup of trusted friends have blog create/edit permissions.

I've enabled blogapi for stories & blogs, both set to Published and Promoted to front page. If I submit a blog/story using the standard input, it goes through no problem. If I submit using w.bloggar the content goes through in drupal, but the vB thread is flagged for moderation (public can't view).

I assumed this was a standard "feature" due to security concerns, maybe the problem is on my end. Will do some poking around.

tamarian 11-15-2005 04:56 PM

Quote:

Originally Posted by Pete
I've enabled blogapi for stories & blogs, both set to Published and Promoted to front page. If I submit a blog/story using the standard input, it goes through no problem. If I submit using w.bloggar the content goes through in drupal, but the vB thread is flagged for moderation (public can't view).

I assumed this was a standard "feature" due to security concerns, maybe the problem is on my end. Will do some poking around.

Might also be a bug :) Do you have one forum deined for the blogs, or multiple forums separated by a comma? Does the same user get their thread set to moderated if they use a destop app, but not moderated if they post directly to the blog?

Pete 11-15-2005 05:21 PM

Yes, it works normally when logged in through browser, but using remote app the vB thread is flagged for moderation. Drupal content still posts to front page though, wierd.

The forum is set for public viewing, and all logged-in may post.

If it's not doing this to anyone else, the problem is on my end. Will keep trying.

Pete 11-15-2005 06:01 PM

I've been looking around the vbulletin.com forums, sounds like this is going to be a bug. They say admins & moderators are exempt from moderation required rules. I'm posting as admin, and the friends I mentioned with blog permissions are all moderators.

Will try some different desktop clients & settings when I get home tonight.

tamarian 11-16-2005 02:03 AM

Quote:

Originally Posted by Pete
I've been looking around the vbulletin.com forums, sounds like this is going to be a bug. They say admins & moderators are exempt from moderation required rules. I'm posting as admin, and the friends I mentioned with blog permissions are all moderators.

Will try some different desktop clients & settings when I get home tonight.

I'd like to know how you have your forum selection setup. One single forum if for all drupal entries, or a list of forum id's.

@dualboot: This sounds like a problem you had earlier, that was fixed. Do you have a similar problem to this now?

Pete 11-16-2005 02:49 AM

Quote:

Originally Posted by tamarian
I'd like to know how you have your forum selection setup. One single forum if for all drupal entries, or a list of forum id's.

@dualboot: This sounds like a problem you had earlier, that was fixed. Do you have a similar problem to this now?

All drupal content going into the one forum at this time.
Looks like dualboot is using the drupal comment system ;)

jeffj 01-04-2006 11:30 AM

does this require ftp on your server to accept their content or is the done with an xml or rss type of feed or how does the server accept their content and is there any protection against accepting virusus or harmful content?

maximux1 01-23-2006 09:56 PM

Hey tamarian - Thanks for the excellent additions to vB!

I'm working with the blogAPI.module now and I am running into some difficulty with one particular function.

valid_input_data() does not exist within the drupal framework. Obviously this causes the checking of valid xml to break throwing an error back to the client blogging tool.

Am I just overlooking something here? I'd like to use the remote management, but I do not want to remove the two calls to that function.

Code:

  if (!valid_input_data($edit['title'], $edit['body'])) {
    return blogapi_error(t('Terminated request because of suspicious input data.'));
  }

and

  if (!valid_input_data($node->title, $node->body)) {
    return blogapi_error(t('Terminated request because of suspicious input data.'));
  }

I would be very grateful for any assistance you can provide.

Max

maximux1 01-23-2006 10:02 PM

heh, well - I just found my answer...

You'll probably want to read this and update your file above - It wont work for anyone as is.

Quote:

re: "is there a replacement function?"

There is no replacement because the concept of valid_input_data() was flawed. There is no magical check you can perform that will separate safe from unsafe data. It depends on what happens to the data and how it is output.

The guidelines about text handling still stand.


All times are GMT. The time now is 03:29 AM.

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.01036 seconds
  • Memory Usage 1,754KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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