 |
 |
 |
 |
 |
| Author |
Message |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
IP in comments |
|
Is it possible to show the IPs of comments publicly on the website?
|
|
| Fri Feb 10, 2006 12:09 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
lexa
Creator of CuteNews.RU

Joined: 02 Oct 2005 Posts: 92 Location: St.-Petersburg, Russia |
|
|
|
Plugin:
 |  | /*
Plugin name: IP in Comments
Application: CuteNews
*/
add_filter('news-comment', 'ip_in_comments');
function ip_in_comments($output){
global $row;
$output = str_replace('{ip}', $row['ip'], $output);
return $output;
} |
If you use Strawberry (CuteNews.RU 2.6) replace Application: CuteNews to Application: Strawberry.
|
|
| Fri Feb 10, 2006 2:23 am |
 |
 |
lexa
Creator of CuteNews.RU

Joined: 02 Oct 2005 Posts: 92 Location: St.-Petersburg, Russia |
|
|
|
upd: save it as finename.php in plugins directory and in admin-panel active this plugin.
filename - e.g: ip-in-comments
|
|
| Fri Feb 10, 2006 2:25 am |
 |
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
Great! Thank you!
|
|
| Fri Feb 10, 2006 9:13 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|