Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter jonfoster

    (@jonfoster)

    Thanks – will try that – using GravityForms, so not sure if that used wp_redirect….
    J

    Thread Starter jonfoster

    (@jonfoster)

    Any ideas on this anyone?

    Jon

    Thanks Daniel,
    Although I’m not sure what you mean exactly – can you show me an example of that file?

    Thanks
    Jon

    The site I’m working on doesn’t have access to the tmp folder which the plugin uses.
    Jon

    Hi,
    Loving the plug-in and the new dev version, but are there any plans to add the option to change the temporary folder? This is crucial for me!

    If not, would you be able to tell me how to hardcode a different directory in?

    Thanks
    Jon

    Thread Starter jonfoster

    (@jonfoster)

    I’ve re-introduced Cufon manually via a plug-in, and removed the Cufon stuff out the theme – that seems to have done the trick.

    If anyone else has this problem with “Versatile” theme and is struggling to sort it, give me a shout – twitter handle is @jonfoster

    Thanks for your help Ipstenu & Andrea
    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Ok, so the problem’s caused by this piece of code:

    /*---------------------------------*/
    //ADMIN SYSPANEL JAVASCRIPT ENQUEUE
    /*---------------------------------*/
    add_action('wp_print_scripts', 'system32_enqueue_scripts');
    if(get_option('gmapapikey'))
    {
    function gmapscript(){
    echo "\n<script type='text/javascript' src='https://maps.google.com/maps?file=api&v=2&key=".get_option('gmapapikey')."'></script>\n";
    	wp_print_scripts( 'jquery_map');
    	}
    	add_filter('wp_head','gmapscript');
    }
    	function admin_js(){
    	if(isset($_GET['page']) && $_GET['page']=='admin_interface.php'){
    		wp_enqueue_script('sys_jquery',sys_scripts . '/jquery-1.5.1.min.js');
    		wp_enqueue_script('jquery-uitabs', sys_scripts .'/jquery-ui-1.7.3.custom.min.js');
    		wp_enqueue_script('jquery_easing',sys_scripts . '/jquery.easing.1.3.js');
    		wp_enqueue_script('sys_checkbox',sys_scripts . '/jquery.checkbox.js');
    		wp_enqueue_script('sys_colorpicker',sys_scripts . '/mColorPicker.js');
    
    		wp_enqueue_script('sys_iphone',sys_scripts . '/iphone-style-checkboxes.js');
    		wp_enqueue_script('sys_empty',sys_scripts . '/empty.js');
    		wp_localize_script( 'sys_empty', 'sys_panel', array(
    			'SiteUrl' =>get_template_directory_uri(),
    			'clearpath' =>get_bloginfo('template_directory') . '/lib/admin/images/empty.png',
    			'colorpath' =>get_bloginfo('template_directory') . '/lib/admin/color/'
    		));
    		wp_enqueue_script('jquery_form',sys_scripts . '/jquery.form.js');
    		wp_enqueue_script('jquery_validate',sys_scripts . '/jquery.validate.js');
    		wp_enqueue_script('jquery_autocomplete',sys_scripts . '/jquery.autocomplete.js');
    		}
    	}
    add_action('wp_print_scripts', 'admin_js',8);
    
    function my_admin_scripts() {
    global $page_handle;
    $svr_uri = $_SERVER['REQUEST_URI'];
    	wp_enqueue_script( 'jquery-color' );
    	wp_enqueue_script( 'common' );
    
    	wp_print_scripts('media-upload');
    	if (function_exists('add_thickbox')) add_thickbox();
    	wp_register_script('my-upload', sys_scripts.'/ajaxupload.js', array('jquery','media-upload','thickbox'));
    	wp_enqueue_script('my-upload');
    	wp_print_scripts('editor');
    	if (function_exists('wp_tiny_mce')) wp_tiny_mce();
    	wp_enqueue_script('utils');
    	wp_admin_css();
    	wp_enqueue_script('sys_colorpicker',sys_scripts . '/mColorPicker.js');
    		wp_enqueue_script('sys_empty',sys_scripts . '/empty.js');
    		wp_localize_script( 'sys_empty', 'sys_panel', array(
    			'SiteUrl' =>get_template_directory_uri(),
    			'clearpath' =>get_bloginfo('template_directory') . '/lib/admin/images/empty.png',
    			'colorpath' =>get_bloginfo('template_directory') . '/lib/admin/color/'
    		));
    }
    
    function my_admin_styles() {
    	wp_enqueue_style('thickbox');
    }
    
    add_action('admin_print_scripts', 'my_admin_scripts');
    add_action('admin_print_styles', 'my_admin_styles');

    With this disabled, the disappearing content issue is solved, but I’ve lost Cufon – which is a pain. I guess it’s not picking up my settings in the admin panel.
    Just looking for a way round that now.

    Will keep you posted!

    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Yes, sorry – that’s my condensed version of the comments to try and illustrate what it does – it seems fairly well marked up from that point of view!

    Thanks
    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Yep – path: /wp-content/themes/versatile/lib/functions/support_function.php

    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Right – looks like it’s down to the support_function.php file.

    It looks like it contains:

    // MENU WP3.0 VERSION SUPPORT
    //THEME AUTOMATIC FEED LINK FUNCTION
    // CUSTOM MENU MANAGER
    // ADMIN SYSPANEL CSS
    //THEME CSS LINKS
    // THEME JAVASCRIPT INCLUDES
    //ADMIN SYSPANEL JAVASCRIPT ENQUEUE
    // CUSTOM CUFON FONT SCRIPT INCLUDES
    // CUFON FOR ADMIN SYSPANEL

    I’ve tried disabling various bits but it just causes the site to kick up loads of errors – am well out of my depth at this point.

    Let me know if any of those are particularly notorious(!) or any other ideas based on this being the issue.

    Thanks again.
    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Ok, looks like its the theme – but I’m not 100% sure about that as I’m fairly sure it was happening on TwentyTen too yesterday, but it’s the only change now that consistently makes it work.

    My hosting people are still fiddling, and have apparently been for a few hours – so we’ll see what they come up with.

    I’ve emailed the theme developer, so *hopefully* they’ll be able to get it sorted, would be v annoyed to lose the theme – it’s perfect! ??

    Thanks
    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Ok – it’s started happening again ??

    It was fine all afternoon/evening yesterday – and I’ve just tried to post a new page and its not holding any content when I click Publish or Update!

    I’d rather not do another fresh install as it seems to be happening each time!

    I’ve tried a single blog install on the same server and that seems ok – but I’ve found with the multisite, it seems fairly sporadic – so hard to say for sure, I’ll keep trying it and update you if it starts disappearing too!

    I’m going to get in touch with my VPS host to see if it could be anything at their end, but would appreciate any thoughts from you guys too!

    Thanks!
    Jon

    Thread Starter jonfoster

    (@jonfoster)

    That’s sorted it – thanks so much for your help.

    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Will do.

    Thanks – I’ll let you know what happens.

    Jon

    Thread Starter jonfoster

    (@jonfoster)

    Mark – that’s worked perfectly – thank you SO much.

    Jon

Viewing 15 replies - 1 through 15 (of 17 total)