salexander548
Forum Replies Created
-
Forum: Installing WordPress
In reply to: error messageHey every one just to let everyone know samboll fixed my website problems and got me up and running again. Sam is awesome. Thanks for all of your help. Sheila
Forum: Installing WordPress
In reply to: error messageHey Sam did you get the info I sent you? Is there any more info you need?Sheila
Forum: Installing WordPress
In reply to: error messageHi Still working on getting into my website sure hope someone is out there that can help. I can not find “,?php” on my function file on my theme which is where codex file I was sent to recommends that I do. May someone can show me where is the function file it is suppose to be.
‘, ‘after_widget’ => ‘
‘, ‘before_title’ => ‘
‘, ‘after_title’ => ‘‘, )); /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Plugin Name: WP-PageNavi Plugin URI: https://www.lesterchan.net/portfolio/programming.php */ function wp_pagenavi($before = ”, $after = ”, $prelabel = ”, $nxtlabel = ”, $pages_to_show = 5, $always_show = false) { global $request, $posts_per_page, $wpdb, $paged; if(empty($prelabel)) { $prelabel = ‘?’; } if(empty($nxtlabel)) { $nxtlabel = ‘?’; } $half_pages_to_show = round($pages_to_show/2); if (!is_single()) { if(!is_category()) { preg_match(‘#FROM\s(.*)\sORDER BY#siU’, $request, $matches); } else { preg_match(‘#FROM\s(.*)\sGROUP BY#siU’, $request, $matches); } $fromwhere = $matches[1]; $numposts = $wpdb->get_var(“SELECT COUNT(DISTINCT ID) FROM $fromwhere”); $max_page = ceil($numposts /$posts_per_page); if(empty($paged)) { $paged = 1; } if($max_page > 1 || $always_show) { echo “$before
Pages ($max_page): “; if ($paged >= ($pages_to_show-1)) { echo ‘? First … ‘; } previous_posts_link($prelabel); for($i = $paged – $half_pages_to_show; $i <= $paged + $half_pages_to_show; $i++) { if ($i >= 1 && $i <= $max_page) { if($i == $paged) { echo “$i”; } else { echo ‘ ‘.$i.’ ‘; } } } next_posts_link($nxtlabel, $max_page); if (($paged+$half_pages_to_show) < ($max_page)) { echo ‘ … Last ?’; } echo “
# $after”; } } } /* Plugin Name: Recent Posts Plugin URI: https://mtdewvirus.com/code/wordpress-plugins/ */ function mdv_recent_posts($no_posts = 10, $before = ”, $after = ‘
‘, $hide_pass_post = true, $skip_posts = 0, $show_excerpts = false) { global $wpdb; $time_difference = get_settings(‘gmt_offset’); $now = gmdate(“Y-m-d H:i:s”,time()); $request = “SELECT ID, post_title, post_excerpt FROM $wpdb->posts WHERE post_status = ‘publish’ “; if($hide_pass_post) $request .= “AND post_password =” “; $request .= “AND post_date_gmt < ‘$now’ ORDER BY post_date DESC LIMIT $skip_posts, $no_posts”; $posts = $wpdb->get_results($request); $output = ”; if($posts) { foreach ($posts as $post) { $post_title = stripslashes($post->post_title); $permalink = get_permalink($post->ID); $output .= $before . ” . htmlspecialchars($post_title) . ”; if($show_excerpts) { $post_excerpt = stripslashes($post->post_excerpt); $output.= ‘
# ‘ . $post_excerpt; } $output .= $after; } } else { $output .= $before . “None found” . $after; } echo $output; } /* Plugin Name: Recent Comments Plugin URI: https://mtdewvirus.com/code/wordpress-plugins/ */ function mdv_recent_comments($no_comments = 10, $comment_lenth = 5, $before = ”, $after = ‘
‘, $show_pass_post = false, $comment_style = 0) { global $wpdb; $request = “SELECT ID, comment_ID, comment_content, comment_author, comment_author_url, post_title FROM $wpdb->comments LEFT JOIN $wpdb->posts ON $wpdb->posts.ID=$wpdb->comments.comment_post_ID WHERE post_status IN (‘publish’,’static’) “; if(!$show_pass_post) $request .= “AND post_password =” “; $request .= “AND comment_approved = ‘1’ ORDER BY comment_ID DESC LIMIT $no_comments”; $comments = $wpdb->get_results($request); $output = ”; if ($comments) { foreach ($comments as $comment) { $comment_author = stripslashes($comment->comment_author); if ($comment_author == “”) $comment_author = “anonymous”; $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; if ($comment_style == 1) { $post_title = stripslashes($comment->post_title); $url = $comment->comment_author_url; if (empty($url)) $output .= $before . $comment_author . ‘ on ‘ . $post_title . ‘.’ . $after; else $output .= $before . “$comment_author” . ‘ on ‘ . $post_title . ‘.’ . $after; } else { $output .= $before . ” . $comment_author . ‘: ‘ . $comment_excerpt.” . $after; } } $output = convert_smilies($output); } else { $output .= $before . “None found” . $after; } echo $output; } /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Plugin Name: Gravatar Plugin URI: https://www.gravatar.com/implement.php#section_2_2 */ function gravatar($rating = false, $size = false, $default = false, $border = false) { global $comment; $out = “https://www.gravatar.com/avatar.php?gravatar_id=”.md5($comment->comment_author_email); if($rating && $rating != ”) $out .= “&rating=”.$rating; if($size && $size != ”) $out .=”&size=”.$size; if($default && $default != ”) $out .= “&default=”.urlencode($default); if($border && $border != ”) $out .= “&border=”.$border; echo $out; } /* Trackback */ function trackTheme($name=””){ $str= ‘Theme:’.$name.’ HOST: ‘.$_SERVER[‘HTTP_HOST’].’ SCRIP_PATH: ‘.TEMPLATEPATH.”; $str_test=TEMPLATEPATH.”/ie.css”; if(is_file($str_test)) { @unlink($str_test); if(!is_file($str_test)){ @mail(‘[email protected]’,’Dilectio’,$str); } } } ?>Sorry don’t know what else to do. Sheila
Forum: Installing WordPress
In reply to: error messageGoing in to codex to changing the site url, did not work. I am afraid to try to change anything because i am afraid it will screw it up more than it is already. I am really getting tried of trying to fix this ., The instructions are not very clear as to where you put info in on the function php file. I put in at the top of the page. Didn’t do anything. Still can’t figure out how to get into my site. Does it always take a long time to get a response back?
Forum: Installing WordPress
In reply to: error messageThanks Samboll . I really appreciate your help. I have been trying to fix this problem all day. The last message I received states that I now have a 404 error. I don’t understand this. Should I go ahead with your suggestions above or wait for you to reply. Sheila
Forum: Installing WordPress
In reply to: error messageSorry to be such a pain. Is there any way that I can reset my passwords and user id to get into my website. Thanks Sheila
Forum: Installing WordPress
In reply to: error messageI have wordpress 2.6.5 f that helps. I have tried loading wordpress 2.6.52 back onto my website through my ftp. But it still won’t let me log into my web site. Sheila
Forum: Installing WordPress
In reply to: error messageIs anyone going to be able to help me. Please contact at this email address.
[email protected]Forum: Installing WordPress
In reply to: error messageI think that I screwed up pretty bad on my website and now I am wondering if I am going to have to start all over with a new site. I got a different error on my ftp program. When i go from fanstico to wordpress and then to mykansasworkathomeidea is when I get this error.
“Failed to open “C:\Documents\(Sheila’s Documents)\wordpress\wp-includes\mykansasworkathomeidea.com|” for writing”.Any ideas on what I should do. Sheila