randler
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Error only for guests with all in one event calendarHi!
Did you happen to solve this and how did you do that?
The page seems to be working..
Michael
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Shortcode for loginpage doesn't workNever mind, it was a glitch in the system after the update, I deactivated all the plugins and then I activated them and after that it worked again.
I have a similar question about the featured levels plugin. How do I incorporate the strings in the module in the core? Cause now when I try to use the strings in the module in the same language file as the core plugin, it doesn’t work.
Did’nt find any strings in the core plugin that are connected to the ones I have in the module.
Forum: Themes and Templates
In reply to: [Focus] Thumbnail not working without premium?I’ve updated the theme and when there is an image attached to the post, that will show as a thumbnail. But on the ones without attached image there is no thumbnail. Does it not create a thumbnail automatically?
Forum: Plugins
In reply to: [Network Latest Posts] Pulling image from custom fieldOkay, so if I understand you correctly I should change the way my form, that I have in functions.php saves the metadata about the author image.
This is how the function that adds the extra fields on the options page of WordPress looks:
/Extrainfo bloggare $new_general_setting = new new_general_setting(); class new_general_setting { function new_general_setting() { add_filter('admin_init', array( &$this, 'register_fields' )); add_action('admin_init', array( &$this, 'load_scripts' )); } function register_fields() { register_setting('general', 'profilbild', 'esc_attr'); add_settings_field('profil_bild', '<label for="profilbild">' . __('Profilbild', 'profilbild') . '</label>', array( &$this, 'field_profilbild' ), 'general'); register_setting('general', 'toppbanner', 'esc_attr'); add_settings_field('topp_banner', '<label for="toppbanner">' . __('Toppbanner', 'toppbanner') . '</label>', array( &$this, 'field_toppbanner' ), 'general'); } function load_scripts() { wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); } function field_profilbild() { $value = get_option('profilbild', ''); echo '<input type="text" id="profilbild" name="profilbild" value="' . $value . '" /><input type="button" id="upload_pic_button1" class="upload-button" value="Lägg till" />'; ?> <script type="text/javascript"> jQuery(document).ready(function() { var uploadID = ''; /*setup the var*/ jQuery('.upload-button').click(function() { uploadID = jQuery(this).prev('input'); /*grab the specific input*/ formfield = jQuery('.upload').attr('name'); tb_show('', 'media-upload.php?type=image&TB_iframe=true'); return false; }); window.send_to_editor = function(html) { imgurl = jQuery('img',html).attr('src'); uploadID.val(imgurl); /*assign the value to the input*/ tb_remove(); }; }); </script> <?php } function field_toppbanner() { $value = get_option('toppbanner', ''); echo '<input type="text" id="toppbanner" name="toppbanner" value="' . $value . '" /><input type="button" id="upload_pic_button2" class="upload-button" value="Lägg till" />'; } }Should I somewhere in here specify where in the database the image information should be saved?
Forum: Plugins
In reply to: [Network Latest Posts] Pulling image from custom fieldHello, thank you for your fast reply.
It uses a javascript that uses WordPress own media-upload.php file.
So I’m guessing the data is in the wp_posts table. Which is the reason it’s not working I suppose.Due to the situation I’m in, working as a consultant and doing this for a client, I can’t use the solution you provided for ACF. Since I can’t hard code stuff and loose the things I changed when you update the plugin.
Can I add a default thumbnail function and use that instead maybe? How Does that work?
Forum: Plugins
In reply to: [Network Latest Posts] Pulling image from custom fieldHello!
I have changed my custom thumbnail to be the image that I have uploaded through a function in my custom theme. It uploads a profile image of the blogger who wrote the post. But it doesn’t work.
I have used this in another plugin that we have to change from because it’s not being updated any longer. I know this is the right field name, but still no image.
Michael
Forum: Plugins
In reply to: [WP Facebook Open Graph protocol] 2.1 DEV version is availableWP Version: 3.5.1
Plugin Version: 2.1 DEV
If Theme Framework, Which one?: Custom made from scratch.
If SEO plugin, which one?: All in One SEO Pack
Issues fixed or unresolved? Was it happening before this beta?: Trouble with circular reference unresolved even after the beta..Forum: Plugins
In reply to: [WP Facebook Open Graph protocol] Trouble with circular referenceHello!
Now I have tried implementing the new code from the dev version from git. Nothing changed as far as I can see. I am using All in One SEO Pack, is there any settings I should change in there?
I get this in the <title> tag:
And this is what I have filled out in the ALL in One SEO for the forum, that I want to have in the og:title
And this is the result that the other plugin gets in the og:title:
It’s the title of the post.But I want the og:title to contain the same as the <title> tag.
So practically I guess it’s not doing what I want, but what it’s supposed to do? Is the pro version the solution or can it be solved in some other way?Best regards
Michael
Hello!
I have tried to install the plugin with and without the Compulary code that needs to be changed in the all in one seo pack file. It works both ways. So my question is, what is the code snippet that’s to be inserted for? Is it necessary?
Michael