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
4:45 pm
Hey Folks!
DCG creates some weird code fragment in my index.php that leads to a validation error @ validator.w3.org
<?
/* Prevent direct access to this file */
if (!defined('ABSPATH')) {
exit( __('Sorry, you are not allowed to access this file directly.', DFCG_DOMAIN) );
}
?>
How can I remove it?
Thanks!
Cheers,
Jakob
3:56 pm
August 25, 2008
OfflineHi,
There's no normal reason why that code should appear in your page. I would reinstall the plugin.
5:23 am
November 18, 2011
OfflineHello. First of all i want to thank you for such a wonderful wordpress plugin. It's by far the best 'featured content' plugin i've seen. Second, i appologize for posting on such an old topic, but even after reading the config guide and FAQ i come to the conclusion, that it has not much to do with any of that.
/* Prevent direct access to this file */
if (!defined('ABSPATH')) {
exit( __('Sorry, you are not allowed to access this file directly.', DFCG_DOMAIN) );
}
?>
The 'code fragment' does show up in a clean install of wordpress and DCG.Indeed, like the topic starter mentioned, it is in the includesdfcg-gallery-jquery-styles.php file. The problem can be solved in two ways :
1) Allow PHP Short Open Tags, or
2) change the <? to <?php on line 17 of the above mentioned file.
However, not every host have 'allow short open tags' for PHP enabled,
so good coding practice is always use the full <?php open tag.
Greetings ChillZZ
ps: same applies for dfcg-gallery-mootools-styles.php, line 17
7:46 am
August 25, 2008
OfflineThanks for posting. Yes, this is a known issue and has been discussed in some other threads some time ago. It's a typo in the code, so the best fix is your option number 2, ie change <? to <?php in the two files you mentioned. It has already been fixed in 4.0 beta.
Cheers!
Most Users Ever Online: 28
Currently Online: theonsale, nloronacele
12 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
johnbroome: 13
sjpeaches: 12
speedyp: 12
CherylMcL: 10
littlemerry: 8
lsnoei: 8
Member Stats:
Guest Posters: 770
Members: 1297
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 7
Topics: 978
Posts: 4293
Newest Members: chargers3, jwhetstone, robert, Mak-Donuts, kilerb, Marian Bamboi
Moderators:
Administrators: Ade (2490)
Log In
Register
Home

Dynamic Content Gallery: Have you read the
