Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!
Dynamic Content Gallery Resources
DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.
Note that the current stable release of the DCG is version 3.3.5.
Topic RSS
open
4:36 pm
Wordpress version 3.01
I just upgraded to the 3.3 version of the plugin and received an error:
Parse error: syntax error, unexpected T_IS_IDENTICAL in /home/foo/public_html/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery-plugin.php on line 307
4:57 pm
YES! I was experiencing the same error on http://rockbandaide.com. It blew up the site. I tried rolling back to a previous version and now the content won't load.
PLEASE ADVISE/FIX!!!
5:08 pm
JohnLovell said:
The dynamic-gallery-plugin.php is corrupt.
Line 307 is the culprit.
306 add_filter( 'plugin_action_links', 'dfcg_filter_plugin_actions', 10, 2 );
307 =======
<?php
/*I'm trying to see if I can fix it locally.
I'm no php expert, and have no idea what the architecture of this code is… but it looks as simple as an open php code block which started on line 2.
Can we just close the php code block with a '?>' ??
Probably not… I'm such a code hack though… that's the best I can think of. Seems like this might ultimately be a pretty easy fix for the dev.
5:16 pm
I've changed my local copy and got it to activate, however, it still does not work.
It looks like there was a unresolved subversion conflict on this file.
I am not the developer for this project, I'm just a developer that uses this awesome plug-in and I need to get it fixed for my client site. I will keep you updated with my unofficial progress. PLEASE: do not edit your local files unless you are completely comfortable with messing up your entire site :)
After further investigation, it appears that more source files may have subversion conflict messages and duplicated code.
IMHO I recommend deactivating this plug-in until the developer can make a fix available.
It may be possible to downgrade to the previous version, but I am unable to find it available on this website.
Good luck and I hope to hear from Abe soon with a fix.
Thanks Abe for a great plug-in.
5:55 pm
JohnLovell said:
It may be possible to downgrade to the previous version, but I am unable to find it available on this website.
Just an FYI, the previous version is available through Wordpress' site here:
http://wordpress.org/extend/plugins/dynamic-conten…../download/
(download 3.2.3)
6:03 pm
FamousInternetSkiers said:
JohnLovell said:
It may be possible to downgrade to the previous version, but I am unable to find it available on this website.
Just an FYI, the previous version is available through Wordpress' site here:
http://wordpress.org/extend/plugins/dynamic-conten…../download/
(download 3.2.3)
Thanks, put 3.2.3 back in and Im up and running. Will keep an eye out here for fix to upgrade.
7:28 pm
August 25, 2008
OfflineHi all,
Apologies for this!
There was a glitch when I was updating the Wordpress Repository and the offending version of the dynamic-gallery.php was uplaoded in error. Anyway, all is fixed, so you can re-download and re-install and all should be fine.
Thanks!
9:08 pm
August 25, 2008
OfflineGo to Dashboard>Plugins>Add New, then enter Dynamic Content Gallery in the search box. You can then do the install from there.
9:22 pm
August 25, 2008
OfflineYou're right, it doesn't.
Best option is to use FTP. Download 3.3 from the wordpress.org site, unzip it on your PC, then use FTP to delete the existing dynamic-content-gallery-plugin folder from your plugins folder, and replace it with the fresh one.
9:38 pm
August 25, 2008
OfflineHow can you not have an FTP option? How do you upload themes etc?
Your alternative is to use phpmyadmin (via your hosting) to change the DCG version info in the wp_options table. If you have never used phpmyadmin I don't recommend this option.
9:45 pm
August 25, 2008
OfflineI forgot your other option (assuming your server file permissions allow it).
Go to the plugin editor and browse to the file dynamic-gallery.php and replace the ENTIRE contents of that file, with this:
/**
* Front-end – This is the main file used to display the gallery
*
* @copyright Copyright 2008-2010 Ade WALKER (email : info@studiograsshopper.ch)
* @package dynamic_content_gallery
* @version 3.3
*
* NOTE: This file was updated due to change from Pages Method to ID Method in v3.3
*
* This is the file that displays the gallery, called by dynamic_content_gallery()
* template tag function.
*
* This file is included by dynamic_content_gallery() in dfcg-gallery-core.php
* therefore local scope applies to variables here – unless global in dynamic_content_gallery()
*
* Note: the name of this file is preserved because some users will still be using the
* old method of calling the plugin (now replaced with template tag)
*
* 4 methods of populating the gallery as per Settings:
* - Multi Option
* - One Category
* - ID Method
* - Custom Post type Method – added in v3.3
* Plus 2 script options for each gallery method
*
* @since 3.0
* @updated 3.3
*/
/* Prevent direct access to this file */
if (!defined('ABSPATH')) {
exit(__( "Sorry, you are not allowed to access this file directly.", DFCG_DOMAIN ));
}
/* Determine which scripts are being loaded */
if( $dfcg_options['scripts'] == 'mootools' ) {
if($dfcg_options['populate-method'] == 'multi-option' ) {
// Populate method = MULTI-OPTION
dfcg_multioption_method_gallery();
} elseif( $dfcg_options['populate-method'] == 'one-category' || $dfcg_options['populate-method'] == 'custom-post' ) {
// Populate method = ONE CATEGORY or CUSTOM POST TYPE
dfcg_onecategory_method_gallery();
} elseif($dfcg_options['populate-method'] == 'id-method' ) {
// Populate method = ID METHOD
dfcg_id_method_gallery();
}
} elseif( $dfcg_options['scripts'] == 'jquery' ) {
if($dfcg_options['populate-method'] == 'multi-option' ) {
// Populate method = MULTI-OPTION
dfcg_jq_multioption_method_gallery();
} elseif($dfcg_options['populate-method'] == 'one-category' || $dfcg_options['populate-method'] == 'custom-post' ) {
// Populate method = ONE CATEGORY or CUSTOM POST TYPE
dfcg_jq_onecategory_method_gallery();
} elseif($dfcg_options['populate-method'] == 'id-method' ) {
// Populate method = PAGES
dfcg_jq_id_method_gallery();
}
/* Something has gone horribly wrong and there's no output! */
} else {
$output = '';
$output .= $dfcg_errmsgs['public'];
$output .= "\n" . $dfcg_errmsgs['10'] . "\n";
echo $output;
}
?>
Most Users Ever Online: 28
Currently Online: nloronacele
16 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
johnbroome: 13
speedyp: 12
sjpeaches: 12
CherylMcL: 10
gscorp: 8
lsnoei: 8
Member Stats:
Guest Posters: 770
Members: 1300
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 7
Topics: 980
Posts: 4299
Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert
Moderators:
Administrators: Ade (2493)
Log In
Register
Home

Dynamic Content Gallery: Have you read the 