Alex
Forum Replies Created
-
Forum: Plugins
In reply to: [Featured Video Plus] Video only displaying as screenshotOk a hint would be this one: https://pastebin.com/yjc28qY8
It displays the video, but needs some tweaking because the featured image box of leaf is just 720px*320px and so the video has no chance to fit it.Hope it helps, if I get an idea on how to easily make the video fit the box better I will let you know.
Forum: Plugins
In reply to: [Featured Video Plus] Video only displaying as screenshotUhm, the leaf theme uses a slider on it’s front page where the featured images are used as backgrounds. Unfortunately we cant use videos this way. To display videos instead of images it would need an completely different slider script.
For the Corporate Theme the plugin should be much easier to implement, because the images are actually displayed as items on their own, which we should be able to replace easily.
Forum: Plugins
In reply to: [Featured Video Plus] Video only displaying as screenshotOk – that’s a theme based on the genesis framework which is available paid only. Therefore I cannot look into its source code.
The problem almost certainly occurs because the theme does not use WordPress’ default functions for displaying featured images (get_the_post_thumbnail and the_post_thumbnail). These functions are required for the plugin to hook into the WordPress core. I will add this to the FAQ.
For the plugin to still display the video you need to directly implement it’s functions in your code. This is how it is done roughly:
Find the part in the framework’s code where the featured image is being inserted. I guess it is in file called widgets.php or similar. There should be
has_post_thumbnail
orget_post_thumbnail_id
used and you could search the genesis framework source files for those.Then the whole part which echos the featured image needs to be wrapped in a conditional which, if there is a featured video, displays this instead.
if ( has_post_video() ) { the_post_video(); } elseif ( has_post_thumbnail() ) { echo post_thumbnail; }
This is just an example how it could look like. As I said, I have no access to the genesis source and therefore cannot give any more detailed advise.
If you find the file which contains the required part you can post the part of interest here or send it to me and I will take a look at it. [email protected]
Regards, Alex
Forum: Plugins
In reply to: [Featured Video] Problem with featured video/imageHey Aandagt,
have a look at Featured Video Plus . It does exactly what you request here automatically if your theme uses the_post_thumbnail() or get_the_post_thumbnail() to display featured images. I wrote it after using the original Featured Video plugin.If you want to use your code, alter
<?php if (has_post_video()) the_post_video(640,360) ?> <?php if (has_post_thumbnail( $post->ID )) {
to
<?php if (has_post_video()) the_post_video(640,360) ?> <?php elseif (has_post_thumbnail( $post->ID )) {
Alex
Forum: Plugins
In reply to: [Featured Video] featured image, link to timeJust released Featured Video Plus which resolves my requests above
Forum: Plugins
In reply to: [Featured Video] featured image, link to timeSpoke to the author of this plugin. I will soon release an extended version of this plugin, rewritten and with more features. Including shorturls, time links, featured images etc
Forum: Plugins
In reply to: [Events] [Plugin: Events] today's events widget & multiple widgetI now ve got a way to manually display todays events in the sidebar by editing sidebar.php:
<?php if(function_exists(events_sidebar)) { if( strpos( $today = events_show( array( 'type' => 'today' ) ), 'SOMETHING IN THERE' ) !== false ) { echo '<li>'.$today.'</li>' } } ?>
‘something in there’ is ‘class=”events_title’ for me.
Multiple widgets work this way as well. You just need to add them manually..Mh.. This idea doesnt work for me.
If I login on the page which would get the loop -> no loop
If I login on any other page -> loop on page 1Forum: Hacks
In reply to: Accessing Media Library from plugin – Media Selector?This one works for me! Try it! ??
https://www.ads-software.com/support/topic/howto-integrate-the-media-library-into-a-plugin?replies=2Forum: Themes and Templates
In reply to: Delete in Frontend in P2@sosukeinu: did you as well figure out how to add an ajax-comments-move-to-trash-link for comment authors&administrators?
Found this topic already, but they did not find a solution..
Forum: Themes and Templates
In reply to: Delete in Frontend in P2+1 on this
and it would be nice if you could go forth and add an “users can delete own posts & comments” option to the theme options ??
Forum: Fixing WordPress
In reply to: user profile without using GravitarI am using the profil pic plugin for pictures: https://www.ads-software.com/extend/plugins/profile-pic/
or you can pull picture & info from facebook or twitter using different pluginsForum: Hacks
In reply to: Accessing Media Library from plugin – Media Selector?@ed4becky: doesnt look like we would get a soloutin using 3.0.4… An interesting discussion on this topic:
https://www.ads-software.com/support/topic/using-wps-thickbox-in-a-plugin?replies=16and on this trac ticket: https://core.trac.www.ads-software.com/ticket/13817
Possibilities to fix this are on their way with 3.1!
Forum: Hacks
In reply to: Accessing Media Library from plugin – Media Selector?*searching for this too*
I want to access the media selector in my widget-settings to select pictures from the wordpress media and save their id into a database option of my plugin – similar to ed4becky’s idea.
edit: already found this. but it is not exactly what i need..
Ok. Fail. Doesnt work with multisite & domain mapping like all other “registered users only”-style plugins..