ibcreative
Forum Replies Created
-
I was having trouble with the plugin too, I managed to get it to work by setting PHP 7.0 as the current version on my host and, of course, activating the GD extension.
Hope it helps someone
Thank you agelonwl, you were right about that.
So i got the solution i was looking for, maybe someone needs something like this so here´s the code (be sure to set the custom att
#_ATT{#youTube}first ):<?php $youtubeurl = $event->output('#_ATT{youTube}'); if (youtubeurl!= "0") { global $wp_embed; $post_embed = $wp_embed->run_shortcode('[embed width="320" height="240"]'.$youtubeurl.'[/embed]'); echo $post_embed; } ?>This script checks if there´s anything stored on the custom att, namely a youtube url in this case, and if so then proceeds to embed the video.
Yeah, it´s not working for me either. So the next thing i´m trying is to set a new attribute
#_ATT{#youTube}and hopefully check if its not empty, if not empty, show a div and load the video in it.The thing is, i haven´t figured out how to do that check yes? Any thoughts on that?
Thank You.
Forum: Plugins
In reply to: [Featured Video] Adding Featured Video Functionality To Custom post Typeswell i think i may have found the solution, i just appended the wmode to the link in the line:
echo '<iframe width="'.$width.'" height="'.$height.'" src="http://www.youtube.com/embed/'.$id.'?wmode=transparent" frameborder="0" allowfullscreen></iframe>';BUT, the trick is that for some reason i had to make the change in the built in WordPress plugin editor, it didn’t work otherwise…
Forum: Plugins
In reply to: [Featured Video] Adding Featured Video Functionality To Custom post TypesNo problem, please let me know if you find anything else regarding this functionality. Thanks
Forum: Plugins
In reply to: [Featured Video] Adding Featured Video Functionality To Custom post TypesHi, i was working this too and found that your solution is right but incomplete. It only manages to show the form on the custom post admin view but it doesn’t actually save the data.
I got it working by adding:
if(isset($_GET['customposttypename'])){
$post_id = $_GET['customposttypename'];
}
to the fv_meta_html function in the plugin file just belowif(isset($_GET['post'])){and before the else part.
$post_id = $_GET['post'];
}Oh yeah! That was it, you’re brilliant. Thank you very much!
Well, it’s working! Thank you Tobias, great plugin, great support!
The problem was some code in functions.php which was supposed to ensure that jquery wouldn’t load more than once. I guess somehow it was messing the DOM or something. The theme was actually loading jquery once, but i guess it was gone by the time the plugin needed it…is that possible?
anyway….the code is:
function modify_jquery() { if (!is_admin()) { wp_deregister_script('jquery'); } } add_action('init', 'modify_jquery');so, STAY AWAY!
Hmmm…i spoke too soon, that datatables error is showing only when i test the site in my WAMP server. However, when i upload the theme and run it live i get:
$("#wp-table-reloaded-id-1-no-1").dataTable is not a function http://carneslavelenita.com/blog/?page_id=15 Line 391in firebug. and i thought i was coming closer to a solution lol.Hi Tobias, i made a little progress today. I found out that even if i did have the
<?php wp_head(); ?>in place, the call to the footer<?php get_footer()?>was too far up the index.php file and that made a huge difference. Now i see that tabletools is loading fine except i’m getting this error: Warning: TableTools requires DataTables 1.5 or greater – http://www.datatables.net/download. Any ideas?Oh i forgot to mention that datatables have been enabled the whole time, but not loading for some reason. So i hardcoded the call into the theme’s footer.php (
<script src="<?php bloginfo('url'); ?>/wp-content/plugins/wp-table-reloaded/js/jquery.datatables.min.js"></script>) but it’s still not working. CSS however was loaging just fine.Thank you for taking the time to reply!
Really? Oh man i feel dumb. But the truth is that i tried to make sure not to load jquery twice, and i cant seem to find why that is happening or any other errors like missing files (except some .gifs).
Could please be more specific regarding the missing files? And, is there any tool you could recommend to track down the errors? I’m inspecting with firebug but it is not showing any of these errors.
Thank you so much, again.
Forum: Fixing WordPress
In reply to: Protect Full PostsOutstanding!, thanks.
Forum: Fixing WordPress
In reply to: Protect Full PostsThanks moshu, that was fast!. Bad news though.