Loading...
 
Skip to main content

Features / Usability


hide IPs in history

I'm creating a Tiki 1.9.7 site which will be semi-public. I'd like the Anonymous group to be able to see wiki articles history, including usernames of editors, but I'd prefer to have the IP addresses invisible except to administrators. I haven't found a method of changing this. Any suggestions?

Thanks very much!

If you want the IP invisible to everyone (including admins), then go to Admin -> Wiki and set 'IP not diplayed in history'. This is clearly the easiest solution.

If you really only want it for admin, then you need to edit templates/tiki-pagehistory.tpl to remove based on $tiki_p_admin value. Be sure to copy the file to the appropriate templates/styles/{$theme} folder (to preserve the original and ease updates). Look for all of the code that has

Copy to clipboard
{if $feature_wiki_history_ip ne 'n'}

and change to

Copy to clipboard
{if $feature_wiki_history_ip ne 'n' and $tiki_p_admin eq 'y'}


gary

> If you want the IP invisible to everyone (including admins), then go to Admin -> Wiki and set 'IP not diplayed in history'. This is clearly the easiest solution.
Yep... that's one thing I wanted, and I found it shortly after posting.
The serious issue, though, since there isn't an Admin feature for turning it off, is the display of IP addresses in the Last Changes page. I was able to use your suggestions on templates/tiki-lastchanges.tpl, though, and comment out the lines which display the IP address column and the addresses.

Thanks so much!
- Epimetreus