boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Update a LiveJournal from b2
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Fri Nov 01, 2002 10:09 pm    Post subject: Update a LiveJournal from b2 Reply with quote

ljupdate-0.1 is a hack/add-on for b2 that allows you to automagically update a LiveJournal account as you post to your b2 account. I'm distributing it as a unified diff, under the "I Don't Give A Damn" license. It applies cleanly to both the latest release of b2 at sourceforge and the cvs version as of about 20 minutes ago.

All standard disclaimers apply. Bits of the code greatly resemble those in b2 itself, and for good reason. I tried to match the b2 style as much as possible, and borrowed where it made sense to do so. Mega-Kudoes for Michel V for such an awesome piece of software in the first place. Michel, you're more than welcome to roll any or all of this into b2's main codebase if you wish.

It's gonna have bugs and feature improvements. Find one? Got one? Let me know at me DASH ljupdate AT frcooper DOT com.

The original release announcement is here.
Back to top
View user's profile Send private message Visit poster's website
michel v
Site Admin


Joined: 25 Jan 2002
Posts: 799
Location: Corsica

PostPosted: Sat Nov 02, 2002 1:19 am    Post subject: Reply with quote

Wow.
I'm checking out the diff file at the moment, and it looks very cool and complete. When 0.6.1 is out, could you apply the diff to it and send me the package so that it could be released as an alternate download?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Sat Nov 02, 2002 5:56 am    Post subject: Reply with quote

No problem. Is there an ETA for 0.6.1?

As for complete, it's far from it. I've got issues with the formatting of posts as they are transferred to LJ - I think a stripslashes will take care of some of that, but I should be scanning the content to fix up relative links.

Is there some mechanism that I'm not seeing for returning an error message to the user during a blog posting? b2 itself can pretty much never fail, or if it does, the entire thing goes down so the fault condition is pretty evident. Unfortunately the LJ interface isn't nearly so reliable. Any advice you have on how to handle this while not radically altering the flow of the posting process would be appreciated.
Back to top
View user's profile Send private message Visit poster's website
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Sat Nov 02, 2002 11:58 pm    Post subject: ljupdate-0.2 Reply with quote

In the tradition of all good hacks, ljupdate-0.2 is released the day after v1 and is a horribly painful upgrade. Well, okay... It's actually not that bad. If you're running b2 pre0.6 and you were brave enough to install v1, there's even a 0.1 to 0.2 upgrade.

the ReadMe and diffs for all versions are archived here: http://frcooper.com/xm/lj/

The original announcement of this is here.
Back to top
View user's profile Send private message Visit poster's website
SirJake



Joined: 06 Nov 2002
Posts: 6
Location: NC

PostPosted: Wed Nov 06, 2002 7:32 am    Post subject: Problem with LJ post... Reply with quote

I'm a newbie to B2 in general, so I may just be messing something up which is fairly obvious... I installed B2 pretty much without a hitch. I had a lot less trouble with it than Movable Type. My problem is with the LJ update feature. I really want to be able to use that, because I have friends on LJ still, but I get an error every single time I try to post there through B2.

It says:

Fatal error: Call to a member function on a non-object in /[my correct directory]/public_html/b2-include/lj_update.php on line 237

It does post to my B2 site, but not to LJ.

I have no idea what this means. I've reinstalled B2 already once to try to fix this problem, but to no avail. Everything else in B2 seems to work smashingly well. Am I missing something?

Thanks!

--Jake

_________________
[color=darkblue:43b2db914a]"All generalizations are false."[/color:43b2db914a]
Back to top
View user's profile Send private message
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Wed Nov 06, 2002 7:53 am    Post subject: Reply with quote

Well, let's ask the silly questions...
1) which version of ljupdate did you apply?
2) Did the patch report any failures when you applied it?
3) Did you remember to run b2ljinstall.php?
4) Did you enter your LJ username and password into your b2 profile?

try installing this version and see if that give you better results.

