We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Request- 'Post to LJ' plugin/module...

Development and Programming

Lisa Wess's avatar
Lisa Wess
20,502 posts
20 years ago
Lisa Wess's avatar Lisa Wess

You could put this into an EE template and then create a quicklink to the template. But for change s to the actual publish screen, you’d have to make a feature request and see what happens. =)

       
Adrienne L. Travis's avatar
Adrienne L. Travis
213 posts
20 years ago
Adrienne L. Travis's avatar Adrienne L. Travis

Having an issue. I can use the plugin okay to start with. I copied the templates, included the XML-RPC library, it all works. I can even post a TITLE to LJ – that all works.

However, when i try to post the body of an article, which is in a field called “Jbody”, everything blows up. That is, both places in the “post” template where there’s a {body} line, i changed that to {jbody}. Then i get the following error when trying to view the template:

Parse error: parse error, unexpected T_STRING in /home/(MY HOME DIRECTORY)/system/core/core.functions.php(541) : eval()’d code on line 174

It won’t render the post template at all, just gives me the error.

Can anyone shed some light?

Thanks! –Adrienne

       
Adrienne L. Travis's avatar
Adrienne L. Travis
213 posts
20 years ago
Adrienne L. Travis's avatar Adrienne L. Travis

Okay, never mind. I fixed it myself, and in the process i think i have a better way to do things (at least for me), so i thought i’d post it.

I use Markdown and Smartypants to deal with my entry formatting, rather than the XHTML module, and this module-thingy didn’t deal with that. Not to mention the strange parse error, which seems to actually be related to the htmlentities() function, but i can’t figure out how. So here’s what i did:

Underneath these lines: Title: {title}{if segment_3 == "s"} <b><font color=”green”>POSTED TO LJ!</font></b>{/if}

<br>

I put this, instead of just {body}:

{exp:smarty_pants} {exp:markdown} {jbody} {/exp:markdown} {/exp:smarty_pants}

That way it displays on screen the actual formatting of my entry. Then immediately underneath THAT, i did this:

<?php $test = ‘{exp:smarty_pants}{exp:markdown}{jbody}{/exp:markdown}{/exp:smarty_pants}’; ?>

So far, so good.

Then, on the line that originally read

$sum2 = htmlentities(‘{body}’);

I substituted this instead:

$sum2 = htmlentities($test);

Then I let it do its string replace stuff to give me HTML entities back in place of smart quotes.

That worked for me, and lets me use Markdown! Just thought it might be helpful to someone else.

–Adrienne

       
spacey310's avatar
spacey310
17 posts
20 years ago
spacey310's avatar spacey310

I wrote a little plugin that will convert some of the LJ-specific tags into HTML so that you can display them on your EE site. It’s available for download here, if anyone is interested. Also if you do try it out let me know if you don’t understand the documentation, because it’s kind of confusing. 😊

       
NightVixen's avatar
NightVixen
7 posts
20 years ago
NightVixen's avatar NightVixen

HI spacey I downloaded Teh file but it has no Docos with it.. Where do i put the PHP file which is all that is within the zip.?

       
spacey310's avatar
spacey310
17 posts
20 years ago
spacey310's avatar spacey310

You upload the php file into your system/plugins folder. The docs are in the php file itself, but if you want to read it online I pasted it here.

       
NightVixen's avatar
NightVixen
7 posts
20 years ago
NightVixen's avatar NightVixen

Oh Thanks..

       
NightVixen's avatar
NightVixen
7 posts
19 years ago
NightVixen's avatar NightVixen
I wrote a little plugin that will convert some of the LJ-specific tags into HTML so that you can display them on your EE site. It’s available for download here, if anyone is interested. Also if you do try it out let me know if you don’t understand the documentation, because it’s kind of confusing. 😊

While Fubbling thru Old Post I Finally discovered what I’m Hunting for, However teh URL - http://www.ennovy.org/misc/ee/pi.ljformat.zip no longer works and I was wondering do you have this still available? I used to use it and I found it brilliant to use, Is there a way i can get this again?

       
spacey310's avatar
spacey310
17 posts
19 years ago
spacey310's avatar spacey310

My site is down due to that power outage in LA. :shut: Hopefully it’ll be back up soon and then you can download it.

       
spacey310's avatar
spacey310
17 posts
19 years ago
spacey310's avatar spacey310

Site’s back up, but the file location has changed, you can get it here.

       
Nelson @ Evoflux's avatar
Nelson @ Evoflux
32 posts
17 years ago
Nelson @ Evoflux's avatar Nelson @ Evoflux

I know this is an old post, but this is exactly what I needed. I originally came from LJ and have found myself posting there while I’ve been updating and completely redoing my current site. Thank you for this.

       
alex7's avatar
alex7
130 posts
17 years ago
alex7's avatar alex7
I know this is an old post, but this is exactly what I needed. […]

Well… I’m the one who need this too. Many thanks for this plugin! (So, I did not try it yet.) Nevertheless, I wander – why not to put this link into EE wiki or knowledge base? I looked for this info long time already and found it accidentally reading this tread. 😛

       
spacey310's avatar
spacey310
17 posts
17 years ago
spacey310's avatar spacey310

It’s there, in the Modules page in the wiki.

       
alex7's avatar
alex7
130 posts
17 years ago
alex7's avatar alex7

Hmmm… I see it now. Somehow missed it.

Tried it… Didn’t work for me. I think it’s incompatible with MSM or something.. I killed four days trying to make it work and finally removed it from a system. :sick:

       
alex7's avatar
alex7
130 posts
16 years ago
alex7's avatar alex7
[…] Tried it… Didn’t work for me. I think it’s incompatible with MSM or something.. I killed four days trying to make it work and finally removed it from a system. :sick:

Well, still interesting in this module. Is there somebody who uses it with MSM installed?

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.