Andrew Norcross
Forum Replies Created
-
Forum: Plugins
In reply to: [YOURLS Link Creator] The YOURLS API is currently NOT accessible.issues with the API not being accessible are on the server-side, usually in the YOURLS settings itself and not the plugin directly.
Forum: Plugins
In reply to: [YOURLS Link Creator] problem in bbpressare you trying to have the topic get auto-created on the front-end of the site when a user posts a new topic, or the back-end admin?
Forum: Plugins
In reply to: [YOURLS Link Creator] Localize Pluginsorry for the delay on this, I can go through and see what I’m missing in terms of localization.
also, the plugin is on GitHub if you wanted to submit a PR: https://github.com/norcross/yourls-link-creator
Forum: Plugins
In reply to: [Publish To Apple News] Where are the articles going to???@ronpod – this error indicates your host has blocked the PHP methods (in this case, it’s
file_get_contents()function) that the plugin requires to work. you’ll need to have your host enable that.Forum: Plugins
In reply to: [Publish To Apple News] Errors and layout issuesalso look at the
apple_news_component_text_stylesfilter, which passes all the styles. you can mod any of the existing ones (or add new ones) there.Forum: Plugins
In reply to: [YOURLS Link Creator] Changing base of shortlinks (new domain, old links)exactly what @aminima said. most of the changes would be done outside of the plugin itself, and there’s no plans to add anything to change those links globally.
it’s hard to say without seeing the entire function you have built for the social stuff, but the below code would create the shortlink as a variable that you can use later:
<?php global $post; $yourlslink = get_yourls_shortlink( $post->ID, false ); ?>so you could just echo it out later.
Forum: Plugins
In reply to: [YOURLS Link Creator] Changing base of shortlinks (new domain, old links)The plugin itself only stores the URLs generated from YOURLS, so if you change the location of your install (and the domain associated with it) then you will need to do two thing:
- Update all the existing links stored on the WP install
- Set some sort of global redirect from the old subdomain to the new smaller domain
The first item would be updated in the WP database, the 2nd would be done outside of WP itself.
Forum: Plugins
In reply to: [YOURLS Link Creator] Yourls url for achivesit may be possible now that term meta is built into core, beforehand it wasn’t doable without using a hack or other plugin. I’ll add to the feature requests in github
Forum: Plugins
In reply to: [YOURLS Link Creator] how to edit the style of showig the shortlink?great!
Forum: Plugins
In reply to: [YOURLS Link Creator] Add Google Analytics Event Tracking@rikk03: if you have an issue or feature request, please open a new thread.
Forum: Plugins
In reply to: [YOURLS Link Creator] Follow up re your kind mod/updatethe function name didn’t match.
add_filter( 'manage_posts_columns', 'rkv_post_column_items' ); function rkv_post_column_items( $columns ) { // Remove the column unset( $columns['yourls-click'] ); // Send back the array of columns. return $columns; }that should do it.
Forum: Plugins
In reply to: [YOURLS Link Creator] Turn off function to add clicks to admin in WPok. I just pushed an updated version. Update your version, then use the following code:
add_filter( 'yourls_run_cron_jobs', '__return_false' );and never modify the source code, it’ll get wiped out with any subsequent changes.
Forum: Plugins
In reply to: [YOURLS Link Creator] Turn off function to add clicks to admin in WPI can add something to disable the cron jobs via filter. For the admin count column, you can add this to your functions file:
add_filter( 'manage_posts_columns', 'rkv_post_column_items' ); function post_column_items( $columns ) { // Remove the column unset( $columns['yourls-click'] ); // Send back the array of columns. return $columns; }OK. using your code, I would do something like this:
<a href="http://twitter.com/home?status=(echo-TITLEHERE) <?php get_yourls_shortlink( get_the_ID(), true ); ?> @send2press" title="Share on Twitter" target="_blank" class="btn btn-twitter"><i class="fa fa-twitter"></i> TWEET</a>