Suport » Probleme și soluții » Problema rss

Vizualizare 10 răspunsuri - 1 la 10 (din 10 în total)
  • <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/slider.css" media="screen" />	
    
    <?php
    wp_enqueue_script('jquery');
    wp_enqueue_script('swfobject');
    ?>
    
    <script type="text/javascript"><!--//--><![CDATA[//><!--
    sfHover = function() {
    	if (!document.getElementsByTagName) return false;
    	var sfEls1 = document.getElementById("catmenu").getElementsByTagName("li");
    	for (var i=0; i<sfEls1.length; i++) {
    		sfEls1[i].onmouseover=function() {
    			this.className+=" sfhover1";
    		}
    		sfEls1[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
    		}
    	}
    		var sfEls1 = document.getElementById("menu").getElementsByTagName("li");
    	for (var i=0; i<sfEls1.length; i++) {
    		sfEls1[i].onmouseover=function() {
    			this.className+=" sfhover";
    		}
    		sfEls1[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    		}
    	}
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);
    //--><!]]></script>
    
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php
    if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
    wp_head(); ?>
    
    </head>
    <body>
    
    <div id="masthead">
    <div id="catmenucontainer">
    
    	<?php wp_nav_menu( array( 'container_id' => 'catmenu','theme_location' => 'primary','fallback_cb'=> '' ) ); ?>
    
    </div>
    <div id="top"> 
    
    <div class="blogname">
    	<h1><a href="<?php bloginfo('siteurl');?>/" title="<?php bloginfo('name');?>"><?php bloginfo('name');?></a></h1>
    	<h2><?php bloginfo('description'); ?></h2>
    </div>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    <div class='feedlist'>
    
    <ul>
    	<li class="getshort"><a href="<?php bloginfo('rss2_url'); ?>" ><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.png" title="subscribe" alt="RSS"/></a></li>
    	<li class="getshort"><a href="http://del.icio.us/post?url=<?php bloginfo('siteurl');?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/delicious.png" title="Delicious" alt="Delicious"/></a> </li>
    	<li class="getshort"><a href="http://www.digg.com/submit?phase=2&url=<?php bloginfo('siteurl');?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/digg.png" title="Digg" alt="Digg"/></a></li>
    	<li class="getshort"><a href="<?php $face = get_option('pegas_face'); echo ($face); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/facebook.png" title="Facebook" alt="Facebook"/></a></li>
    	<li class="getshort"><a href="http://twitter.com/<?php $twit = get_option('pegas_twit'); echo ($twit); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/twitter.png" title="Twitter" alt="Twitter"/></a></li>
    	<li class="getshort"><a href="<?php $linkd = get_option('pegas_linkd'); echo ($linkd); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/linkedin.png" title="Linkedin" alt="Linkedin"/></a></li>
    	<li class="getshort"><a href="<?php $yout = get_option('pegas_yout'); echo ($yout); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/youtube.png" title="Youtube" alt="Youtube"/></a></li>
    </ul>
    
    </div>
    
    </div>
    
    </div>
    
    <div id="wrapper">
    
    <div id="casing" class="rounded dropshadow">
    <div id="foxmenucontainer">
    		<?php wp_nav_menu( array( 'container_id' => 'menu', 'theme_location' => 'secondary','fallback_cb'=> '' ) ); ?>
    </div>
    
    		<?php if (is_front_page()) { ?>
    <?php include (TEMPLATEPATH . '/slide.php'); ?>
    <?php } ?>
    Moderator Eugen Paun

    (@pauneugen-1)

    Feed-ul arată ok pentru mine, bănuiesc că s-a rezolvat?

    ma intrebam daca se poate da un redirect sau sa il duc doar pe un anumit feed..de ex :
    http://feeds.feedburner.com/crissm instead.. el ma duce la
    http://crissm.eu/feed/
    cum sa se aboneze baietii?:(

    Moderator Eugen Paun

    (@pauneugen-1)

    Ma poti ajuta putin?:(

    <?php
    include 'theme_options.php';
    include 'guide.php';
    
    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    	'name' => 'Sidebar',
        'before_widget' => '<li id="%1$s" class="sidebox %2$s">',
        'after_widget' => '</li>',
    	'before_title' => '<h3 class="sidetitl">',
        'after_title' => '</h3>',
        ));
    
    register_sidebar(array(
    	'name' => 'Footer',
        'before_widget' => '<li id="%1$s" class="botwid %2$s">',
        'after_widget' => '</li>',
    	'before_title' => '<h3 class="bothead">',
        'after_title' => '</h3>',
        ));		
    
    register_nav_menus( array(
    		'primary' => __( 'Primary Navigation', '' ),
    		'secondary' => __( 'Secondary Navigation', '' ),
    	) );	
    
    function new_excerpt_length($length) {
    	return 70;
    }
    add_filter('excerpt_length', 'new_excerpt_length');
    
    function new_excerpt_more($more) {
    return '<a href="'. get_permalink($post->ID) . '">' . '&nbsp;&nbsp;[ Read More ]' . '</a>';
    }
    add_filter('excerpt_mai mult', 'new_excerpt_more');
    
    if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
    	add_theme_support( 'post-thumbnails' );
    	add_image_size( 'pegas_post', 200, 150, true );
    }
    
    function pegas_post_image(){
    if ( has_post_thumbnail() ) {
    	 the_post_thumbnail( 'pegas_post', array('class' => 'postimg') );
    } else {
    ?>
    
    <?php
    };
    }
    
    $new_meta_boxes =
    array(
    	"slides" => array(
    	"name" => "slider",
    	"std" => "",
    	"title" => "Slide image url",
    	"description" => "
    		<p><b> Please check the following before entering image url</b></p>
    		<p> 1. Use only images uploaded to your wp-content/uploads folder. The image size should be of <b>980x300</b> pixels </p>
    		<p> 2. Enter only the part of the image url which follows the wp-content/uploads/ </p>
    		<p>( Example: If your image url is http://yoursite.com/wp-content/uploads/2010/04/image.jpg, only enter <b> 2010/04/image.jpg</b> in the text field.)</p>
    	"
    ),
    );
    
    function new_meta_boxes() {
    global $post, $new_meta_boxes;
    
    foreach($new_meta_boxes as $meta_box) {
    $meta_box_value = get_post_meta($post->ID, $meta_box['name'].'_value', true);
    
    if($meta_box_value == "")
    $meta_box_value = $meta_box['std'];
    
    echo'<input type="hidden" name="'.$meta_box['name'].'_noncename" id="'.$meta_box['name'].'_noncename" value="'.wp_create_nonce( plugin_basename(__FILE__) ).'" />';
    
    echo'<h2 style=" margin:0px; padding:0px 3px; font-style:normal; font-family:Tahoma; font-size:13px;font-weight:bold;">'.$meta_box['title'].'</h2>';
    
    echo'<input type="text" name="'.$meta_box['name'].'_value" value="'.$meta_box_value.'" size="95" /><br />';
    
    echo'<p><label for="'.$meta_box['name'].'_value">'.$meta_box['description'].'</label></p>';
    }
    }
    function create_meta_box() {
    global $theme_name;
    if ( function_exists('add_meta_box') ) {
    add_meta_box( 'new-meta-boxes', '3D slider image', 'new_meta_boxes', 'post', 'normal', 'high' );
    }
    }
    function save_postdata( $post_id ) {
    global $post, $new_meta_boxes;
    
    foreach($new_meta_boxes as $meta_box) {
    // Verify
    if ( !wp_verify_nonce( $_POST[$meta_box['name'].'_noncename'], plugin_basename(__FILE__) )) {
    return $post_id;
    }
    
    if ( 'page' == $_POST['post_type'] ) {
    if ( !current_user_can( 'edit_page', $post_id ))
    return $post_id;
    } else {
    if ( !current_user_can( 'edit_post', $post_id ))
    return $post_id;
    }
    
    $data = $_POST[$meta_box['name'].'_value'];
    
    if(get_post_meta($post_id, $meta_box['name'].'_value') == "")
    add_post_meta($post_id, $meta_box['name'].'_value', $data, true);
    elseif($data != get_post_meta($post_id, $meta_box['name'].'_value', true))
    update_post_meta($post_id, $meta_box['name'].'_value', $data);
    elseif($data == "")
    delete_post_meta($post_id, $meta_box['name'].'_value', get_post_meta($post_id, $meta_box['name'].'_value', true));
    }
    }
    add_action('admin_menu', 'create_meta_box');
    add_action('save_post', 'save_postdata');
    
    ?>

    Asta e functions.php 🙁

    De aci nu pot face nimic? am gasit rss.php :S

    <?php
    /**
     * Redirects to the RSS feed
     * This file is deprecated and only exists for backwards compatibility
     *
     * @package WordPress
     */
    
    require( './wp-load.php' );
    wp_redirect( get_bloginfo( 'rss_url' ), 301 );
    exit;
    ?>

    Moderator Eugen Paun

    (@pauneugen-1)

    Ți-am explicat cum anume se face redirectul, articolul acela e destul de clar, cred. De ce îmi tot dai copy/paste din diverse fișiere?!

    Am luat o tema de pe wp.. si am modificato.. bun.. aici m-am blocat si anume cum fac ca butonasul gen feed/subcribe.. sa ma duca la adresa mea de feedburner.. am incercat cu un plugin din cele recomandate de tine. nu merge il incerc si pe al 2 – lea
    Atat vreau..
    Am incercat si prin .htaccess.. si tot nimic

    Moderator Eugen Paun

    (@pauneugen-1)

    CTRL + F5, redirectarea va fi activa dupa publicarea primului articol.

    Iti multumesc omule’.
    🙂
    /topic closed

Vizualizare 10 răspunsuri - 1 la 10 (din 10 în total)
  • Subiectul ‘Problema rss’ este închis pentru noi răspunsuri.