+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24

Thread: RSS not working on the right way?

  1. #1
    Senior Member
    Points: 933, Level: 17
    Level completed: 33%, Points required for next Level: 67
    Overall activity: 0%
    Achievements:
    Three FriendsRecommendation Second ClassCreated Blog entryTagger First Class1000 Experience Points
    Awards:
    Master Tagger
    Stephan's Avatar
    Join Date
    Jul 2010
    Location
    Sunny island
    Posts
    591
    Points
    933
    Level
    17
    Blog Entries
    1
    Downloads
    0
    Uploads
    6
    My Mood
    In Love

    Question RSS not working on the right way?

    I submit my sites RSS to Twitter bud the URL for the games not showing!?
    Here is the RSS feed:
    http://www.my-arcade-games.com/rss.php

    Here the Twitter account:
    http://twitter.com/myarcadegames

    My other account with feed from ATS is working fine.

    Thanks

  2. #2
    Code Monkey
    Points: 4,025, Level: 42
    Level completed: 50%, Points required for next Level: 75
    Overall activity: 99.2%
    Achievements:
    Tagger First Class1000 Experience Points1 year registered
    Awards:
    User with most referrers
    lfhost's Avatar
    Join Date
    Jul 2010
    Posts
    313
    Points
    4,025
    Level
    42
    Downloads
    0
    Uploads
    0
    My Mood
    Bored
    Heya,

    Open includes/rssfunctions.php

    find

    PHP Code:
    echo '<guid isPermaLink="true">'.$pathtofile.''.$res[$icounter][0].'-'.$newpageurl.'.html</guid>'
    replace with

    PHP Code:
    echo '<guid isPermaLink="true">'.$pathtofile.'playgame/'.$res[$icounter][0].'-'.$newpageurl.'.html</guid>'

  3. #3
    Senior Member
    Points: 933, Level: 17
    Level completed: 33%, Points required for next Level: 67
    Overall activity: 0%
    Achievements:
    Three FriendsRecommendation Second ClassCreated Blog entryTagger First Class1000 Experience Points
    Awards:
    Master Tagger
    Stephan's Avatar
    Join Date
    Jul 2010
    Location
    Sunny island
    Posts
    591
    Points
    933
    Level
    17
    Blog Entries
    1
    Downloads
    0
    Uploads
    6
    My Mood
    In Love

    You are the best!
    I wait till the update on Twitter and belief it works.
    Thank you

  4. #4
    Code Monkey
    Points: 4,025, Level: 42
    Level completed: 50%, Points required for next Level: 75
    Overall activity: 99.2%
    Achievements:
    Tagger First Class1000 Experience Points1 year registered
    Awards:
    User with most referrers
    lfhost's Avatar
    Join Date
    Jul 2010
    Posts
    313
    Points
    4,025
    Level
    42
    Downloads
    0
    Uploads
    0
    My Mood
    Bored
    No worries :P

  5. #5
    Senior Member
    Points: 933, Level: 17
    Level completed: 33%, Points required for next Level: 67
    Overall activity: 0%
    Achievements:
    Three FriendsRecommendation Second ClassCreated Blog entryTagger First Class1000 Experience Points
    Awards:
    Master Tagger
    Stephan's Avatar
    Join Date
    Jul 2010
    Location
    Sunny island
    Posts
    591
    Points
    933
    Level
    17
    Blog Entries
    1
    Downloads
    0
    Uploads
    6
    My Mood
    In Love

    No is not working?
    Here is my file:
    PHP Code:
    <?PHP
    /**
    * /includes/rssfunctions.php
    *
    * The title of this file is misleading, as there are currently no functions contained here.  Instead, this file outputs an RSS 2.0 feed of the AMCMS_articles table, and nothing more.
    * @package /includes/rssfunctions.php
    * @author Agares Media <sales@agaresmedia.com>
    * @copyright Copyright (c) 2007, Agares Media.  All rights reserved.
    */
    require_once('./register_globals.php');
    if (
    $RSSon == 1) {
    $sql 'SELECT primkey FROM AMCMS_games;';
    $numofarticles am_countrecords($db$sql);
    if (
    $numofarticles $RSSnum) {$RSSnum $numofarticles;}
    header("Content-type: application/xml");

    echo 
    '<?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    <title>'
    .$sitetitle.'</title>
    <link>http://' 
    $_SERVER['HTTP_HOST']. '</link>
    <description>'
    .$metadesc.'</description>
    <language>en-us</language>
    <pubDate>'
    .date("r").'</pubDate>
    <lastBuildDate>'
    .date("r").'</lastBuildDate>
    <docs>http://' 
    $_SERVER['HTTP_HOST']. '/rss.php</docs>
    <generator>AgaresWriter 2.1</generator>
    <atom:link href="http://www.yoursite.com/rss.php" rel="self" type="application/rss+xml" />'
    ;
    $pathtofile 'http://' $_SERVER['HTTP_HOST']. str_replace('rss.php','',$_SERVER['PHP_SELF']);
    $icounter 0;
    $res am_queries($db" SELECT * FROM `AMCMS_games` ORDER BY primkey DESC LIMIT 0 , $RSSnum;");
    while (
    $icounter $RSSnum) {
    if (
    $RSSdetail == 1) {$res[$icounter][2] = substr($res[$icounter][2], 0768);}
    echo 
    '    <item>
    <title>'
    .$res[$icounter][1].'</title>'
    if (
    $SEOFriendlyURLs == 1) {
            
    $rplce = array("!""@""#""$""%""^""&""*""("")""~""`""=""+""\\""'""\"""|"":"";""?""."",""/""[""{""]""}");
            
    $newpageurl str_replace(" ""-"strip_tags(trim(str_replace($rplce""$res[$icounter][1]))))  ;
            echo 
    '<guid isPermaLink="true">'.$pathtofile.''.$res[$icounter][0].'-'.$newpageurl.'.html</guid>';   
        } else {
    echo 
    '<guid isPermaLink="true">'.$pathtofile.'playgame/'.$res[$icounter][0].'-'.$newpageurl.'.html</guid>';
        }
        echo
    '<description><![CDATA['.strip_tags(htmlspecialchars_decode($res[$icounter][2])).'
          ]]></description>
         
          <content:encoded><![CDATA['
    .htmlspecialchars_decode($res[$icounter][2]).'
          ]]></content:encoded>
          <pubDate>'
    .date("r").'</pubDate>
        </item>
       
        '
    ;
        
    $icounter++;
    }

    echo 
    '</channel>
    </rss>'
    ;
    } else {
    echo 
    'RSS feeds are disabled on this site.';
    }
    ?>
    Thanks

  6. #6
    Code Monkey
    Points: 4,025, Level: 42
    Level completed: 50%, Points required for next Level: 75
    Overall activity: 99.2%
    Achievements:
    Tagger First Class1000 Experience Points1 year registered
    Awards:
    User with most referrers
    lfhost's Avatar
    Join Date
    Jul 2010
    Posts
    313
    Points
    4,025
    Level
    42
    Downloads
    0
    Uploads
    0
    My Mood
    Bored
    You updated the NON seo url lol.

    Use

    PHP Code:
    <?PHP
    /** 
    * /includes/rssfunctions.php 

    * The title of this file is misleading, as there are currently no functions contained here.  Instead, this file outputs an RSS 2.0 feed of the AMCMS_articles table, and nothing more. 
    * @package /includes/rssfunctions.php 
    * @author Agares Media <sales@agaresmedia.com> 
    * @copyright Copyright (c) 2007, Agares Media.  All rights reserved. 
    */ 
    require_once('./register_globals.php'); 
    if (
    $RSSon == 1) { 
    $sql 'SELECT primkey FROM AMCMS_games;'
    $numofarticles am_countrecords($db$sql); 
    if (
    $numofarticles $RSSnum) {$RSSnum $numofarticles;} 
    header("Content-type: application/xml"); 

    echo 
    '<?xml version="1.0" encoding="UTF-8"?> 
    <rss version="2.0" 
    xmlns:content="http://purl.org/rss/1.0/modules/content/" 
    xmlns:wfw="http://wellformedweb.org/CommentAPI/" 
    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    xmlns:atom="http://www.w3.org/2005/Atom"> 
    <channel> 
    <title>'
    .$sitetitle.'</title> 
    <link>http://' 
    $_SERVER['HTTP_HOST']. '</link> 
    <description>'
    .$metadesc.'</description> 
    <language>en-us</language> 
    <pubDate>'
    .date("r").'</pubDate> 
    <lastBuildDate>'
    .date("r").'</lastBuildDate> 
    <docs>http://' 
    $_SERVER['HTTP_HOST']. '/rss.php</docs> 
    <generator>AgaresWriter 2.1</generator> 
    <atom:link href="http://www.yoursite.com/rss.php" rel="self" type="application/rss+xml" />'

    $pathtofile 'http://' $_SERVER['HTTP_HOST']. str_replace('rss.php','',$_SERVER['PHP_SELF']); 
    $icounter 0
    $res am_queries($db" SELECT * FROM `AMCMS_games` ORDER BY primkey DESC LIMIT 0 , $RSSnum;"); 
    while (
    $icounter $RSSnum) { 
    if (
    $RSSdetail == 1) {$res[$icounter][2] = substr($res[$icounter][2], 0768);} 
    echo 
    '    <item> 
    <title>'
    .$res[$icounter][1].'</title>';  
    if (
    $SEOFriendlyURLs == 1) { 
            
    $rplce = array("!""@""#""$""%""^""&""*""("")""~""`""=""+""\\""'""\"""|"":"";""?""."",""/""[""{""]""}"); 
            
    $newpageurl str_replace(" ""-"strip_tags(trim(str_replace($rplce""$res[$icounter][1]))))  ; 
            echo 
    '<guid isPermaLink="true">'.$pathtofile.'playgame/'.$res[$icounter][0].'-'.$newpageurl.'.html</guid>';    
        } else { 
    echo 
    '<guid isPermaLink="true">'.$pathtofile.'flash-arcade-game.php?gameid='.$res[$icounter][0].'</guid>'
        } 
        echo
    '<description><![CDATA['.strip_tags(htmlspecialchars_decode($res[$icounter][2])).
          ]]></description> 
          
          <content:encoded><![CDATA['
    .htmlspecialchars_decode($res[$icounter][2]).
          ]]></content:encoded> 
          <pubDate>'
    .date("r").'</pubDate> 
        </item> 
        
        '

        
    $icounter++; 


    echo 
    '</channel> 
    </rss>'

    } else { 
    echo 
    'RSS feeds are disabled on this site.'

    ?>

  7. #7
    Senior Member
    Points: 933, Level: 17
    Level completed: 33%, Points required for next Level: 67
    Overall activity: 0%
    Achievements:
    Three FriendsRecommendation Second ClassCreated Blog entryTagger First Class1000 Experience Points
    Awards:
    Master Tagger
    Stephan's Avatar
    Join Date
    Jul 2010
    Location
    Sunny island
    Posts
    591
    Points
    933
    Level
    17
    Blog Entries
    1
    Downloads
    0
    Uploads
    6
    My Mood
    In Love

    I look the code and see not much I know in it lol

    Thank again

  8. #8
    Senior Member
    Points: 933, Level: 17
    Level completed: 33%, Points required for next Level: 67
    Overall activity: 0%
    Achievements:
    Three FriendsRecommendation Second ClassCreated Blog entryTagger First Class1000 Experience Points
    Awards:
    Master Tagger
    Stephan's Avatar
    Join Date
    Jul 2010
    Location
    Sunny island
    Posts
    591
    Points
    933
    Level
    17
    Blog Entries
    1
    Downloads
    0
    Uploads
    6
    My Mood
    In Love

    Now after update the new game is shown without URL again?
    http://twitter.com/myarcadegames

  9. #9
    Code Monkey
    Points: 4,025, Level: 42
    Level completed: 50%, Points required for next Level: 75
    Overall activity: 99.2%
    Achievements:
    Tagger First Class1000 Experience Points1 year registered
    Awards:
    User with most referrers
    lfhost's Avatar
    Join Date
    Jul 2010
    Posts
    313
    Points
    4,025
    Level
    42
    Downloads
    0
    Uploads
    0
    My Mood
    Bored
    Where did you get that version of rssfunctions.php originally? As its not the same as what comes with the stock script.

    Anyway, try

    PHP Code:
    <?PHP 
    /** 
    * /includes/rssfunctions.php 

    * The title of this file is misleading, as there are currently no functions contained here.  Instead, this file outputs an RSS 2.0 feed of the AMCMS_articles table, and nothing more. 
    * @package /includes/rssfunctions.php 
    * @author Agares Media <sales@agaresmedia.com> 
    * @copyright Copyright (c) 2007, Agares Media.  All rights reserved. 
    */ 
    require_once('./register_globals.php'); 
    if (
    $RSSon == 1) { 
    $sql 'SELECT primkey FROM AMCMS_games;'
    $numofarticles am_countrecords($db$sql); 
    if (
    $numofarticles $RSSnum) {$RSSnum $numofarticles;} 
    header("Content-type: application/xml"); 

    echo 
    '<?xml version="1.0" encoding="UTF-8"?> 
    <rss version="2.0" 
    xmlns:content="http://purl.org/rss/1.0/modules/content/" 
    xmlns:wfw="http://wellformedweb.org/CommentAPI/" 
    xmlns:dc="http://purl.org/dc/elements/1.1/" 
    xmlns:atom="http://www.w3.org/2005/Atom"> 
    <channel> 
    <title>'
    .$sitetitle.'</title> 
    <link>http://' 
    $_SERVER['HTTP_HOST']. '</link> 
    <description>'
    .$metadesc.'</description> 
    <language>en-us</language> 
    <pubDate>'
    .date("r").'</pubDate> 
    <lastBuildDate>'
    .date("r").'</lastBuildDate> 
    <docs>http://' 
    $_SERVER['HTTP_HOST']. '/rss.php</docs> 
    <generator>AgaresWriter 2.1</generator> 
    <atom:link href="http://www.yoursite.com/rss.php" rel="self" type="application/rss+xml" />'

    $pathtofile 'http://' $_SERVER['HTTP_HOST']. str_replace('rss.php','',$_SERVER['PHP_SELF']); 
    $icounter 0
    $res am_queries($db" SELECT * FROM `AMCMS_games` ORDER BY primkey DESC LIMIT 0 , $RSSnum;"); 
    while (
    $icounter $RSSnum) { 
    if (
    $RSSdetail == 1) {$res[$icounter][2] = substr($res[$icounter][2], 0768);} 
    echo 
    '    <item> 
    <title>'
    .$res[$icounter][1].'</title>';  
    if (
    $SEOFriendlyURLs == 1) { 
            
    $rplce = array("!""@""#""$""%""^""&""*""("")""~""`""=""+""\\""'""\"""|"":"";""?""."",""/""[""{""]""}"); 
            
    $newpageurl str_replace(" ""-"strip_tags(trim(str_replace($rplce""$res[$icounter][1]))))  ; 
            echo 
    '<guid isPermaLink="true">'.$pathtofile.''.$res[$icounter][0].'-'.$newpageurl.'.html</guid>';    
            echo 
    '<link>'.$pathtofile.''.$res[$icounter][0].'-'.$newpageurl.'.html</link>';
        } else { 
    echo 
    '<guid isPermaLink="true">'.$pathtofile.'playgame/'.$res[$icounter][0].'-'.$newpageurl.'.html</guid>'
    echo 
    '<link>'.$pathtofile.'playgame/'.$res[$icounter][0].'-'.$newpageurl.'.html</link>';
        } 
        echo
    '<description><![CDATA['.strip_tags(htmlspecialchars_decode($res[$icounter][2])).
          ]]></description> 
          
          <content:encoded><![CDATA['
    .htmlspecialchars_decode($res[$icounter][2]).
          ]]></content:encoded> 
          <pubDate>'
    .date("r").'</pubDate> 
        </item> 
        
        '

        
    $icounter++; 


    echo 
    '</channel> 
    </rss>'

    } else { 
    echo 
    'RSS feeds are disabled on this site.'

    ?>
    Ive added the link namespace to the code.
    Lemme know if that works any better. As thats what I think it is looking for.

  10. #10
    Senior Member
    Points: 933, Level: 17
    Level completed: 33%, Points required for next Level: 67
    Overall activity: 0%
    Achievements:
    Three FriendsRecommendation Second ClassCreated Blog entryTagger First Class1000 Experience Points
    Awards:
    Master Tagger
    Stephan's Avatar
    Join Date
    Jul 2010
    Location
    Sunny island
    Posts
    591
    Points
    933
    Level
    17
    Blog Entries
    1
    Downloads
    0
    Uploads
    6
    My Mood
    In Love

    I belief I didn't change anything, the big modification comes from you, maybe webber changed something but he didn't work on rss thought.
    I will try this one now
    Thanks

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts