Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    I changed this in the class-widget.php to this :

    public function widget( $args, $instance ) {
    		extract( $args );
    		$id = ($instance['wysiwyg-widget-id']) ? $instance['wysiwyg-widget-id'] : 0;
    		$show_title = (isset($instance['show_title'])) ? $instance['show_title'] : 1;
    		$post = get_post($id);
    
    		if( !empty($id) && $post && ( $post->post_status == 'publish')) {
    
    		echo $before_widget;
    
    			if($show_title) {
    				// first check $instance['title'] so titles are not changes for people upgrading from an older version of the plugin
    				// titles WILL change when they re-save their widget..
    				$title = (isset($instance['title'])) ? $instance['title'] : $post->post_title;
    				$title = apply_filters( 'widget_title', $title );
    			}
    
    			$content = apply_filters('ww_content', $post->post_content, $id);
    
    			?>
    
    			<!-- Widget by WYSIWYG Widgets v<?php echo WYWI_VERSION_NUMBER ?> - https://www.ads-software.com/plugins/wysiwyg-widgets/ -->
    			<?php if($show_title) { echo $before_title . $title . $after_title; } ?>
    			<?php echo $content; ?>
    			<!-- / WYSIWYG Widgets -->
    
    			<?php
    
    			echo $after_widget;
    
    		} elseif(current_user_can('manage_options')) { ?>
    				<p>
    					<?php if(empty($id)) {
    						_e('Please select a Widget Block to show in this area.', 'wysiwyg-widgets');
    					} else {
    						printf(__('No widget block found with ID %d, please select an existing Widget Block in the widget settings.', 'wysiwyg-widgets'), $id);
    					} ?>
    				</p>
    		<?php
    		}
    
    	}

    Hi

    I had the same message. My server uses php 4 by default so I always need to add:
    SetEnv PHP_VER 5
    in my .htaccess file.

    Be sure that you have php 5 !!

    Thread Starter aaserod

    (@aaserod)

    My solution to this after testing qTranslate and Widget Wrangler:

    Edit Profile, then check ‘Disable the visual editor when writing’

    You have to create one widget for each language if you need to translate some text and the same with the sidebar.

    Hi

    I had the same problem and I changed the wp_print_scripts() in the headspace.php. I added function_exists and RB Internal Links is working fine :

    function wp_print_scripts() {
    		global $wp_scripts;
    
    		if ( function_exists( 'add_meta_box' ) ) {
    		add_meta_box ('headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'post', 'normal', 'high');
    		add_meta_box ('headspacestuff', __ ('HeadSpace', 'headspace'), array (&$this, 'metabox'), 'page', 'normal', 'high');
    		add_meta_box ('tagsdiv',        __ ('Tags', 'headspace'),      array (&$this, 'metabox_tags'), 'page', 'side', 'high');
    		}

Viewing 4 replies - 1 through 4 (of 4 total)