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
Return to the default flat view Create a new topic Submit Reply
small typo in rdf.php [message #23073] Thu, 03 March 2005 05:08 Go to previous message
kenjb is currently offline  kenjb   United States
Messages: 67
Registered: September 2004
Karma:
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
[Message index]
 
Read Message
Read Message
Previous Topic: FudForum & PHPList
Next Topic: sql: display latest topics on homepage
Goto Forum:
  

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

Current Time: Wed Jul 03 10:09:00 GMT 2024

Total time taken to generate the page: 0.05537 seconds