config:showuseras
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| config:showuseras [2010-03-09 12:53] – 193.200.150.82 | config:showuseras [2022-01-27 00:47] (current) – Klap-in | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| What to display when showing the user that last edited a page. Used in page footer and recent changes pages. | What to display when showing the user that last edited a page. Used in page footer and recent changes pages. | ||
| - | |||
| - | * ' | ||
| - | * ' | ||
| - | * ' | ||
| - | * ' | ||
| - | |||
| * Type: String | * Type: String | ||
| * Default: '' | * Default: '' | ||
| - | :!: Please note that other settings than default may give performance penalties in combination with authentication backends like [[auth: | + | Options: |
| - | ===== Anonymous posting ===== | + | |
| - | In wiki/ | + | * '' |
| - | * if($INFO['editor']){ | + | * '' |
| - | * $out .= ' '.$lang['by'].' | + | * '' |
| - | * $out .= editorinfo($INFO[' | + | * '' |
| - | * | + | |
| - | * $out .= ' | + | |
| - | * | + | |
| - | Delete or comment it out by adding the PHP comment code /* */ shown below | ||
| - | * /* if($INFO[' | ||
| - | * $out .= ' ' | ||
| - | * $out .= editorinfo($INFO[' | ||
| - | * | ||
| - | * $out .= ' (' | ||
| - | * } */ | ||
| + | :!: Please note that other settings than default may give performance penalties in combination with authentication plugins like [[plugin: | ||
| + | ==== Modifying the user interwiki link ==== | ||
| + | Default the '' | ||
| + | |||
| + | When you develop a plugin or template, you can use the event trigger around the interwiki link creating, to modify the result link or replace it by your own mechanism. See the [[devel: | ||
| ===== See also ===== | ===== See also ===== | ||
| * [[: | * [[: | ||
| + | * [[: | ||
| + | |||
| + | |||
| + | ===== Anonymous posting ===== | ||
| + | In [[xref> | ||
| + | <code php> | ||
| + | | ||
| + | $out .= ' ' | ||
| + | $out .= editorinfo($INFO[' | ||
| + | | ||
| + | $out .= ' (' | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Delete or comment it out by adding the PHP comment code /* */ shown below | ||
| + | <code php> | ||
| + | / | ||
| + | $out .= ' ' | ||
| + | $out .= editorinfo($INFO[' | ||
| + | | ||
| + | $out .= ' (' | ||
| + | } */ | ||
| + | </ | ||
| + | If successful, the name or IP address of the poster will not show at the bottom of the page. | ||
| + | |||
| + | An alternative, | ||
| + | <code php> | ||
| + | <?php tpl_pageinfo() ?> | ||
| + | </ | ||
| + | |||
| + | Replace it with: | ||
| + | <code php> | ||
| + | <?php echo preg_replace("/ | ||
| + | </ | ||
| + | A drawback to this technique is that it will have to be repeated each time the template is updated. | ||
| + | ==== Want to hide IP address? ==== | ||
| + | If you just want to hide the IP address of the poster from the bottom of the page, you can consider using [[plugin: | ||
config/showuseras.1268135597.txt.gz · Last modified: by 193.200.150.82
