artflutter
Forum Replies Created
-
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?
Forum: Plugins
In reply to: My Page Order Plugin Doesn’t Work!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.
Forum: Plugins
In reply to: My Page Order Plugin Doesn’t Work!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.
Forum: Fixing WordPress
In reply to: add image gallery in page template.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 } } ?>
Forum: Plugins
In reply to: Show child page when clicking parent link if parent have childrenThanks wildpawtrax, I had setup a redirect using the redirection plugin but this solution is infinitely better.
Forum: Plugins
In reply to: Plugin repository: Plugin doesn’t get approvedI 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.
Forum: Plugins
In reply to: using wordpress function getblog_info() in external php fileHi 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.
Forum: Plugins
In reply to: using wordpress function getblog_info() in external php filewhooami 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?
Forum: Plugins
In reply to: including javascript only on pages where plugin is usedThanks 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.
Forum: Plugins
In reply to: including javascript only on pages where plugin is usedWell 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.
Forum: Plugins
In reply to: using wordpress function getblog_info() in external php filethanks 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?
Forum: Plugins
In reply to: including javascript only on pages where plugin is usedI 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.
Forum: Plugins
In reply to: using wordpress function getblog_info() in external php fileI 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?