nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

latin 1 TO UTF-8 ?
 Goto page Previous  1, 2
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeFEED (tm)
View previous topic :: View next topic  
Author Message
kguske
Site Admin
Site Admin


Joined: May 12, 2005
Posts: 876

PostPosted: Sun Nov 08, 2009 3:26 pm    Post subject: Reply with quote

You can use the full nukeFEED (modules.php?name=Feeds&fid... ) with Feedburner. nukeFEED generates valid XML.
_________________
  
Back to top
View user's profile Send private message Visit poster's website
hamidfatal
webmaster


Joined: Apr 18, 2009
Posts: 12

PostPosted: Mon Nov 09, 2009 1:54 am    Post subject: Reply with quote

ok i tested this url (http://www.ssfmusic.com/modules.php?name=Feeds&fid=3&type=RSS20) but repeat error!!!


please help me :-* ty.plz try again test u.
  
Back to top
View user's profile Send private message
Guardian
webmaster


Joined: Dec 25, 2005
Posts: 364
Location: Vsetin, Czech Republic

PostPosted: Mon Nov 09, 2009 10:33 am    Post subject: Reply with quote

The data in the feed itself is fine and it does validate.
The reason the feed itself failing the validation is because the validation services are seeing 'unknown' invalid characters at the beginning of the feed.

There are two possible reasons for this given the information you have supplied so far.
1 - the file were accidentally uploaded in 'Ascii' instead of binary mode by your ftp software.
2 - when you edited the file, your editor saved the file with a BOM (byte order mark) which is invisible but the validator is reading it.

You can check this yourself very easily.
Open the feed url in your browser.
Use the browsers options to "view source"
Put your cursor anywhere on the top line of the displayed source code and then using the arrows on your keyboard, move the cursor to the far left.
Now click the -> arrow once - notice it doesn't move! Click -> again and now your cursor is at this position
<|?
Your cursor moved over the invisible characters which the validator can see.
  
Back to top
View user's profile Send private message
kguske






PostPosted: Mon Nov 09, 2009 12:49 pm    Post subject: Reply with quote

Thanks, Guardian. I didn't notice that.
  
Back to top
Guardian






PostPosted: Mon Nov 09, 2009 2:51 pm    Post subject: Reply with quote

No problem, I have missed it myself a few times Smile
  
Back to top
hamidfatal






PostPosted: Sat Nov 21, 2009 10:59 am    Post subject: Reply with quote

ok very very Tank you for help .

im find character and fix. now is error fix and valid rss.:-*

but not author email show !!!

please see :

<author> no_email@example.com (slead)</author>.

please help me for fix.


see:

Only registered users can see links on this board! Get registered or login!.

next quote:

see

line 66, column 117: title should not contain HTML: &amp; (7 occurrences)

can u help me for fix is error?

my original backend source is add an attachment
  
Back to top
Guardian






PostPosted: Sat Nov 21, 2009 3:20 pm    Post subject: Reply with quote

I am not able to download the file but for some reason your time stamp is also showing timezone offset -0500 which it doesn't need.

As for the amp problem, you really need to look at your page source code and compare that with what is being generated in backend.php you will probably find the email problem there as well.
  
Back to top
hamidfatal






PostPosted: Sun Nov 22, 2009 12:46 am    Post subject: Reply with quote

my backend original source is:

Code:
<php>


@include("mainfile.php");
global $prefix, $db, $nukeurl;
header("Content-Type: text/xml");

    /* entity to unicode decimal value */
function entity_to_decimal_value($string){
 
  $entity_to_decimal = array(
   '&nbsp;' => ' ',
   '&iexcl;' => '¡',
   '&cent;' => '¢',
   '&pound;' => '£',
   '&curren;' => '¤',
   '&yen;' => '¥',
   '&brvbar;' => '¦',
   '&sect;' => '§',
   '&uml;' => '¨',
   '&copy;' => '©',
   '&ordf;' => 'ª',
   '&laquo;' => '«',
   '&not;' => '¬',
   '&shy;' => '­',
   '&reg;' => '®',
   '&macr;' => '¯',
   '&deg;' => '°',
   '&plusmn;' => '±',
   '&sup2;' => '²',
   '&sup3;' => '³',
   '&acute;' => '´',
   '&micro;' => 'µ',
   '&para;' => '¶',
   '&middot;' => '·',
   '&cedil;' => '¸',
   '&sup1;' => '¹',
   '&ordm;' => 'º',
   '&raquo;' => '»',
   '&frac14;' => '¼',
   '&frac12;' => '½',
   '&frac34;' => '¾',
   '&iquest;' => '¿',
   '&Agrave;' => 'À',
   '&Aacute;' => 'Á',
   '&Acirc;' => 'Â',
   '&Atilde;' => 'Ã',
   '&Auml;' => 'Ä',
   '&Aring;' => 'Å',
   '&AElig;' => 'Æ',
   '&Ccedil;' => 'Ç',
   '&Egrave;' => 'È',
   '&Eacute;' => 'É',
   '&Ecirc;' => 'Ê',
   '&Euml;' => 'Ë',
   '&Igrave;' => 'Ì',
   '&Iacute;' => 'Í',
   '&Icirc;' => 'Î',
   '&Iuml;' => 'Ï',   
   '&ETH;' => 'Ð',
   '&Ntilde;' => 'Ñ',    
   '&Ograve;' => 'Ò',   
   '&Oacute;' => 'Ó',    
   '&Ocirc;' => 'Ô',
   '&Otilde;' => 'Õ',   
   '&Ouml;' => 'Ö',
   '&times;' => '×',   
   '&Oslash;' => 'Ø',   
   '&Ugrave;' => 'Ù',   
   '&Uacute;' => 'Ú',   
   '&Ucirc;' => 'Û',
   '&Uuml;' => 'Ü',
   '&Yacute;' => 'Ý',    
   '&THORN;' => 'Þ',
   '&szlig;' => 'ß',   
   '&agrave;' => 'à',   
   '&aacute;' => 'á',   
   '&acirc;' => 'â',
   '&atilde;' => 'ã',   
   '&auml;' => 'ä',    
   '&aring;' => 'å',   
   '&aelig;' => 'æ',   
   '&ccedil;' => 'ç',   
   '&egrave;' => 'è',   
   '&eacute;' => 'é',   
   '&ecirc;' => 'ê',
   '&euml;' => 'ë',
   '&igrave;' => 'ì',    
   '&iacute;' => 'í',   
   '&icirc;' => 'î',
   '&iuml;' => 'ï',
   '&eth;' => 'ð',
   '&ntilde;' => 'ñ',    
   '&ograve;' => 'ò',   
   '&oacute;' => 'ó',   
   '&ocirc;' => 'ô',
   '&otilde;' => 'õ',   
   '&ouml;' => 'ö',
   '&divide;' => '÷',    
   '&oslash;' => 'ø',   
   '&ugrave;' => 'ù',   
   '&uacute;' => 'ú',   
   '&ucirc;' => 'û',
   '&uuml;' => 'ü',
   '&yacute;' => 'ý',    
   '&thorn;' => 'þ',
   '&yuml;' => 'ÿ',
   '&fnof;' => 'ƒ',
   '&Alpha;' => 'Α',   
   '&Beta;' => 'Β',
   '&Gamma;' => 'Γ',   
   '&Delta;' => 'Δ',   
   '&Epsilon;' => 'Ε',    
   '&Zeta;' => 'Ζ',
   '&Eta;' => 'Η',
   '&Theta;' => 'Θ',    
   '&Iota;' => 'Ι',
   '&Kappa;' => 'Κ',   
   '&Lambda;' => 'Λ',   
   '&Mu;' => 'Μ',
   '&Nu;' => 'Ν',   
   '&Xi;' => 'Ξ',   
   '&Omicron;' => 'Ο',    
   '&Pi;' => 'Π',
   '&Rho;' => 'Ρ',   
   '&Sigma;' => 'Σ',    
   '&Tau;' => 'Τ',
   '&Upsilon;' => 'Υ',    
   '&Phi;' => 'Φ',
   '&Chi;' => 'Χ',
   '&Psi;' => 'Ψ',
   '&Omega;' => 'Ω',    
   '&alpha;' => 'α',   
   '&beta;' => 'β',
   '&gamma;' => 'γ',   
   '&delta;' => 'δ',   
   '&epsilon;' => 'ε',       
   '&zeta;' => 'ζ',
   '&eta;' => 'η',
   '&theta;' => 'θ',    
   '&iota;' => 'ι',   
   '&kappa;' => 'κ',    
   '&lambda;' => 'λ',   
   '&mu;' => 'μ',
   '&nu;' => 'ν',   
   '&xi;' => 'ξ',   
   '&omicron;' => 'ο',       
   '&pi;' => 'π',
   '&rho;' => 'ρ',    
   '&sigmaf;' => 'ς',       
   '&sigma;' => 'σ',   
   '&tau;' => 'τ',   
   '&upsilon;' => 'υ',       
   '&phi;' => 'φ',
   '&chi;' => 'χ',    
   '&psi;' => 'ψ',    
   '&omega;' => 'ω',    
   '&thetasym;' => 'ϑ',       
   '&upsih;' => 'ϒ',
   '&piv;' => 'ϖ',   
   '&bull;' => '•',    
   '&hellip;' => '…',       
   '&prime;' => '′',
   '&Prime;' => '″',   
   '&oline;' => '‾',   
   '&frasl;' => '⁄',   
   '&weierp;' => '℘',    
   '&image;' => 'ℑ',
   '&real;' => 'ℜ',   
   '&trade;' => '™',   
   '&alefsym;' => 'ℵ',       
   '&larr;' => '←',
   '&uarr;' => '↑',   
   '&rarr;' => '→',   
   '&darr;' => '↓',   
   '&harr;' => '↔',   
   '&crarr;' => '↵',   
   '&lArr;' => '⇐',   
   '&uArr;' => '⇑',   
   '&rArr;' => '⇒',   
   '&dArr;' => '⇓',   
   '&hArr;' => '⇔',   
   '&forall;' => '∀',       
   '&part;' => '∂',
   '&exist;' => '∃',   
   '&empty;' => '∅',   
   '&nabla;' => '∇',   
   '&isin;' => '∈',   
   '&notin;' => '∉',   
   '&ni;' => '∋',   
   '&prod;' => '∏',    
   '&sum;' => '∑',   
   '&minus;' => '−',    
   '&lowast;' => '∗',    
   '&radic;' => '√',
   '&prop;' => '∝',   
   '&infin;' => '∞',   
   '&ang;' => '∠',   
   '&and;' => '∧',    
   '&or;' => '∨',    
   '&cap;' => '∩',    
   '&cup;' => '∪',    
   '&int;' => '∫',    
   '&there4;' => '∴',       
   '&sim;' => '∼',
   '&cong;' => '≅',    
   '&asymp;' => '≈',   
   '&ne;' => '≠',   
   '&equiv;' => '≡',       
   '&le;' => '≤',   
   '&ge;' => '≥',    
   '&sub;' => '⊂',    
   '&sup;' => '⊃',    
   '&nsub;' => '⊄',    
   '&sube;' => '⊆',   
   '&supe;' => '⊇',   
   '&oplus;' => '⊕',   
   '&otimes;' => '⊗',    
   '&perp;' => '⊥',
   '&sdot;' => '⋅',   
   '&lceil;' => '⌈',   
   '&rceil;' => '⌉',   
   '&lfloor;' => '⌊',    
   '&rfloor;' => '⌋',    
   '&lang;' => '〈',
   '&rang;' => '〉',   
   '&loz;' => '◊',   
   '&spades;' => '♠',       
   '&clubs;' => '♣',
   '&hearts;' => '♥',    
   '&diams;' => '♦',
   '&quot;' => '"',   
   '&amp;' => '&',
   '&lt;' => '<gt>',   
   '&OElig;' => 'Œ',
   '&oelig;' => 'œ',   
   '&Scaron;' => 'Š',   
   '&scaron;' => 'š',   
   '&Yuml;' => 'Ÿ',   
   '&circ;' => 'ˆ',    
   '&tilde;' => '˜',    
   '&ensp;' => ' ',   
   '&emsp;' => ' ',   
   '&thinsp;' => ' ',       
   '&zwnj;' => '‌',
   '&zwj;' => '‍',
   '&lrm;' => '‎',   
   '&rlm;' => '‏',   
   '&ndash;' => '–',    
   '&mdash;' => '—',       
   '&lsquo;' => '‘',   
   '&rsquo;' => '’',   
   '&sbquo;' => '‚',   
   '&ldquo;' => '“',   
   '&rdquo;' => '”',   
   '&bdquo;' => '„',   
   '&dagger;' => '†',    
   '&Dagger;' => '‡',    
   '&permil;' => '‰',    
   '&lsaquo;' => '‹',
   '&rsaquo;' => '›',
   '&euro;' => '€');
   
  return preg_replace(
     "/&[A-Za-z]+;/",
   " ",
   strtr($string,$entity_to_decimal) );
   
}

$gmtdiff = date("O", time());
$gmtstr = substr($gmtdiff, 0, 3) . ":" . substr($gmtdiff, 3, 9);
$now = date("Y-m-d\TH:i:s", time());
$now = $now . $gmtstr;
 $now = FormalDate2Hejri($now);

echo "<xml>\n";
echo "<rss>\n\n";
echo "<channel>\n";
echo "<title>".htmlspecialchars($sitename)."</title>\n";
echo "<link>".htmlspecialchars($nukeurl)."</link>\n";
echo "<description>".$slogan."</description>\n";
echo "<language>ar</language>";
echo "<dc>".$backend_language."</dc>\n";
echo "<dc>".$adminmail."</dc>\n";
echo "<dc>".$now."</dc>\n\n";
echo "<sy>hourly</sy>\n";
echo "<sy>1</sy>\n";
echo "<sy>".$now."</sy>\n\n";

$result = $db->sql_query("SELECT s.sid,t.topicname,s.informant,s.title,s.time,s.hometext FROM ".$prefix."_stories s, ".$prefix."_topics t where s.topic = t.topicid ORDER BY sid DESC LIMIT 10");

while ($row = $db->sql_fetchrow($result)) {
    $rsid = intval($row['sid']);
    $topicname = $row['topicname'];
    $informant = $row['informant'];
    $title = $row['title'];
    $time = $row['time'];
    $hometext = $row['hometext'];

    // format: 2004-08-02T12:15:23-06:00
    $date = date("Y-m-d\TH:i:s", strtotime($time));
    $date = $date . $gmtstr;
    $date = FormalDate2Hejri($date);

    echo "<item>\n";
    echo "<title>".$title."</title>\n";
    echo "<link>$nukeurl/modules.php?name=News&amp;file=article&amp;sid=$rsid</link>\n";
    echo "<description><CDATA></description>\n";
    echo "<guid>".$rsid."@".$nukeurl."</guid>\n";
    echo "<dc>".$topicname."</dc>\n";
    echo "<dc>".$date."</dc>\n";
    echo "<dc>".$informant."</dc>\n";
    echo "<language>ar</language>";
    echo "</item>\n\n";
}

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

$XMLoutput .= " <item>
<title>A title here</title>
<link>Some link here</link>
<description>description goes here</description>
</item>";
$XMLoutput .= "</channel></rss>";
header("Content-Type: application/rss+xml");
print $XMLoutput;


</php>
  
Back to top
hamidfatal






PostPosted: Tue Nov 24, 2009 11:54 am    Post subject: Reply with quote

please help me Sad(
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeFEED (tm) All times are GMT - 5 Hours
 Goto page Previous  1, 2
 Page 2 of 2

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.06 Seconds