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
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
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. 😊
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.
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?
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. 😛
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.