problem with importing the last 5 questions in a html page

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
virtual
Posts: 3
Joined: Tue Feb 15, 2005 6:15 am

problem with importing the last 5 questions in a html page

Post by virtual »

I want to print the last 5 questions in a table within a html page.
- I generate latest.xml
- I modified the xml-rpc client variables with my correct path
when I poin the web browser to xmlrpc-client.php nothing hapened, just a blank page
what exactly shoud I do with that code? the is no docs, nu instructions anywhere

There are any easy way to print those 5 latest in a web page?

tks
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

what version do you use? The XML-RPC interface is only for distributed search. You can use the function function generateFiveNewest() to get the latest 5 records.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
virtual
Posts: 3
Joined: Tue Feb 15, 2005 6:15 am

Post by virtual »

hello,
I use 1.4.4
As I alredy said I generate latest.xml, looks fine.
Now, how I import that in a web page?
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just use the RSS script on our download page to include the XML file on your page.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
virtual
Posts: 3
Joined: Tue Feb 15, 2005 6:15 am

Post by virtual »

ok, it works
question: it is possible to generate only the top five of the most read posts instead of top ten?
what file should I modified?

the latest five is not very well generated, it takes whole questions, the whole links, posted date, so this looks little ugly, top ten is very good, but I prefer the top five, if is possible, if no, I`ll live with
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it is possible, just look into the file admin/export.main.php. There's the whole code for that.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply