KULLANICI ADI : ŞİFRE Şifremi Unuttum*

Anasayfa İLLEG4L BANK KREDİ SATIN AL İLLEG4LİZM RAP Sub Domain Bulucu Arama Yap Yeni Konular Bugünki Konular

Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5
çok acil ufak bir kod hata alıyorum ama çözemedim lütfen yardım edermisiniz.
Konu : çok acil ufak bir kod hata alıyorum ama çözemedim lütfen yardım edermisiniz. - 31.01.2016, 08:51
Mesaj: #1
<?php

$tema = get_bloginfo('template_url'). '/';

function fs_theme_footer() {

echo "\n".fs_get_option('fs_tracking')."\n";

}
add_action('wp_footer','fs_theme_footer');
function fs_get_option($key) {

global $fs_options;
$fs_options = get_option('fs_options');

$fs_defaults = array(
'fs_logo' => get_bloginfo('template_url').'/images/logo.png'
);

foreach($fs_defaults as $k=>$v) {
if (!$fs_options[$k])
$fs_options[$k] = $fs_defaults[$k];
}

return $fs_options[$key];
}


// PANEL ENTEGRE ++
require_once( TEMPLATEPATH . '/admin/theme-options.php');
// özel alanlar entegre //
include(TEMPLATEPATH . '/admin/panel-ek.php');
// PANEL ENTERGE --

add_theme_support( 'nav-menus' );
register_nav_menu('menu1', 'Üst Menü');

add_theme_support( 'post-thumbnails' );
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'slayt', 379, 230, true );
add_image_size( 'slayt2', 85, 49, true );
add_image_size( 'dizi', 115, 97, true );
add_image_size( 'dizi2', 83, 70, true );
}
function wt_get_category_count($input = '') { global $wpdb; if($input == '') { $category = get_the_category(); return $category[0]->category_count; } elseif(is_numeric($input)) { $SQL = "SELECT $wpdb->term_taxonomy.count FROM $wpdb->terms, $wpdb->term_taxonomy WHERE $wpdb->terms.term_id=$wpdb->term_taxonomy.term_id AND $wpdb->term_taxonomy.term_id=$input"; return $wpdb->get_var($SQL); } else { $SQL = "SELECT $wpdb->term_taxonomy.count FROM $wpdb->terms, $wpdb->term_taxonomy WHERE $wpdb->terms.term_id=$wpdb->term_taxonomy.term_id AND $wpdb->terms.slug='$input'"; return $wpdb->get_var($SQL); } }
function yaziyi_kisalt($max_char, $more_link_text = '(devam...)', $stripteaser = 0, $more_file = '') { $content = get_the_excerpt($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_excerpt', $content); $content = str_replace(']]>', ']]&gt;', $content); if (strlen($_GET['p']) > 0) { echo $content; } else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) { $content = substr($content, 0, $espacio); $content = $content; echo $content; echo '...';} else { echo $content; }}

