Gregory McMullen
Forum Replies Created
-
Forum: Plugins
In reply to: [oEmbed Gist] Multiple Gists won't embedWeird that it’s not based on the URL but the file name. But that did it!
Thank you.
Forum: Plugins
In reply to: [Organizational Message Notifier] HTML For E-Mail NotificationI tried writing HTML inside of the textarea of the “template” and it just rendered all of the HTML tags.
My guess is that the MIME type is off (text vs HTML) but yes, I have the patience. I completely understand that this isn’t a money maker.
Thanks for the reply and have a great day!
Please stop posting the same information multiple times.
Forum: Fixing WordPress
In reply to: Add "via @username" to Tweet button? Using JetPack for WordPressRemove the @ and try again. It should work.
Zack. The via function in the URL code from the API forces it at the end. I don’t know f a way to remedy that.
And I realize, that I am talking about the sharing plugin, this post was regarding the twitter widget.
I built my own widget in my latest theme, so I don’t have a fix for the “official” widget.
I really want to apologize for the confusion.
Yes, that’s how I have it written and it works perfectly, until they update the plugin.
Where did you add the code? If you replaced the initial $via, try adding your line under it and seeing if it works.
Using that code, it works on my website.
Try here (it’s a temp fix, but works for now!)
Forum: Fixing WordPress
In reply to: Add "via @username" to Tweet button? Using JetPack for WordPressFigured out a method. If you go to the Jetpack.me website and use their twitter button, it works. Don’t ask me why, but it does.
Inside
sharing-sources.php
you’ll see that there is a functionsharing_twitter_via( $post ) { // Allow themes to customize the via return apply_filters( 'jetpack_sharing_twitter_via', '', $post->ID ); }
Well under that you’ll see
public function get_display( $post ) { $via = $this->sharing_twitter_via( $post ); if ( $via ) { $via = '&via=' . rawurlencode( $via ); $related = $this->get_related_accounts( $post ); if ( ! empty( $related ) && $related !== $via ) $via .= '&related=' . rawurlencode( $related ); } else { $via = ''; }
I just added
$via = "USERNAME";
and the code works and the button now pulls in the username.If I can figure out the theme option I will post that here as well.
Forum: Fixing WordPress
In reply to: Add "via @username" to Tweet button? Using JetPack for WordPressI’ve tried using the iFrame settings (https://dev.twitter.com/discussions/3946) and just by adding the text and it seems as though Jetpack throws out the customizations.
Sorry, but it seems like they are adamant about not letting us add usernames to the tweet button.
If you want the button with your username I would either just add a Follow button at the top of your site, or manually put the buttons below your theme (they give you that option in the settings).
This “setting” is truly an annoyance and I’m not sure why they are being so harsh about it.
Cheers!
Forum: Hacks
In reply to: Updating old widgets to the newer APII think I figured some of it out already.
I was looking for a “Recent Photos” using the media library and it was 2 years out of date. I’ll post some snippets to hopefully help you (and others) out.
Replace
function rp_widget_Admin(){ //Form Code }
With
function form($instance) { //Form code }
Any variables, make sure they are placed in the
$instance['']
array and called correctly. What I was using hadglobal $settings = get_option("widget_option");
I just replaced any $settings tag with instance[‘VarName’].
Hope this will help to an extent feel free to contact me if you have some questions.
Forum: Hacks
In reply to: Updating old widgets to the newer APIAny development on this? I’m also looking to do some work here.
What exactly do you need to do to create a custom template? Will it show up in “connections” or is it just knowing what the folder is called?
I’ve tried putting both a “test.php” and a “test” folder inside of the connections_templates with the shortcode
template='test'
but it said “template does not exist.”I’d love to be able to get a custom template in place for what we are doing. Any help would be appreciated.
Edit: I was able to get it to work. Thanks.