There are some other possibilities, but let's start with the basics...
Back to top
View user's profile Send private message Visit poster's website
SirJake



Joined: 06 Nov 2002
Posts: 6
Location: NC

PostPosted: Wed Nov 06, 2002 8:08 am    Post subject: Reply with quote

That is the version I installed (b2-0.6.1-20021104+ljupdate-0.2).

There were no reported errors when I ran b2install.php. (I believe that does the same thing as running b2ljinstall.php if you're using the update for lj). Just to be sure, I just now ran b2ljinstall.php. It said the tables had already been created (does running it a second time mess things up?).

Yes, I entered my LJ username and password in the b2 profile.
_________________
[color=darkblue:43b2db914a]"All generalizations are false."[/color:43b2db914a]
Back to top
View user's profile Send private message
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Wed Nov 06, 2002 8:33 am    Post subject: Reply with quote

Ok - didn't know MV had loaded that copy up on SF yet.

Nope - running b2ljinstall.php a second time is safe.

is b2 hosted on a server that you control? I'm wondering if the problem could be an over-zealous firewall that blocks outgoing traffic that originates on your webserver. Give me a hour, and I'll come up with a test function or two.

I'm pretty sure the problem will be in the server config, but I'd like to be more precise than that obviously.
Back to top
View user's profile Send private message Visit poster's website
SirJake



Joined: 06 Nov 2002
Posts: 6
Location: NC

PostPosted: Wed Nov 06, 2002 8:46 am    Post subject: Reply with quote

Unfortunately, no, I don't control the server. I can change permissions (CHMOD) but that's about it. It does allow outgoing mail via PHP though (I can get comments through my mail from my PHP comments), and I know some servers/hosts don't, so is that helpful at all to know?

My site is hosted on www.wwwhubs.com if that's at all helpful.

I'll check back tomorrow.

Thanks!

_________________
[color=darkblue:43b2db914a]"All generalizations are false."[/color:43b2db914a]
Back to top
View user's profile Send private message
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Wed Nov 06, 2002 8:50 am    Post subject: a-Yup. Reply with quote

Well, I can reproduce your exact symptoms by blocking outgoing traffic from my apache installs. So, what do you do about it?

That's a good question. If you have control of the server, reconfigure the firewall/filters to allow outbound traffic for apache. If not, beg and plead with those who do have control to make the change. i'm not sure what, if any, other choices you have.
Back to top
View user's profile Send private message Visit poster's website
SirJake



Joined: 06 Nov 2002
Posts: 6
Location: NC

PostPosted: Wed Nov 06, 2002 8:55 am    Post subject: Reply with quote

OK, thanks for your help. I appreciate it. I'll check with my host and see if there is anything they can do.

Thanks again.

--Jake

_________________
[color=darkblue:43b2db914a]"All generalizations are false."[/color:43b2db914a]
Back to top
View user's profile Send private message
hellhound



Joined: 24 Oct 2002
Posts: 38

PostPosted: Mon Nov 11, 2002 3:29 am    Post subject: Reply with quote

wow i dream about it...
is there is a way i could add this stuff to my current version of blog?
Back to top
View user's profile Send private message
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Mon Nov 11, 2002 4:00 am    Post subject: Reply with quote

Well there's a distribution of 0.6.1 at sourceforge with the patch already applied. Or grab the diff from my site and use that.

If you need a more specific answer, you'll have to ask a more specific question.
Back to top
View user's profile Send private message Visit poster's website
hellhound



Joined: 24 Oct 2002
Posts: 38

PostPosted: Mon Nov 11, 2002 11:59 am    Post subject: Reply with quote

ok sorry me i was i little druked:))

im not english guy... i wont really install this addon and i have some questions... please..
iv got my blog now installed with some entries

Quote:
run the diff against yur b2 install. some thinking required.

what is diff? and and what is means against your b2 install
Back to top
View user's profile Send private message
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Mon Nov 11, 2002 2:17 pm    Post subject: Reply with quote

Diff is this.

Read. Learn. Grow.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 1 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group