Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • The warnings relate to the &= assignments in wp-settings.php being deprecated in php 5.3 so it’s not an error in the plugin.

    I would’ve thought that setting WP_DEBUG to false would suppress the messages but for some reason that doesn’t work for me.

    I just added error_reporting(0); to the top of mrp-search.php and that supresses the warnings.

    This is on WordPress 3.0.4, maybe they’ll fix the code in future upgrades?

    artflutter

    (@artflutter)

    Thanks froman118, that version is working for me fine.

    I’m still not any closer to working out what the original problem is though. scriptalicous, prototype, jquery are all loaded.

    artflutter

    (@artflutter)

    I have my page order working on a site using wordpress 2.6.3, and not working on a site using wordpress 2.6.3

    I am using wp_list_pages('sort_column=menu_order&title_li=&depth=1'); in the header to display the main menu.

    The problem I’m having is that I reorder the pages using the my order plugin and hit save. If I then return to the plugin page the order has been reset to the default. For some reason the plugin just wont save any of my changes. All files have full write permission so I have no idea what is causing this problem.

    Thread Starter artflutter

    (@artflutter)

    Figured it out in the end. For reference code used is below.

    <?php
    $attargs = array(
    'post_type' => 'attachment',
    'post_mime_type' => 'image',
    'post_parent' => $post->ID);
    
    $attachments = get_children($attargs);
    if ($attachments) {
    	foreach ($attachments as $post) {
    		?>
    		<img src="<?php echo wp_get_attachment_url($post->ID); ?>" alt="<?php the_excerpt(); ?>" title="<?php the_title(); ?>" class="staff-img" />
    		<?php
    		break; //only display first image
    	}
    }
    ?>

    Thanks wildpawtrax, I had setup a redirect using the redirection plugin but this solution is infinitely better.

    I put in a request 2 days ago and haven’t heard anything, I thought there would at least be an e-mail letting me know that the request is waiting to be processed.

    Thread Starter artflutter

    (@artflutter)

    Hi adamh, thanks for the tip but unfortunately it didn’t work for me. I’m sure it would be possible to get it working but I think at the moment I’ll just leave things as they are.

    Thread Starter artflutter

    (@artflutter)

    whooami I was hoping you’d be able to elaborate further on how I can set $fromsite = get_bloginfo(‘name’); as a global in file a, so I can access it in file b.

    file a is basically a form plus my variable $fromsite.

    <?php $fromsite = get_bloginfo('name'); ?>
    <form name="form" action="fileb.php>
    <input type="submit/>
    </form>

    and lets say in file b I just want to echo the variable
    <?php echo $fromsite ?>

    What code do I need to add to make $fromsite accessible from fileb?

    Thread Starter artflutter

    (@artflutter)

    Thanks ninjaboy, I’m glad I’m not the only person frustrated by the many javascript libraries which slow down the loading of every site. While yours is a good idea and would work well, the yahoo developer network actually recommends inserting javascript at the end of the <body>, which I have done so far with no ill-effects. This has the benefit of the page with the plugin loading faster and unnecessary script wont be loaded in the <head> of every page.

    On a side note I have been using Packer to compress all my javascript files which has also speed up site loading times. It can shrink the 180kb uncompressed mootools library down to just 19kb with gzip compression.

    Thread Starter artflutter

    (@artflutter)

    Well I do plan on sharing it if I eventually get it working. I’ll just wp_enqueue mootools and the js and css files I can include at the bottom of the body.

    Thread Starter artflutter

    (@artflutter)

    thanks for the replies, adamh I initially had my contact form within one html file but I had problems implementing the ajax sumbit and the only way I was able to fix it was to seperate the front-end from the back-end.

    In my second file I am accessing the variables using $_POST[‘varname’] so I can just add to my original form using hidden inputs like

    <input type="hidden" name="blogname" value="$blogname">

    The only problem with using that method is that one of the variables that I want to pass is an email address using get_the_author_email(). Using a hidden input in the form means that anyone can view this email address by viewing the page source. Is there an alternative way to post this variable?

    Thread Starter artflutter

    (@artflutter)

    I have been investigating and found that almost every WordPress plugin includes its required javascript using the wp_head function. Surely there must be a more efficient way, especially since some plugins are only ever used on one page (i.e. contact form plugin). I have been able to include some of the javascript within the body but I have not been able to get the wp_enqueue function to work within the body of my function.

    I am trying to include mootools which is quite large and only used on one page of my site, so obviouslly I don’t want it to load on every page. I could try including it in the body but I want to use the wp_enqueue function to avoid any conflicts with the many other plugins which also use mootools.

    I would appreciate some advice/thoughts from other plugin authors.

    Thread Starter artflutter

    (@artflutter)

    I have viewed pretty much all the wordpress contact form but thus far have been unable to figure out how to resolve this problem.

    my contact forms main php file is called myplugin.php, when you click submit it is processed by another php file called send.php. I assume that in my original php file I need to somehow let wordpress know that send.php is also part of the plugin and I want it to be able to use wordpress’ functions. But how do I do this?

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