J.D. Grimes
Forum Replies Created
-
Forum: Plugins
In reply to: [SS Quiz] Error after upgrading to 2.0.3This is because the plugin uses short PHP opening tags twice in the admin-main.php file. This needs to be changed! You can update the file your self, just change
<?
to<?php
on lines 244 and 333 in the admin-main.php plugin file.Forum: Plugins
In reply to: [CubePoints] Paid Content ShortcodeI see now what I did wrong before. This code should protect only the address field:
if ( $meta ) { // If this is the site address. if ( 'cf_site_address' == $field->field ) $meta = do_shortcode( '[protect points="50"]' . $meta . '[/protect]' ); else $meta = make_clickable( $meta ); $extra .= sprintf( '<li><label>%s</label> : %s</li>', $field->label, $meta ); }
Forum: Plugins
In reply to: [CubePoints] Paid Content ShortcodeTry this:
if ( $meta ) { $meta = do_shortcode( '[protect points="50"]' . $meta . '[/protect]' ); $extra .= sprintf( '<li><label>%s</label> : %s</li>', $field->label, $meta ); }
Somewhere in your theme is a function
gtcn_basic_callback()
. Find that and post the source.EDIT: It will probably be in
functions.php
Forum: Plugins
In reply to: [CubePoints] Paid Content ShortcodeCan you post a link to an example?
Could you give me the link? Thanks.
Forum: Plugins
In reply to: [CubePoints] Paid Content ShortcodeJust replace this part:
if ( $meta ) { $extra .= sprintf( '<li><label>%s</label> : %s</li>', $field->label, make_clickable( $meta ) ); }
With this:
if ( $meta ) { // If this is the site address. if ( 'cf_site_address' == $field ) $meta = do_shortcode( '[protect points="50"]' . $meta . '[/protect]' ); else $meta = make_clickable( $meta ); $extra .= sprintf( '<li><label>%s</label> : %s</li>', $field->label, $meta ); }
Forum: Plugins
In reply to: [CubePoints] Paid Content ShortcodeHere is a link to modified code. Let me know if it works for you.
Forum: Plugins
In reply to: [CubePoints] Paid Content ShortcodeYes, you could do that. In your PHP code you would do something like this:
do_shortcode( '[protect points="50"]Content[/protect]' );
Just replace “Content” with the code for your custom field. If you need more help try pasting your code here.
Could you paste a copy of your theme’s
comment.php
on pastbin?Forum: Plugins
In reply to: [CubePoints] Paid Content Shortcode@beezeeking – What part of the code are you trying to use? Exactly what are you trying to do? Do you know PHP?
It needs to be in the comments template where you want the rank to appear. That would be in
comment.php
in your current theme’s directory (example:/wp-content/themes/my-theme/comment.php
).Thanks Marcus, that is what I wanted to hear. In this case, I think people will only be adding events from the front end, so that shouldn’t be an issue.
Do you have an expected date of when this might be fixed?
Thanks.
That is correct. I just don’t understand exactly why that particular capability was used. The plugin doesn’t actually edit the theme files, as far as I know. It’s not a big problem for me, I just wanted to make sure that you were aware of it.
OK, but I would really like to be able to set a minimum size, and there is no option for that there. I would like to make the minimum size of featured images to 500×900 pixels.