WordPress.org

Ready to get started?Download WordPress

Forums

myPress: WordPress -> Myspace crossposting (41 posts)

  1. mannkind
    Member
    Posted 9 years ago #

    myPress is a WordPress plugin that allows crossposting, editing, and deleting of posts from myspace.

    Now, there are only a few people that have used the script, so I would like some opinions, comments, feedback, etc.

    The code is based on the myspace wordpress hack, which was converted to a plugin. Which was then converted (using some skeleton code from croissanga) to allow editing and deleting. Next the options pane was added (with a few extended options), and finally, autogeneration of the required SQL table.

    You can find myPress at http://www.thenullpointer.net/wordpress/scripts/myspacepress

    I would love to hear any feedback people have to offer.

  2. overtech
    Member
    Posted 9 years ago #

    Script doesn't work in WP 1.5 and is poorly coded. You make an absolute reference to a directory structure that can only exist on your web server... at least briefly check your script for compatibility before making public.

    The script also keeps trying to create a table that already exists, even after following the proper method of setting up the script as displayed on your blog.

    Also, if you want comments, how about enabling comments on your WP?

  3. mannkind
    Member
    Posted 9 years ago #

    overtech, perhaps you should try some constructive criticsm before being a jerk.

    The script works in 1.5. Obviously I'm using WordPress 1.5, I've done many tests on fresh wordpress installs, and I have had feedback from many people using WordPress that it works fine.

    First there is absolutely NO absolute path being used that is directly related to my blog. There are two references to an absolute path. The first is in the readme/download page, the other for the cookie in the Options page. Let me just say, for the record, that these are examples, and obviously need to be changed by the user.

    Readme/Download Page: There is an abs path reference to /blog/wp-content/... blah blah blah. This is not even how my site is laid out. Perhaps you should have looked at the URL before accusing me of this.
    I put the /blog/ in because people seemed troubled by wp-content/plugins. I received a few emails asking for an full example path. So I gave it to the users. I fail to see how an example full path fails the compatibility test.

    Options Page: The second full path is on the options page. /tizemp/. Do you think my host has /tizemp/. This obviously needs to be changed by the user. Perhaps I should change the default to something like /you/need/to/change/this but... nobody yet (besides you) have commented on this. If I get a few more comments about it, I would gladly change it. As it stands, it doesn't seem to be a problem for most users.

    Creation of the SQL table: You are correct, the script *checks* to see if the table is created, and if not, creates it. I do suppose a button could be installed on the Options page saying "create SQL table" but, I was trying to make things transparent for the user. I had many people write and ask how exactly they should use the .sql script that was included in previous versions. It was obvious users didn't know how to do it, so I thought I would make it automatic.

    I do wish your criticsm would have been construtive rather than rude. I tested the code on my wordpress install, a family member's wordpress install, and on many fresh wordpress installs. They all worked without a hitch. Versions ranged from 1.5.1 to (now...) 1.5.1.3.

    As far as 'comments' go... I do have comments enabled on WordPress. I don't have them enabled on the download page because I'd rather it not become cluttered with comments. However, there are plenty of frontpage posts dealing with mypress as well as email. Again, please try to make criticisms construtive, and try to think of why I *may* have made certain decisions with *my* website. Just because it doesn't conform to how you *think* I should have done it doesn't mean it is wrong.

    If you have [constructive] criticism, I would be glad to listen. If you are just going to complain because I am trying to provide something that many users want in an easy to use fashion that you just cannot comprehend, don't bother.

  4. Michael Bishop

    Posted 9 years ago #

    How weird. Both posters have sites that are either completely not there, or 404 errors.

  5. ifelse
    Member
    Posted 9 years ago #

    "overtech, perhaps you should try some constructive criticsm before being a jerk."
    Really? I felt that Overtech was quite fair with his comments esp. WRT to table creation. There's no need to get defensive.

  6. mannkind
    Member
    Posted 9 years ago #

    ifelse - how is this even remotely constructive? - "Script doesn't work in WP 1.5 and is poorly coded ... at least briefly check your script for compatibility before making public"

    I think that is pretty insulting. I did check the script, *a lot*, before releasing it. I used many installs of wordpress and used other people's installs as test beds. I also have had feedback from people using it that it works in 1.5. And *I* use 1.5. The above quote is *not* constructive .

    WRT to table creation, he is probably *seeing* it try to create the table because he has *not* installed it as the instructions example. Yes, the script checks for the table, and if it doesn't exist, trys to recreate it. Automatically, without user intervention. Obviously if the plugin *isn't* installed correctly the user will see the error trying to check/install the table. If it were installed correctly the user wouldn't see it.

    I can verify both of these things by simply moving the mypress folder one level up. From wp-content/plugins/mypress/mypress/*
    to wp-content/plugins/mypress/*
    and I get weird option errors AND I get errors about it trying to use the fuctions to check and create the table.

    I'm really not defensive, but rather shocked that I could put quite a bit of work into something, and have someone basically say "it sucks", seemingly because they fail to comprehend what an 'example' is and how to follow instructions.
    Now it's fine for him to think that the plugin sucks, but the above quote is espeically rude. I asked for constructive critism, not "it sucks" criticsm.

    The truth is that it *does* work with 1.5.1->1.5.1.3, and I did many hours of testing, deployment testing, user testing. You see errors when it is not installed correctly.

    There is a *chance* there is a conflicting plugin. However, overtech doesn't bother to provide any information, anything helpful, except basically that "it sucks".

    As far as the site 404's, I do appologize. I just received an email from the admin about it. The site should be back up and running now.

  7. DaveQ
    Member
    Posted 8 years ago #

    I would like for the plugin to work with my future posts. Rigth now anything I post in the future on my site is posted instantly on MySpace. Any poitners?

  8. noforker
    Member
    Posted 8 years ago #

    I'm not having any luck getting posts made in WordPress to show up in my MySpace page. I'm using WordPress 1.5.2. Is MyPress compatible with WordPress 1.5.2?

  9. vitruvius
    Member
    Posted 8 years ago #

    I too, haven't had any luck with the crossposting.

  10. sjchase
    Member
    Posted 8 years ago #

    ditto

  11. sjchase
    Member
    Posted 8 years ago #

    okay i've narrowed down the problem with mypress but i don't know how to fix it. it seems to be the admin and driver php, i think it it's the get_option ( ) but i don't know where to go from there. my browser says it's line 3. anyone?

  12. westondeboer
    Member
    Posted 8 years ago #

    i have been using this plugin since it first got released and have no problems at all with it, i don't understand how you people are having problems with it.

  13. sjchase
    Member
    Posted 8 years ago #

    dude, look i would love for it work, i wish i didn't have a problem, but i do and i'm here looking for help. all i know is that all i get when i use this plugin is a screen that says: "Fatal error: Call to undefined function: get_option() in /home/sjchase/public_html/wp-content/plugins/mypress/mypress_files/mypress-driver.php on line 3" and that's it no cross posting no nothing. so thanks for your help. maybe i got a bum version i don't know i updated my wordpress to 1.5.3 and tried installing and redownloading the plugin twice. if you have any constructive suggestions let me know. but the best i can tell there is an error in the code, if you have an error free version of the code please email it to me: kimchi08red@yahoo.com

  14. cloak42
    Member
    Posted 8 years ago #

    I may not be getting any errors, but neither am I getting any posts on MySpace. I guess the questions I have are these:

    1. Is there supposed to be any kind of option on the "Write Post" page that will show me anything to do with the MyPress plugin? I have already updated the Options page with my username and password and everything, but there isn't anything in the Write page that's telling me that my blog is even attempting to update MySpace. At least Live+Press has stuff listed there. :)

    2. Here's the output from the database:
    mysql> select * from myspace_wp_post_map;
    +----+---------+------------+
    | ID | post_ID | myspace_ID |
    +----+---------+------------+
    | 1 | 26 | |
    +----+---------+------------+

    That's it. Any clues as to why it would be doing that? At the very least, it seems to be telling me that, as I had thought, it hasn't even attempted to post anything.

  15. rhondalicious
    Member
    Posted 8 years ago #

    Can you run this and Live+Press at the same time? I was hoping to be able to, but I'm also posting, and nothing goes over to myspace. No error messages, but also no posts.

  16. westondeboer
    Member
    Posted 8 years ago #

    i have also had problems with both of them working, so i disabled livepress.

  17. blackc2004
    Member
    Posted 8 years ago #

    Has anyone been able to get this working in synch with livepress? I Want to be able to cross post to both my myspace and lj!

    Thanks

  18. sini
    Member
    Posted 8 years ago #

    hmm, I could be missing something ..

    I've just set up mypress, works just fine for me.

    but, I would like the posting to myspace to be NOT automatic. I would like, perhaps a checkbox 'post this to myspace' or something. not everything that goes in my wordpress do I want automatically on my myspace.

    am I just blind?

  19. blackc2004
    Member
    Posted 8 years ago #

    From the looks of it, the major problem is using livepress and mypress working together.

    Any ideas?

  20. citizenkeith
    Member
    Posted 8 years ago #

    I am using MyPress and Live+Press at the same time and have no problems at all. That is, I didn't have problems until after I realized that there were MyPress options in the Dashboard. Doh! Otherwise, how would MyPress know who you are on MySpace?

    Check the directory path for the plugin, and make sure you fill out those options.

  21. rhondalicious
    Member
    Posted 8 years ago #

    Well, I put the mypress folder inside the plugins folder, filled out the options page for it, and nuffin. I see that it did create the table "myspace_wp_post_map" and it's got 62 posts in there (apparently all the ones I've done since installing the plugin) - but none of them seem to be making their way over to MySpace.

  22. JesseChina
    Member
    Posted 8 years ago #

    Thanks for the plugin.

  23. jonefoley
    Member
    Posted 8 years ago #

    The MySql table has been created and there is a corresponding MySpace Id for the WordPress ID, however the post has not actually appeared on MySpace, any thoughts? Im using WP 1.5.2.

  24. iamdw
    Member
    Posted 8 years ago #

    jonefoley - i'm in the exact same boat as you ...
    wish their were an official word from mannkind but after much digging on his site and elsewhere, i believe the problems lie with myspace.com modifying their code in order to break handy plugins and orher such outside of myspace utilities. Last note i found from developer was a reply to a post on sept. 19th (scroll a page or 2) @

    http://www.thenullpointer.net/wordpress/updates-mypress-mindpress-new-guardersnake-applescripts-adiumlocation-mountbylocation/#comment-80

    looks like we'll have to wait for myspace to cooporate with 3rd party, though it only seems less likely with their growth and new more corpotate mentality but who knows...

  25. chaoswarp
    Member
    Posted 8 years ago #

    I have been messin around with this plugin. It seems myspace added a hash to the blog entry page, that changes everytime you visit. Work around for now.. until I can post this somewhere better is as follows:

    Line 188: mypress-driver.php
    INSERT:

    //hash fix
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://blog.myspace.com/index.cfm?fuseaction=blog.create&editor=true");
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
    $p = curl_exec($ch);
    curl_close($ch);
    $search = "input type=\"hidden\" name=\"hash\" value=\"";
    $pos = strpos($p, $search) + strlen($search);;
    $next = strpos($p, ">", $pos) -1;
    $s = substr($p, $pos, ($next-$pos));
    $hash = $s;
    $post_params .= "&hash=$hash";
    //end hash fix

    That should fix it up. Simply pulls the hash code out of the webpage and adds it to the post variables. Sneaky sneaky...

    Also for the problem addressed above about the missing myspace_ID in the DB. You want to make sure that you actually create the cookie file and give it permissions to be written to. It needs to be located in the directory you set in your options, and at default filename is 'mySpace_tehCookie'.

    Hope this helps... I was able to get it working with WordPress 1.5.2 and this hack.

  26. iamdw
    Member
    Posted 8 years ago #

    chaoswarp
    Excellent work! I had been able to get crossposting to work for a single post, but after posting a second time, the 1st was deleted. This workaround works perfectly for me. Hopefully it will last for a bit 'til myspace decides to break things once again. Thanks again!!

  27. chaoswarp
    Member
    Posted 8 years ago #

    I posted this hack so if anyone uses it and has any problems please contact me. All the files you need are here also...

    Thanks, :)

    http://www.rossgerbasi.com/?p=130

  28. spencerp
    Member
    Posted 8 years ago #

    YES!! It works great for me so far lol!! Thx alot for this! =)

    twistedsociety666: YES!! IT FLUCKIN WORKS!!
    twistedsociety666: http://www.myspace.com/thevindictivebastard
    twistedsociety666: and http://www.vindictivebastard.net/blog

    spencerp

    P.S. If I happen to run into posts being deleted or something though, I'll let ya know to... just hope they don't.. <knocks on wood> lol.. UPDATE: It hasn't deleted anything as far as I know.... again this is awesome and thanks!!

  29. firehead
    Member
    Posted 8 years ago #

    the workaround worked once, then it stopped working ...

    I don't understand

    SEAN

  30. rhondalicious
    Member
    Posted 8 years ago #

    Well I couldn't get the workaround to go, and then I noticed that XrisXros is supposedly the replacement to MyPress, but that doesn't do anything either...

    Is there something we have to do on our end to make/store a cookie? If so, what?

    Edit: also, XrisXross broke my LiveJournal plugin...

Topic Closed

This topic has been closed to new replies.

About this Topic