Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Brandon

    (@brtepley)

    I finally figured it out. My problem was an issue with my database needing to be repaired.

    When I was in phpMyAdmin attempting to create a super amdin user manually, I noticed my _sitemeta table said that it needed to be repaired.

    I changed my wp-config multisite setting to false, and was able to add the WP-DBManager plugin and repair my database. Then it worked and my Super Admin privileges were back!

    My issue was that I was able to login to my multisite wordpress site, but I only had the permissions of a subscriber/editor. I didn’t see the network tab or the plugins tab. I could access the plugins menu when I turned off the multisite feature in the wp-config file, and deactivated all, but then returned to the multisite and wasn’t able to access any Super Admin stuff. Weird.

    Fixed now! Thanks for your willingness to help!

    Check out the bottom of this post:

    http://wordpress.org/support/topic/plugin-contact-form-7-formatting-checkbox-sets?replies=7

    This fix worked for me.

    Forum: Plugins
    In reply to: Donate Plus in sidebar

    greenthing.

    I think I found where you can configure the output of the donateplus form. Look at donate-plus.php, around line 703.

    $output .='<input type="hidden" id="cmd" name="cmd" value="_donations">
    
    <p class="donate_amount"><label for="amount">'.__('Donation Amount', 'dplus').':</label><br /><input type="text" name="amount" id="amount" value="'.$dplus['default_value'].'" /> <small>('.__('Currency: ','dplus').$cur.')</small></p>';

    To get rid of everything but the text box and button you could change the string to this:

    $output .='<input type="hidden" id="cmd" name="cmd" value="_donations">
    
    <p class="donate_amount"><input type="text" name="amount" id="amount" value="'.$dplus['default_value'].'" /></p>';

    Breaking down the code:

    First line and a line break (Donation Amount:):

    <label for="amount">'.__('Donation Amount', 'dplus').':</label><br />

    Second line, input area, and currency:

    <input type="text" name="amount" id="amount" value="'.$dplus['default_value'].'" /> <small>('.__('Currency: ','dplus').$cur.')</small></p>';

    Hope this helps. It took me a while to figure it out, but it seems to be working. Always get into the code at your own risk.

    Thread Starter Brandon

    (@brtepley)

    Thanks shauno! Your fix worked.

    I am running PHP version 5.2.9.

    Is is there anything else I can let you know that will help?

    The plugin is exactly what I was looking for and it works perfectly!

    Thread Starter Brandon

    (@brtepley)

    I am using 1.3.5, as well… Custom Fields 0.5.

    I can get the field to show up in my template, everything seems to work perfectly, but the error message at the top of the screen.

    I created a template based on the ‘gallery-caption’ template. I added the gallery to a page and when I view the page the error shows at the top, but doesn’t seem to effect the output. The field shows up, my layout shows up.

    I am excited to use this plugin! I hope I can get it to work.

    Here is line 550 – 555 -571:

    function nggcf_image_obj($pictureObj, $pid) {
    		global $nggcf_values;
    
    		nggcf_hold_field_values($pid);
    
    		$pictureObj->ngg_custom_fields = array();
    		foreach ($nggcf_values[$pid] as $key=>$val) {
    			$pictureObj->ngg_custom_fields[$key] = stripslashes($val->field_value);
    		}
    
    		return $pictureObj;
    	}
    
    	function nggcf_get_gallery_field($gid, $fname) {
    		global $nggcf_field_values;
    
    		nggcf_hold_gallery_field_values($gid);
    
    		return $nggcf_field_values[$gid][$fname];
    	}
    //}
    ?>
Viewing 5 replies - 1 through 5 (of 5 total)