torsten
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: picture upload?really must be blind, now i got it.. 😉
thanx!Forum: Plugins
In reply to: BBCode Plugin Availablewould be very useful for me, but i cannot open the archive…is there a possibility to provide this plugin in zip-format?
Forum: Fixing WordPress
In reply to: parse error in my-hacks.phpfor example the recent comments hack:
function get_recent_comments($no_comments = 5, $comment_lenth = 5, $before = ‘- ‘, $after = ‘
‘, $show_pass_post = false) {
global $wpdb, $tablecomments, $tableposts;
$request = “SELECT ID, comment_ID, comment_content, comment_author FROM $tableposts, $tablecomments WHERE $tableposts.ID=$tablecomments.comment_post_ID AND post_status = ‘publish’ “;
if(!$show_pass_post) { $request .= “AND post_password =” “; }
$request .= “AND comment_approved = ‘1’ ORDER BY $tablecomments.comment_date DESC LIMIT $no_comments”;
$comments = $wpdb->get_results($request);
$output = ”;
foreach ($comments as $comment) {
$comment_author = stripslashes($comment->comment_author);
$comment_content = strip_tags($comment->comment_content);
$comment_content = stripslashes($comment_content);
$words=split(” “,$comment_content);
$comment_excerpt = join(” “,array_slice($words,0,$comment_lenth));
$permalink = get_permalink($comment->ID).”#comment-“.$comment->comment_ID;
$output .= $before . ‘‘ . $comment_author . ‘:
$output .= ‘” title=”View the entire comment by ‘ . $comment_author.'”>’ . $comment_excerpt . ‘…‘ . $after;
}
echo $output;
}
parse error in line 2 (or 3 if i leave the second line blank..)Forum: Fixing WordPress
In reply to: parse error in my-hacks.phpyes, i am using <?php…
i’ll think about upgrading, but i guess i will wait until the official version…Forum: Fixing WordPress
In reply to: Picture upload – where?well, i enabled that upload-option, but there is no upload-option…where should it be placed? i am a bit confused…
i am using wp 1.0.2…Forum: Fixing WordPress
In reply to: needs testing: pMachine 2.3 to WP 1.2 converterwell, i do not have much experience with msql, but i figured out that by adding a new column to the “wp_comments”-table i could import all my entries plus the comments without errors:
just add a column called “user_id” under phpmyadmin, and the above importer works fine!