Home »
FUDforum Development »
Plugins and Code Hacks »
small typo in rdf.php
small typo in rdf.php [message #23073] |
Thu, 03 March 2005 05:08 |
kenjb
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
|
|
|
Goto Forum:
Current Time: Thu Oct 31 23:54:08 GMT 2024
Total time taken to generate the page: 0.06010 seconds