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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
small typo in rdf.php [message #23073] Thu, 03 March 2005 00:08 Go to next message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma: 0
Member
add to buddy list
ignore all messages by this user
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 10:07 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Fixed in CVS, thanks for the detailed bug report.

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

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

Current Time: Mon Dec 11 17:59:05 EST 2017

Total time taken to generate the page: 0.00797 seconds