FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » small typo in rdf.php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
small typo in rdf.php [message #23073] Thu, 03 March 2005 05:08 Go to next message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma: 0
Member
The typo keeps the poll title (opt_title) from displaying correctly when using the rdf_parser.php in FUDforum version 2.6.11

Line 513
<?php
<opt_title>'.sp($o[0]).'></opt_title>
?>


Should be:
<?php
<opt_title>'.sp($o[0]).'</opt_title>
?>


Final poll area in the rdf.php looks like this then, with just that one small typo removed.
<?php
if ($r->poll_name) {
                        echo
'<content:items><rdf:Bag><poll_name>'.sp($r->poll_name).'</poll_name><total_votes>'.$r->total_votes.'</total_votes>';
                        if (
$r->poll_cache) {
                            if ((
$pc = unserialize($r->poll_cache))) {
                                foreach (
$pc as $o) {
                                    echo
'<rdf:li>
                                        <content:item rdf:about="poll_opt">
                                            <opt_title>'
.sp($o[0]).'</opt_title>
                                            <opt_votes>'
.$o[1].'</opt_votes>
                                        </content:item></rdf:li>'
;
?>


I'm not sure if I hacked the rdf.php before finding this little thing, so the line number might be off, or not.

I do so much like FUDforum!

Thank you


kenjb
Re: small typo in rdf.php [message #23081 is a reply to message #23073] Thu, 03 March 2005 15:07 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS, thanks for the detailed bug report.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FudForum & PHPList
Next Topic: sql: display latest topics on homepage
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 20:04:19 GMT 2024

Total time taken to generate the page: 0.03149 seconds