The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 861 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random quotes XML
#1
Can anyone help me with the format for the XML file for the Random Quotes plugin?

I can't get the plugin generate it's own initial XML file so am left trying to build one from scratch. It's almost working but not quite - very frustrating.

My XML so far looks like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<quote id="300"><date>Sunday, 10 November, 2013</date><author>Author</author><quote id="1"><quote>The quote</quote><date>Sunday, 10 November, 2013</date><author>The next author</author><quote><![CDATA[The second quote]]></quote></quote></quote>
I'm sure the quote id="300" shouldn't be there but if I delete that outer tag then it all fails. I've tried all sorts of combinations, but I'm not getting it. I've got only the very slightest idea about PHP and XML - just enough to get into trouble it seems!

When I go to edit Quotes in the GS Plugins control panel the editor opens and shows the quote in the list but throws up this:
Warning: Quotes::getQuotes(): Cannot assign to an array of nodes (duplicate subnodes or attr detected) in /home/packhoec/public_html/plugins/quote.php on line 145
Reply
#2
Try this modified plugin: http://dev.nagysandorart.com/random_quotes_mod.zip

This should create the xml file if it doesn't already exists and it doesn't create duplicate nodes.

Note: This is just a rush-mod i have added only a few modifications.
Reply
#3
Thanks, that worked perfectly.

(2013-11-10, 22:24:13)Kolyok Wrote: Try this modified plugin: http://dev.nagysandorart.com/random_quotes_mod.zip

This should create the xml file if it doesn't already exists and it doesn't create duplicate nodes.

Note: This is just a rush-mod i have added only a few modifications.
Reply




Users browsing this thread: 1 Guest(s)