function Twitterpate() {

$twu = fs_get_option('fs_twitter'); if(substr($twu, 0,9)=="http://tw"){ $ismim = substr($twu, 19); } elseif(substr($twu, 0,9)=="http://ww"){ $ismim = substr($twu, 23); } else {$ismim=$twu;}
$username = $ismim;
$prefix = "<span>";

$suffix = "</span> ";

$feed = "http://search.twitter.com/" . $username . "&rpp=1";

function parse_feed($feed) {

/*** Getting Tweet text ***/
$step_one = explode("<content type=\"html\">", $feed);
$step_two = explode("</content>", $step_one[1]);
$tweet = $step_two[0];
$tweet = str_replace("&lt;", "<", $tweet);
$tweet = str_replace("&gt;", ">", $tweet);

return $tweet;
}

function iso8601_to_timestamp($datestr) {
$eregStr =
'([0-9]{4})-'. // centuries & years CCYY-
'([0-9]{2})-'. // months MM-
'([0-9]{2})'. // days DD
'T'. // separator T
'([0-9]{2}):'. // hours hh:
'([0-9]{2}):'. // minutes mm:
'([0-9]{2})(\.[0-9]+)?'. // seconds ss.ss...
'(Z|[+\-][0-9]{2}:?[0-9]{2})?'; // Z to indicate UTC, -/+HH:MM:SS.SS... for local tz's
if(ereg($eregStr,$datestr,$regs)){
// not utc
if($regs[8] != 'Z'){
$op = substr($regs[8],0,1);
$h = substr($regs[8],1,2);
$m = substr($regs[8],strlen($regs[8])-2,2);
if($op == '-') {
$regs[4] = $regs[4] + $h;
$regs[5] = $regs[5] + $m;
}
elseif($op == '+') {
$regs[4] = $regs[4] - $h;
$regs[5] = $regs[5] - $m;
}
}
return strtotime("$regs[1]-$regs[2]-$regs[3] $regs[4]:$regs[5]:$regs[6]Z");
}
else return false;
}


$twitterFeed = file_get_contents($feed);
return stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);
}

function get_all_views_count() {
global $wpdb;
$count = $wpdb->get_var($wpdb->prepare("SELECT SUM($wpdb->postmeta.meta_value) FROM $wpdb->postmeta WHERE $wpdb->postmeta.meta_key='views'"));
return $count;
}

function my_rss_link($output, $show)
{
if (in_array($show, array('rss_url', 'rss2_url', 'rss', 'rss2', '')))
$output = 'http://feeds.feedburner.com/fragmanist';

return $output;
}
add_filter('bloginfo_url', 'my_rss_link', 10, 2);
add_filter('feed_link', 'my_rss_link', 10, 2);



// ### YORUMLAR ###

function fs_yorumlar($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>

</li> id="#comment-<?php comment_ID(); ?>">
<div class="image">
<?php echo get_avatar($comment,67); ?>
</div>
<div class="postContent">
<div class="author">
<span><?php comment_author(); ?></span> demiÅŸ ki:
</div>
<div class="date">
<?php comment_time('d.m.Y'); ?>
</div>

<div class="clear"></div>

<div class="post">
<p><?php comment_text(); ?></p>
</div>
</div>
</li>

<?php } ?>
<?php
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'sidebarciftli',
'before_title' => '<div class="titless">',
'after_title' => '</div><div class="container">
<div id="tab1Content" class="content">
'
,
'before_widget' => '<span>',
'after_widget' => '<div class="clear"></div>
</div></div>'
,

));

function limit_words($string, $word_limit) {

// creates an array of words from $string (this will be our excerpt)
// explode divides the excerpt up by using a space character

$words = explode(' ', $string);

// this next bit chops the $words array and sticks it back together
// starting at the first word '0' and ending at the $word_limit
// the $word_limit which is passed in the function will be the number
// of words we want to use
// implode glues the chopped up array back together using a space character

return implode(' ', array_slice($words, 0, $word_limit));

}
}
?>







aldığım hata ise


Warning: file_get_contents(http://search.twitter.com/&rpp=1): failed to open stream: HTTP request failed! HTTP/1.0 410 Gone in/home/u6510398/public_html/wp-content/themes/TrendDizi/functions.php online 101




WWW Alıntı ile Cevapla
Konu : çok acil ufak bir kod hata alıyorum ama çözemedim lütfen yardım edermisiniz. - 02.02.2016, 10:55
Mesaj: #2
tweet yapan kişinin username linki Yanlış olduğu için gereken sayfaya gidemiyor bu yüzden kodlarda değişiklik yap

kod: $feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=2";

Alıntı ile Cevapla


Hızlı Menü:


Konuyu Okuyanlar: 1 Ziyaretçi
hd porno antalya escort türk ifşa porno izle türk ifşa porno samsun escort izmir escort ataşehir escort türk ifşa hd porno