ColdForged
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Marked comment as spam, but it’s still under comments in sidebar…Looks like an old version of the theme… the version I downloaded from the author’s site has a where clause.
Forum: Fixing WordPress
In reply to: Marked comment as spam, but it’s still under comments in sidebar…And it gets the comments from…? What’s the “SELECT” statement in your version? Should look something like:
if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, ...Forum: Fixing WordPress
In reply to: category in title on post pagesthe_category()is only valid from within The Loop. You’ll have to initiate your Loop in your header, then reset it. Something like:if ( is_single() ) { the_post(); ?> » <?php the_category(', '); ?> <?php rewind_posts(); } wp_title(); ?>Forum: Fixing WordPress
In reply to: Marked comment as spam, but it’s still under comments in sidebar…Whatever your using to display those recent comments apparently doesn’t handle spam comments appropriately. Is it a plugin? If so, look for an update to the plugin.
Forum: Fixing WordPress
In reply to: images don’t show properlySee this thread, it may help.
Forum: Everything else WordPress
In reply to: Anyone Succeeding with 1.5.1?No problems.
Forum: Plugins
In reply to: array_rand helpGood luck, I’m sure you’ll get it.
Forum: Plugins
In reply to: array_rand helpBear in mind, if that
if (file_exists($dir."/".$quotefile))condition fails,$quotewill be NULL as well. Right now that’s just, to be honest, poorly structured. You should at the minimum have that condition bound the entire logic block or simply return outright. But, this isn’t PHP 101 either :).Forum: Plugins
In reply to: array_rand helpWhat did you get for the
var_dumpwhen it was in? And first argument to what has to be an array?Forum: Requests and Feedback
In reply to: 1.5.1 cvs tag missing?WordPress has moved to SVN.
Forum: Plugins
In reply to: array_rand helpYou’ve defined
$quotetitle,$quotefile,$dir, and$urlin the global namespace, but you haven’t provided references from within your function to the global variables. Either move those existing declarations within the function or create global references (e.g.global $url, $dir, ...) at the top of your function.Forum: Plugins
In reply to: array_rand helpTry doing a
var_dump()of$quoteright before yourarray_rand()call. Then, try removing the1parameter from the call just to see if that works.Forum: Plugins
In reply to: array_rand helpHard to tell without a definition of
$quote. Is it possible that$quotehas zero elements?Forum: Fixing WordPress
In reply to: text formatting: textile, textile 2 etc. Do you guys use them?I use Markdown, primarily because I dig the syntax.
Forum: Themes and Templates
In reply to: Adding field to Comments form in mx4 themeAlrighty. Were I to approach this, I’d add a new field to the
wp_commentstable in the database with the appropriate data type —textorvarcharlikely — with whatever name makes sense. For this example, let’s say it’s namedcomment_bungus.Next, edit
wp-comment-post.phpin the root of your WordPress installation and massage the variable from the$_POSTarray into the existing$commentdatavariable .Now, edit
wp-includes/functions-post.phpand add the appropriate code to populate the database with this new field into thewp_new_comment()function.Finally, edit
wp-includes/comment-functions.phpand modify thecomments_template()function to populate the$comment_bungusvariable for later population in your web form.That should get you where you want to be.