Forum Replies Created

Viewing 15 replies - 61 through 75 (of 101 total)
  • Thread Starter hafman

    (@hafman)

    Thanks Esmi, i’ll look into that.
    Also i just looked again and the “Comment author must have a previously approved comment” option became clearer. It keeps new comments out unless by previously approved commenter!

    That solves my problem for the time being as most spammy stuff uses random emails and identities all the time

    Forum: Hacks
    In reply to: get slug from given id
    Thread Starter hafman

    (@hafman)

    ok, not sure if it’s slugs on toast or ‘spaghetti con slugs’ but it works now after consulting the ACF code examples

    $values = get_field('slideset_slug');//should be called slideset_id!
    	if($values) {
    	foreach($values as $slid)//blah blah blah give me the key
    	{
    	$term = get_term($slid, 'slide-set');
    	$slug = $term->slug;
    	}
    }
    	$slideLoop = new WP_Query( array(
    	'post_type' => 'slide',
    	'posts_per_page' => 10,
    	'slide-set' => $slug //ca chunk
    	));

    Thanks for this, i just got a stalled js slider working in Magazinium with this info. Much obliged.

    Thread Starter hafman

    (@hafman)

    snap! I’m using unlimited as well. I haven’t made much progress with them, rather ‘learned to live with it’. They did eventually set up a fail safe so that the websites wouldn’t time out.

    I think it has to do with their configuration and i suspect they’re always busy taming an unruly cloud. I’ve been monitoring the sites with mon.itor.us and although i’ve had frequent warnings of downtime the sites have always come up when i tried the link.

    It’s a shame because unlimited are very helpful and reasonable. Cloud servers are still quite a new thing.

    Thread Starter hafman

    (@hafman)

    An update to this mystery:

    In Permalinks i set it to default. The message came back “Permalink structure updated” but still with the mass of errors:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/options-permalink.php on line 132
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/options-permalink.php on line 132
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/options-permalink.php on line 132
    
    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/includes/misc.php on line 133
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/includes/misc.php on line 133
    
    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/var/www/vhosts/.htaccess) is not within the allowed path(s): (/var/www/vhosts/the_domain.co.uk/httpdocs:/tmp) in /var/www/vhosts/the_domain.co.uk/httpdocs/wordpress_directory/wp-admin/includes/misc.php on line 133

    I tested the site and there were still pretty links but all going to the wrong pages!

    I restored my custom structure and clicked save, got the errors and this time a warning of htaccess not being writeable. However things were running properly on the site again. Weird.

    Thread Starter hafman

    (@hafman)

    I did in the end after trying mod rewrite hacks and plugins. The rewrite thing however led me to sort out my custom post type in functions.php so that i had

    'rewrite' => Array('slug' => 'exhibition')

    in the array under register_post_type

    That made everything work. So i’d say sort out the functions first.

    In other words the path to the pages was being messed up, hence the 404.

    I went with wp_navi in the end too because i wanted page breaks that looked consistent with the archives. wp-paginate doesn’t do page breaks yet as far as i know.

    Thread Starter hafman

    (@hafman)

    This seems to work now with Google Checkout. I had to put in a paypal address and return URL in the settings page but that got it working.

    Thanks for the update!

    I get the same error but the shortcodes work ok. It also seems to link to Paypal and Google for processing but with errors.

    Hello,
    In your flash content it might be wise to use absolute URLs as the paths are more truncated in a wordpress site.

    Thread Starter hafman

    (@hafman)

    Here is the code i used and i’m trying adapt it to access the wp_term_taxonony table.

    if(!get_option('custom_type_updated')){
    global $wpdb;
    $wpdb->query("UPDATE $wpdb->wp_term_taxonomy SET taxonomy = 'imggallery' WHERE taxonomy = 'imgGallery'");
    update_option('custom_type_updated','true');
    }

    Nothing doing yet that i can see in the database

    Thread Starter hafman

    (@hafman)

    I just found this link to stack exchange and tried it, adding a function to functions.php that has successfully renamed the post type. All the links have come back on in the admin. Still nothing out front though.

    Thread Starter hafman

    (@hafman)

    Actually i can’t copy anything over as the editing is locked and the content is not viewable, Doh! No choice but to fiddle with the database…… hmmm….

    Thread Starter hafman

    (@hafman)

    Well, i tried to edit that post (noticing that <code> messed it up) and the edit link kept re-directing me to the front page..

    Also i ticked to be informed by email and nothing has come yet so sorry i’m late to reply.

    what i meant to say was:

    I get a <code> tag placed in the page that seems to change all the <h3> headings into courier font. The website i’m working on uses Magazinium theme by wpzoom

    Thread Starter hafman

    (@hafman)

    I’ve done it by editing ‘eventcalendar3.php’ like so:

    // THIS IS THE CODE THAT PUTS A STRING IN THE TOP OF EACH POST. NOTE THE ADDED FORMATTING
      if($post->ec3_schedule)
      {
        $schedule=ec3_get_schedule('%s; ',"%1\$s %3\$s %2\$s. ",'<span style="font-size:12px;"><strong>%s</strong></span> ');
        $text=$schedule.$text;
      }

    Would there be a way to do this more cleanly from functions.php with an override?

    Forum: Plugins
    In reply to: pageMash Broken suddenly
    Thread Starter hafman

    (@hafman)

    Hi there,

    PageMash in it’s original form doesn’t seem to be developed any more. I found this one works well with WordPress 3+ It’s the same plugin with appropriate modification.

    http://binarym.com/2010/pagemash-trash-auto-draft-and-wordpress-3-0/

Viewing 15 replies - 61 through 75 (of 101 total)