View previous topic :: View next topic |
Author |
Message |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Fri Nov 01, 2002 10:09 pm Post subject: Update a LiveJournal from b2 |
|
|
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 |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Sat Nov 02, 2002 1:19 am Post subject: |
|
|
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 |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Sat Nov 02, 2002 5:56 am Post subject: |
|
|
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 |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Sat Nov 02, 2002 11:58 pm Post subject: ljupdate-0.2 |
|
|
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 |
|
 |
SirJake
Joined: 06 Nov 2002 Posts: 6 Location: NC
|
Posted: Wed Nov 06, 2002 7:32 am Post subject: Problem with LJ post... |
|
|
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 |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Wed Nov 06, 2002 7:53 am Post subject: |
|
|
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 |
|
 |
SirJake
Joined: 06 Nov 2002 Posts: 6 Location: NC
|
Posted: Wed Nov 06, 2002 8:08 am Post subject: |
|
|
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 |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Wed Nov 06, 2002 8:33 am Post subject: |
|
|
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 |
|
 |
SirJake
Joined: 06 Nov 2002 Posts: 6 Location: NC
|
Posted: Wed Nov 06, 2002 8:46 am Post subject: |
|
|
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 |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Wed Nov 06, 2002 8:50 am Post subject: a-Yup. |
|
|
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 |
|
 |
SirJake
Joined: 06 Nov 2002 Posts: 6 Location: NC
|
Posted: Wed Nov 06, 2002 8:55 am Post subject: |
|
|
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 |
|
 |
hellhound
Joined: 24 Oct 2002 Posts: 38
|
Posted: Mon Nov 11, 2002 3:29 am Post subject: |
|
|
wow i dream about it...
is there is a way i could add this stuff to my current version of blog? |
|
Back to top |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Mon Nov 11, 2002 4:00 am Post subject: |
|
|
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 |
|
 |
hellhound
Joined: 24 Oct 2002 Posts: 38
|
Posted: Mon Nov 11, 2002 11:59 am Post subject: |
|
|
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 |
|
 |
Mister44

Joined: 31 Oct 2002 Posts: 237 Location: Philadelphia, PA, USA
|
Posted: Mon Nov 11, 2002 2:17 pm Post subject: |
|
|
Diff is this.
Read. Learn. Grow. |
|
Back to top |
|
 |
|