*

Recent

Author Topic: [FIX] rss Games doesn't access enabled code thumburl  (Read 4623 times)

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
[FIX] rss Games doesn't access enabled code thumburl
« on: October 30, 2014, 04:17:34 PM »
Swap this part of the script in rss-arcade.php - And it should be good to go!

Code: [Select]
do
{
$name = $row['name'];
$ID = $row['ID'];
$description = $row['description'];
$thumb = $row['thumb'];
$thumburl = $row['thumburl'];

      $gamename = preg_replace('[^A-Za-z0-9]', '-', $row['name']);
      if($seo_on == 1){
      $playlink = ''.$domain.'/play/'.$row['ID'].'-'.$gamename.'.html';
      }else{
      $playlink = ''.$domain.'/index.php?action=play&ID='.$row['ID'].'';
      }

if(empty($thumb)){$thumb2=''.$thumburl.'';}else{

$thumb2 = ''.$domain.'/'.$thumbsfolder.'/'.$thumb ;
}


print ""."<item>\n";

print ""."<title>$ID - $name</title>\n";
print ""."<link>" . $playlink ."</link>\n";
print ""."<description><![CDATA[ <img src='$thumb2' > $description ]]></description>\n";

print ""."</item>\n";
} while($row = mysql_fetch_array($datas)) ;

print "</channel>\n";
print "</rss>";

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: [FIX] rss Games doesn't access enabled code thumburl
« Reply #1 on: October 30, 2014, 05:06:01 PM »
That one I knew about ..... lol
I have fixed it too but did not post it yet.

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: [FIX] rss Games doesn't access enabled code thumburl
« Reply #2 on: October 30, 2014, 05:48:03 PM »
Then you would be aware that rss-blog.php doesn't work with this line?

Code: [Select]
$rburl = ''.$domain.'/index.php?action=blogentry&entryid='.$entryid ; };
But does with this...  :P


Code: [Select]
$rburl = ''.$domain.'/index.php?action=blogentry&amp;entryid='.$entryid ; };
BTW - All of the & in urls do need to be &amp; else they throw a html "Warning". ;)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: [FIX] rss Games doesn't access enabled code thumburl
« Reply #3 on: October 30, 2014, 06:00:00 PM »
Now that one I did miss, I was thinking of removing the blog but decided to keep it since it was already there.

I will add that fix as well .... thanks

Frank

  • Sr. Member
  • ****
  • Posts: 257
  • Force: +4/-0
Re: [FIX] rss Games doesn't access enabled code thumburl
« Reply #4 on: October 30, 2014, 06:06:12 PM »
You're welcome!

And as soon as you would have removed it - Peeps would be screaming out for a "Blog" mod.

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: [FIX] rss Games doesn't access enabled code thumburl
« Reply #5 on: October 30, 2014, 06:11:13 PM »
LOL .... you are probably right  8)