From: James G. <pi...@gm...> - 2005-01-11 12:45:05
|
Hello I've got PHPWiki running on my website. It's accessable by clicking on a link on my website's main page. Is there a way I can grab the contents of the RecentChanges in my wiki and show that on my main page too? Just as straight text with links, not as a browser sidepanel or embedded in a frame? What I'm trying to make is a little sidepanel in my website's main page that shows what's recently changed in my wiki, in a similar way to SourceForge's "most active" panel on their main page. I don't mind poking around in the code and manually constructing glue to call PHPWiki functions, but a few pointers about where to start would be nice :-) -- http://www.piku.org.uk - Outdoor Photos: http://www.piku.co.uk |
From: Dan F. <dfr...@cs...> - 2005-01-11 15:44:25
|
James Grimwood wrote: >Hello > >I've got PHPWiki running on my website. It's accessable by clicking on >a link on my website's main page. > >Is there a way I can grab the contents of the RecentChanges in my wiki >and show that on my main page too? Just as straight text with links, >not as a browser sidepanel or embedded in a frame? What I'm trying to >make is a little sidepanel in my website's main page that shows what's >recently changed in my wiki, in a similar way to SourceForge's "most >active" panel on their main page. > >I don't mind poking around in the code and manually constructing glue >to call PHPWiki functions, but a few pointers about where to start >would be nice :-) > > I'm not exactly sure what you want, but can't you just call the RecentChanges plugin on your HomePage directly? If you go to the "RecentChanges" page, and click "View source" you'll see the plugin invocation. Here's mine: <?plugin RecentChanges days||=7 daylist=1,3,7,30,90, 0 ?> Just put this text somewhere in your HomePage. Or does that put it in a frame or something? Dan |
From: Dan F. <dfr...@cs...> - 2005-01-11 19:01:39
|
James Grimwood wrote: >On Tue, 11 Jan 2005 09:44:20 -0600, Dan Frankowski <dfr...@cs...> wrote: > > > >>I'm not exactly sure what you want, but can't you just call the >>RecentChanges plugin on your HomePage directly? If you go to the >> >> > >Ah, guess I didn't explain myself properly... the main page I'm >referring to is my website's index.php, not phpwiki's HomePage. > >And all I really want to do is somehow query the database directly to >extract the data used on the RecentChanges page, so I can incorporate >it into a regular, non PHPWiki web page. > > Seems like a bad idea to query the database directly. You might not understand all the subtleties, and if the DB changes, you're screwed. Maybe better to write some PHP code (a plugin or extra arg to recent changes) within Phpwiki that returns the text you want, then include it somehow. Or perhaps that's the frames thing you don't like. Dan |
From: Reini U. <ru...@x-...> - 2005-01-11 21:01:22
|
James Grimwood schrieb: > I've got PHPWiki running on my website. It's accessable by clicking on > a link on my website's main page. > > Is there a way I can grab the contents of the RecentChanges in my wiki > and show that on my main page too? Just as straight text with links, > not as a browser sidepanel or embedded in a frame? What I'm trying to > make is a little sidepanel in my website's main page that shows what's > recently changed in my wiki, in a similar way to SourceForge's "most > active" panel on their main page. > > I don't mind poking around in the code and manually constructing glue > to call PHPWiki functions, but a few pointers about where to start > would be nice :-) convert the rss feed to html. or try the xml-rpc interface. or as iframe of course, but this will have all the headers and footers also. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Arnaud F. <ar...@cr...> - 2005-01-19 09:53:49
|
Le 11 janv. 05, =E0 13:44, James Grimwood a =E9crit : > Hello > > I've got PHPWiki running on my website. It's accessable by clicking on > a link on my website's main page. > > Is there a way I can grab the contents of the RecentChanges in my wiki > and show that on my main page too? Just as straight text with links, > not as a browser sidepanel or embedded in a frame? What I'm trying to > make is a little sidepanel in my website's main page that shows what's > recently changed in my wiki, in a similar way to SourceForge's "most > active" panel on their main page. > > I don't mind poking around in the code and manually constructing glue > to call PHPWiki functions, but a few pointers about where to start > would be nice :-) > Just parse the RSS feed from de recentchanges page ... you can use my=20 RssParser.php lib (phpwiki/lib/RssParser.php) to do the task ... It's a very simple rss lib but does the job ... Have a look at the RssFeed plugin to see how to use it. -- Arnaud Fontaine CRAO Jabber: sh...@ra... |