Forum Replies Created

Viewing 15 replies - 1 through 15 (of 40 total)
  • Thread Starter twistedsymphony

    (@twistedsymphony)

    Thanks for that!

    I’ve been tearing my hair out trying to figure this out. this seems like a legit bug in wordpress. If you look at the gallery placeholder in on the page the link=”file” option is missing when it’s first generated, once you switch to attachment page then back to file it forces WP to generate that code.

    I’m going to hold off on the finkaboutit solution for the time being as I really don’t like modifying core WP files if I can avoid it since it breaks every time you update to the latest version.

    Thread Starter twistedsymphony

    (@twistedsymphony)

    you don’t need to worry about that… 100% of the function text should be in the editor window just use CTRL+F to find the line.

    Thread Starter twistedsymphony

    (@twistedsymphony)

    The modification is the main plugin file: tumblrize.php
    It can be modified using WordPress’ built in plugin editor.

    For what it’s worth: I’ve been running with the modified version for the last 3 weeks, a few dozen post have been re-posted to tumblr with zero issues.

    Thread Starter twistedsymphony

    (@twistedsymphony)

    ok after posting above I decided to spend a few minutes browsing how the Tumbler API worked, and then digging through the code. I found the root of the problem to be the way he modifies the post body before sending it to Tumblr.

    for whatever reason he strips out quotes which screws up html tag parameter, and uses entity decode for a reason I don’t understand.

    Also he uses shorthand string concatenation all over the place which upon trying to reactivate the plugin, wordpress was not happy. (is it really so hard to end quote and put a . for superior compatibility? really?)

    Anyway… for me replacing this line:

    $post_body = wpautop(str_replace('\"', "", html_entity_decode($post->post_content)));

    with this:

    $post_body = wpautop($post->post_content);

    For me this made all of my error 500 problems disappear

    Use this fix at your own risk… I take no responsibility for anything you do with this information

    Like I said, I don’t know why he was using “str_replace” to remove quotes or why he was using “html_entity_decode” so I don’t know what problems he might have been trying to fix with those…

    Thread Starter twistedsymphony

    (@twistedsymphony)

    no progress here… still problematic, I still haven’t even figured out what triggers it…

    I really wish the plugin author would chime in 🙁

    Thread Starter twistedsymphony

    (@twistedsymphony)

    I have not found the answer yet, nor have I found any rhyme or reason to the errors… some posts work, others refuse to.

    FWIW my site has editors from all over the world writing posts, my posts seem to go through fine (I’m the only Admin) but it’s the posts from the other editors that seem to have issues (some work, some don’t).

    wrighting directly to the DB should work if you know all the tables and fields you need to hit… I wouldn’t recommend it though.

    this topic is of use to me as well and looking through the function list I quickly found this function:
    http://codex.ww.wp.xz.cn/Function_Reference/wp_insert_post

    it works for pages as well as posts.

    I don’t know how much use it is to the OP but I found it useful and hopefully the next time someone searches this topic they’ll see this.

    Thread Starter twistedsymphony

    (@twistedsymphony)

    I still haven’t resolved this issue… the XLM-RPC looks like it should work, but I’ve yet to find any good documentation on how to use this for my needs.

    I know my way around php pretty well at this point but the XLM-RPC stuff is just over my head. I’d need a good breakdown of how it works or an example of a similar use.

    @boldizar:
    for my site: http://collectorsedition.org I have A LOT of pictures in my posts… typically I insert the images with no alignment option (under the gallery browser I select “none” under alignment)

    Then once it’s in the post I center it with the justification options in the WYSIWYG editor.

    If I have more than one image or thumbnail per line I’ll view the post in HTML mode and insert a single space between each of the images, the editor interface always screw this up which is why I do it in HTML mode… I’m usually pretty happy with the results.

    Checking through the post in HTML mode is good practice where formatting is key because it does some wonky shat sometimes..

    I don’t use the descriptive image text, I upload far too many pictures to write descriptions for all of them, and it doesn’t really bode well with the theme of my site.

    I’m not 100% sure what you mean by “leaving a nearly full line of empty space” but hopefully what I’ve posted about my own process will help you out.

    Thread Starter twistedsymphony

    (@twistedsymphony)

    Phoat, if you change the design of your site… and the setting for the sizing of medium and thumbnail images it wouldn’t matter what the name of the file is in your post… because you’d have to go back through and regenerate all of the medium and thumbnail images ANYWAY… think about it, it’s not done on the fly, it’s done on upload… at that point changing the file name is trivial.

    As a personal update, I’ve been using the method outlined by Otto42 above and it’s worked exactly as I’ve needed it. Thanks again.

    Thread Starter twistedsymphony

    (@twistedsymphony)

    any help would be appreciated…

    I still need a method to :
    create a new page with the following properties:
    -specific title text
    -specific parent page
    -specific template

    and get the newly created page ID in return…

    XML-RPC doesn’t seem like it’s flexible enough to do that, not to mention I can’t find any reliable documentation, never mind something that covers the specifics of what I’m looking for.

    After looking it over it would seem that the way the plugin is written it works great in IE6 but it doesn’t work in FF3.

    the Javascript snippet that separates out the submit button and inserts the Captcha in before it throws and error in FF3

    EDIT: I discovered that the reason it wasn’t displaying properly is because the theme I was using was missing an ID property for the submit button.

    id="submit"

    I suspect that IE6 grabs perhaps the name tag but FF must use the id… so both would need to be present for cross compatibility. adding the above line to the submit tag made the captcha place properly.

    on mine it sits BELOW the post button… which sucks because users who don’t scroll down all the way click submit and fail the captcha… which then deletes their comment.

    ideally it should go before the post button failing that before the comment section altogether

    Thread Starter twistedsymphony

    (@twistedsymphony)

    OK I’ve read through all the XML-RPC stuff I can find and I’ve found a few examples of how to create a “post” with an older version of WP, none of which seem to work now… i haven’t found any information about creating a “page” with it though, which is what I really need to do…

    basically i have a PHP app separate from WP, I know everything about what I want to publish to my WP page I need to be able to set at least these three parameters: title, parent page, and template

    things that I don’t need to set but might be handy:
    page content, permalink, custom fields, author.

    and I need to know the WordPress ID of the newly created page. Notice that I don’t need to actually set the content, this is because the template I’m using connects to an external database and populates a lot of content for me… most of the time when I create these pages the actual page content is empty.

    I’m getting to know PHP pretty well and I’ve made a few small WP plugins and written a handful of database driven we sites, but this XML-RPC stuff is above my head and I’m not even sure if it can do what I want it to do.

    Is there any documentation or example code for creating a WP page with the currently used version of xml-rpc?

    Is there an alternative method I can use if this doesn’t work?

    Thread Starter twistedsymphony

    (@twistedsymphony)

    thank you Otto42, that was pretty much the solution I was looking for at the beginning but I couldn’t find it documented anywhere and no one seemed to know about it either.

    I’ll look into that and see if I can get it to do what I need it to do 🙂

Viewing 15 replies - 1 through 15 (of 40 total)