fabian.schmid
Forum Replies Created
-
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrHere’s the altered code. It’s not perfect either, just done very quickly. But you’re right, I think it makes sense to post it here, so people who might be interested in it can find it here. http://codeviewer.org/view/code:5097. All changes are marked with
START/END post standard format with featured image.Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrYes, as it should. But then, maybe you don’t want your post to be displayed as an image, but only have the featured image crossposted. Therefore, I also don’t think, that changing the post format for all posts would be a good solution for this.
I’m not sure if you understand what I have done. I have added an option, that can be turned on in the plugin’s settings, if the user feels like it suits their needs. It can then be overwritten on a per-post basis, like the use_excerpt option.
I don’t really have any intention of publishing a separate plugin here. Also, for my website, I prefer to have as little plugins installed and activated as possible to keep things clear and keep track of everything. I simply implemented what I needed the plugin to do, additionally to its existing features. And, as the WordPress community is based on people sharing their stuff for other people to use, I posted it here.
In the end, I guess, some people who want this feature, might be able to find this post and can always just ask about it.
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrYes they can. You know, changing the post format might change how a post looks in many themes. Also, changing every post to the image format can be a bit annoying after a while. These are the reasons for my adding this feature.
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrOf course, that’s right. I still think many people might appreciate to have the featured images crossposted. But no point in discussing this any further.
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrI don’t think that users expect the standard posts to be crossposted without any images though. At least I, as a user, don’t. A good many blog posts contain images these days, especially a featured image, without exclusively being about the image (which is why they don’t have the “image” format assigned). I believe that this additional feature (that doesn’t take away anything, since it can be turned on and off and hence won’t force users to have images crossposted, but merely allows them to) might help some users.
No need to be sorry, though, as my problem is solved and my crossposting works the way I want it to now.Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrHey Meitar,
I’ve implemented an additional option to your plugin. It turns on or off a feature that crossposts using Tumblr’s post type “photo” instead of “text” for WordPress posts of the type “standard”. It works exactly like you have implemented it for the WordPress post type “image”/”gallery”, but in case there are no images in the post and it has no featured image either, it falls back to posting in “text” type to Tumblr.
If you are interested in adding it to your plugin, I can send the updated file, marked with comments where I placed new code, to you. It’s quick and simple, but it should work.
Fabian
Forum: Plugins
In reply to: [WordPress Crosspost] Sync posts from source blog to destination blog?Alright, thanks, I might have a go at it in a couple of days.. gonna let you know if I will come up with anything usable;)
Forum: Plugins
In reply to: [WordPress Crosspost] Sync posts from source blog to destination blog?Thanks, Meitar, for your quick and helpful reply!
Regarding the deleting part: I wasn’t going to delete the post in the source blog, but only in the destination blog, by removing the non-crosspost category. Say I forgot to add this category to a post that I only want to have in the source blog, not in the destination blog. So I’d like to add the category, instead of logging in to the destination blog and deleting the post there. But never mind, this is a nice to have!
What concerns me more by now is that I can’t manage to crosspot the featured images. Is there a way to achieve this?
Thanks so much!
Forum: Plugins
In reply to: [WordPress Crosspost] Sync posts from source blog to destination blog?Oh, I just found in the FAQ that this should actually work. Tried it again and it worked this time. Gonna ask again, in case I will have any problems with it again. This is for the editing part. The “delete crossposted post when adding non-crosspost category to source post” issue is not solved.
And one more question by the way: Is there a way to crosspost the featured image as well?
Thanks!
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrI agree, it’s offtopic here. So thanks for answering the original question.
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrI understand this. My question was, without criticizing, concerning the reason for your decision to design it that way.
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrThanks for the quick reply. May I ask what the reason for this is?
Forum: Plugins
In reply to: [Tumblr Crosspostr] How to display featured image on TumblrHey,
I’m not sure about this: Are the featured images still only being synced to Tumblr for posts with the image format, or should it work for standard format posts as well now, since version 0.7.19?
Thanks,
FabianForum: Plugins
In reply to: [Responsive Lightbox & Gallery] Not working with Custom FieldsYeah you would place it in the template where you call your custom field. So the code I posted, replace
$stringwith your custom field (would probably be something like$post->yourcustomfieldForum: Plugins
In reply to: [Responsive Lightbox & Gallery] Not working with Custom FieldsAlright.. I solved the problem by adding
rel="lightbox"to all image links by running the custom field content through this before printing it out:
preg_replace('/<a(.*?)href="(.*?).(bmp|gif|jpeg|jpg|png)"(.*?)>/i', '<a$1href="$2.$3" rel="lightbox">', $string)