darioj
Forum Replies Created
-
Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] Issues with CVG 1.6Having issues deleting videos and galleries?
That’s because thickbox is getting loaded twice.
Edit cool-video-gallery/admin/gallery_details.php, comment lines 13 and 15:<!-- /*Thickbox already loaded by WP*/ <script src="<?php //echo trailingslashit( WP_PLUGIN_URL . '/' . dirname(dirname( plugin_basename(__FILE__)))) ?>js/thickbox.js"></script>--> <?php CvgCore::upgrade_plugin();?> <?php /*Thickbox already loaded by WP*/ //echo '<link rel="stylesheet" href="'.trailingslashit( WP_PLUGIN_URL . '/' . dirname(dirname( plugin_basename(__FILE__)))).'css/thickbox.css" type="text/css" />';?>Same goes for admin/gallery_manage.php at lines 12 and 14
Cheers
DarioIf you are on a linux server check this reply for a solution:
http://wordpress.org/support/topic/plugin-cool-video-gallery-issues-with-cvg-16?replies=30#post-3176496Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] Issues with CVG 1.6Anyone having problems with youtube videos not being added to galleries? You might be lacking bcmath functions…
If you are on a linux server chances that bcmath support is missing are very high ( windows has them built in ).
To overcome the issue you can add this code to your functions.php file.
@ Rajan
: you might put this code in the core.php outside the class definition.Cheers
Darioif( !function_exists('bcmod') ) { /** * my_bcmod - get modulus (substitute for bcmod) * string my_bcmod ( string left_operand, int modulus ) * left_operand can be really big, but be carefull with modulus :( * by Andrius Baranauskas and Laurynas Butkus :) Vilnius, Lithuania **/ function bcmod( $x, $y ) { // how many numbers to take at once? carefull not to exceed (int) $take = 5; $mod = ''; do { $a = (int)$mod.substr( $x, 0, $take ); $x = substr( $x, $take ); $mod = $a % $y; } while ( strlen($x) ); return (int)$mod; } }You need to define in your functions.php an empty function named genesis.
function genesis {}UPDATE
My point was just due to the fact that older firefox browsers used those links for prefetching the rel next & prev pages, doubling the reqests to the web server.
This doesn’t happen anymore, but it’s still likley that this can happen as older ff browsers are still there.Meeanwhile, wp stopped adding those next prev tags so I’m wondering if this has really a benefit for seo.
Anyhow, it doesn’t harm as before so I personally wouldn’t bother that much.
Hi Joost,
first of alll I must say that I love your plugin! It made me very happy, but the issue is true. That rel next tag shouldn’t be there.To me it looks like a bug in frontend/class-frontend.php, the OR clause makes it apear on the homepage althought you don’t seem to whant that. So if I don’t have the genesis theme and I define a genesis function the link is gone. Here is the code:
// Don't do this for Genesis, as the way Genesis handles homepage functionality is different and causes issues sometimes. if ( !is_home() || !function_exists( 'genesis' ) ) $this->adjacent_rel_links();Cheers
Dario