Andrew Norcross
Forum Replies Created
-
Forum: Plugins
In reply to: [YOURLS Link Creator] How to use YOURLS shortlink in theme php@prokopino I’ve just added a template tag in the 1.06 release. To use in your theme, just add
do_action('yourls_display');anywhere within the post loop.I’ve included a ‘delete’ function on the single post metabox that’ll delete it from the WP database (thus allowing you to grab the updated one from YOURLS)
there’s a few things there, so let me address them one by one:
- updating existing URLs: there isn’t a native way to delete shortlinks in the YOURLS API, so I hadn’t thought about it from the WP side. I can look to see how to best handle updating an existing URL (even if it’s just to delete it from WP)
- Using default WP link: I’m not sure why you would want to do that. Can you give me a use-case?
Forum: Plugins
In reply to: [YOURLS Link Creator] How to use YOURLS shortlink in theme phpI’m adding a template tag in the next release and will include that in the readme file.
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?@RevVoodoo interesting enough, when I ran it is said “success” followed by “error” which I’m working on now. it did then convert the existing keys, so there is a bug in the error checking.
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?OK, took a look, and the example post you mentioned didn’t have an ‘old’ short URL stored in the DB. Not sure why, but that’s what came back. I ran the converter and it looks like it updated posts:
http://voodoopress.com/win-a-free-membership-to-elegant-themes-from-voodoopress/
now has a correct short URL. There are some small tweaks I need to do on the plugin to fix some other stuff, but you may just need to manually fix those few that don’t have one.
I also will be including a ‘bulk’ uploader for people who want to set that up as well.
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?@RevVoodoo – got it. taking a look now.
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?@starrwulfe can you open this issue in a new thread so we can keep the information / response separate?
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?awesome. I’m guessing there’s a conflict somewhere else, but I’d wanna debug with all the tools I can to find the culprit. I’m working with Ozh to have my plugin become the ‘official’ one, so I figure this will help others as well. thanks!
you can use the email address norcross AT reaktivstudios.com
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?hmmm….struggling to find the problem. tested on a few sites, and all are converting the keys properly. any chance you can set me up with a temp admin user so I can debug the back-end to find out why they keys aren’t changing?
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?got a post that it isn’t showing up on that I can compare to the working test post?
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?I’ll need to do some more testing then.
Forum: Plugins
In reply to: [YOURLS Link Creator] possibility to cloack other links in our postsif they are affiliate links, then you’d be want to use the same link each time, correct? I can look at possibly adding the ability to convert a link inside the content (with a TinyMCE button, perhaps) but there would be some refactoring involved.
Forum: Plugins
In reply to: [YOURLS Link Creator] Should this plugin grab existing Yourls short URLs?hmm, it’s firing on my dev site. are you using Jetpack or something else that may also use the shortlink function? (make sure that the other YOURLS plugin is disabled)
also, check to see if the old plugin was using
yourls_shorturlas the postmeta key for the short URL. that’s what I saw in the code, and that’s what is being converted.otherwise, if you wanna shoot me a login, I can look closer.
Forum: Plugins
In reply to: [YOURLS Link Creator] problem after updating in version 1.02glad to see you got it resolved!