Table of contents
No headers

To provide an "at a glance" view of what has changed recently, we have added the Recent Changes within our home page on the wiki. The following describes how to do this.

    

Switch to HTML view

Paste the following, modified for your own setup:

<h2>Recent Changes</h2>
<p><em><font style="font-size: 12px">More changes can be found by clicking &quot;Recent Changes&quot; at the top wiki menu.</font></em></p>
<div style="overflow: hidden; width: 656px; position: relative; height: 450px">
<iframe id="iframeContent2" name="iframeContent2" src="http://wiki/Special:Recentchanges" frameborder="0" scrolling="no" onload="var links = frames.iframeContent2.document.links; for (var i = 0; i &lt; links.length; i++) {links[i].target='_top';}" style="left: -210px; width: 800px; position: relative; top: -250px; height: 700px"></iframe>

This will create an iframe that links to the "Recent Changes" page, but only a specified section. If you want to increase the section displayed, tweak the height and width values in both the div section and the iframe section.

The above produces this:

recchanges.PNG

    

We have also used this to produce a "Featured User" section that only displays the first paragraph or so of each user's page, using the following code:

<h2>Featured User</h2>
<div style="overflow: hidden; width: 700px; position: relative; height: 200px">
<iframe id="iframeContent" name="iframeContent" src="http://wiki/User:admin/anypage" frameborder="0" scrolling="no" onload="var links = frames.iframeContent.document.links; for (var i = 0; i &lt; links.length; i++) {links[i].target='_top';}" style="left: -210px; width: 800px; position: relative; top: -240px; height: 500px"></iframe>

 The contents of the User:Admin/anypage are this:

{{ wiki.anypage{query: "title:User*", seconds: "64800", titlestyle: "true"} }}

Which will display any page who's title contains the word "User" for 1 day.

Tag page
Viewing 4 of 4 comments: view all
Ideally I would want an extension to do this as I'd also like to have control over the length of the recent change list, besides that iFrames are kind of an ugly hack.
Posted 00:15, 23 Apr 2008
If you change the scrolling="no" to scrolling="yes" then there will be a scroll bar allowing the user to view all of the recent changes. I also had to tweak the style="left: -210px down to about -183 for it to look right on my wiki.
Posted 15:11, 23 Apr 2008
Don't try to embed this code inside a table, it will cause the links to open up inside the table rather than navigate in the main browser window.
Posted 19:42, 23 Apr 2008
Is there any way to search for recent changes made by groups or more than one user?
Posted 08:47, 7 May 2009
Viewing 4 of 4 comments: view all
You must login to post a comment.