problem about 3.0-Collection of common programming errors


  • hakre
    3.0 admin memory
    I’m building a site for a photographer who uploads pictures that are normally large for todays digital cameras. Images are quite memory intensive, especially the image operations like creating thumbnails.So I wanted to raise the memory limit in the admin above 256MB – how can this be done? I allowed CGI and PHP to use up to 1 Gigabyte but wordpress always decreases the memory to 256MB. Any idea how to fix that on a client side that needs to be able to auto-update?UPDATE: From WordPress 3.2 ongoi

  • Alex
    3.0 php comments search
    Basically I want to develop the ability to search comments on my site. A form with input field where the visitor can enter a search string, which tells WP to display only comments that contain that search phrase.I think the best way to do this is by making a custom comments_template() function, then filtering out comments that don’t contain $_GET[‘search_phrase’].Any pointers/suggestions, especially on the SQL part are welcome 🙂

  • adhocgeek
    3.0
    I’ve been trying to write a post about a simple Windows Powershell script for the last few hours, but when I try to preview the post with the script included, it takes down my server.Unfortunately the server isn’t mine to control (it’s hosted by 34sp.com) so I’m limited in what I can do to diagnose the issue – I’m not sure where I’d start anyway.The problem seems to stem from including the following lines in the post :<pre>$camera_getid.Parameters.Add(“@CameraGUID”, [System.Data.SqlDbType]

  • Rise
    custom-taxonomy 3.0 taxonomy terms
    I currently have a taxonomy called wpsc_product_category. Under that taxonomy I have several terms used as sub-categories, and finally each sub-category has a number of products. I’m trying to use wp_list_categories to show an ul starting from the parent category of the current product your are viewing. ¿Is this possible?<?php $taxonomy = ‘wpsc_product_category’; $orderby = ‘name’; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hier

  • OleVik
    plugins theme-development 3.0
    I could not find a thread discussing this, so starting this one.I am currently working on a rather elaborate theme for 3.1+, and by elaborate I mean that in addition to styling and regular front-end functionality, I am including plugins at the core of the theme, both for back-end and front-end. So, to keep this a little more organized, I split this into three questions:Is integrating plugins a common practice? What are the implications/complications in regards to auto-updating the theme/plugins?

  • milesmeow
    3.0 upgrade
    I have my wordpress install under svn. I was on version 2.9.2. These were the steps I took:saved a copy of my current wordpress directory cd into my top level wordpress directory svn up (just to make sure that I have the latest of 2.9) svn sw http://core.svn.wordpress.org/tags/3.0.1/ . (upgrade) run wp-admin/upgrade.php got this error “Fatal error: Call to undefined function is_multisite() in (my install directory)/wordpress/wp-includes/wp-db.php on line 505″I looked around and some people thin

  • hakre
    3.0 plugin-development widgets
    I’ve posted a bug-report about this a few months ago (on WordPress trac (Widget Instance Form Update Bug)) and I thought I’d try writing about it here too. Maybe someone has a better solution to this issue than me.Basically the problem is that if you drop a widget into a sidebar, the widget form doesn’t get updated until you manually press save (or reload the page).This makes unusable all the code from the form() function that relies on the widget instance ID to do something (until you press the

  • Carl
    plugins 3.0 plugin-development
    I’m using WordPress 3.0.5 and have tested with 3.1rc4. In the main PHP file of my plugin, when I try to call is_plugin_active I get Call to undefined function is_plugin_active(). I can call add_action and add_filter. What should I check/change to fix this?This is happening inside of the admin on the Plugins page. At the top of my main plugin file I have, if (function_exists(‘is_plugin_active’)) { which always returns false.I also can’t see the functions from my main plugin file in other plugins

  • OleVik
    3.0 javascript
    I have a script that loads jQuery when an element comes into the viewport, as discovered by Javascript (without a library), and it looks like this:viewport.js:var height = 0; if( typeof( window.innerWidth ) == ‘number’ ) {//Non-IEheight = window.innerHeight; } else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {//IE 6+ in ‘standards compliant mode’height = document.documentElement.clientHeight; } else if ( document.bo

  • TheDeadMedic
    3.0 users page-template
    How are you?I have a blog which have 20 authors. I want to write code to show the 5 author who have more posts.like this:Adam (10 Posts) Khal (8 Posts) Yous (5 Posts) Moha (3 Posts) Yousef (1 Post)but I don’t know how can do it that