[Home]WikiPatches/GetReferersBar

UseModWiki | WikiPatches | RecentChanges | Preferences

A patch/plugin for UseModWiki version 0.92 (April 21, 2001)

Seems to work for version 1.00 as well.

This patch saves referer (I am sticking with T. Berners Lee spelling ;-) ) pagenames every time a valid page is browsed. Then allows to produce a referer bar with links to referrer and "referees" (for lack of a better term). If you don't understand what I am talking about see for your self at http://spooky.econ.umn.edu/cgi-bin/testwiki.pl (dead link as of 10 march 2003, redirects to http://localhost/FoxServ/missing.htm) (see: [http://spooky.econ.umn.edu/cgi-bin/testwiki.pl at archive.org])

It would be a very nice add-on to large traffic sites such as the wikipedia. On smaller site it is a cool feature. Use it with stylesheets for best results Please place comments and questions below in the appropriate comments section

Version

0.2 (Beta) 12/12/2001

Release notes

I am still not very confident with Perl and I am positive that some of the coding choices are not optimal/right/etc...but they work so far on my test site. I urge you to let me know what is wrong and how it can be improved. In particular I had no clue about where to place the code and I had to play by ear. Since I didn't want to mess up too much with wiki.pl (I'd like to keep it as clean as possible) I have decided to write it as an external file (there are 160 lines of code) and not to mess with wiki.pl subroutines (even though it would have been a more appropriate choice). You can read some comments I wrote while designing this thing at ElMoro/GetReferersBarComments

Files Included

These two last pages pop-up the request to save them as file and output is actual file in wiki-decoration html. Anybody can fix these names so that the pages can be actually viewed, not downloaded? -- UrbanSheep
As a quick fix, try using the 'edit page' link to get the original data for cut/paste out of the textarea, of course, don't save the wiki page. -- Anon

INSTALLATION

Follow these simple steps. (N.B. this is not guaranteed to be optimal)

	&GetReferences($query);
	do "getreferersbar.pl";
	&GetReferences($OpenPageName);
	$fullHtml .= &GetReferersBar;

HISTORY

0.2 (12/11/2001)

0.1

KNOWN PROBLEMS

Comments - Questions

I agree that the example doesn't look quite right. The distributed version actually uses shades of gray, not red. I distributed a simple program (makeref.pl) that generates stylesheets with different colors. As for MeatBall:ContentOverForm, you can set UseRefCss?=0 to have output in plain text so you can forget about colors and css :-). --ElMoro

UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited August 3, 2012 1:09 am by JuanmaMP (diff)
Search: