Page 1 of 1

Publishing IP numbers from guests

PostPosted: Mon Jun 11, 2007 9:10 am
Author: Kie
Hi,

I would like to publish or IP numbers or the sessionIPcode of guests who join the discussions on my board.
This is what I tried in a normal PHP board and it works;
open includesfunctions_post.php

function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length)


return ;
}



Before the last return add;

if ($userdata['user_id'] == ANONYMOUS) {
if (empty($username)) {
$username = 'Gast';
}
$username .= '[' . $userdata['session_ip'] . ']';
}



BUT Integra doesn't accept this and it causes syntaxerrors.
Is there somebody who can help me making this work in IM 1.40 ???

I really need to give guests the possibility to give reactions but it is anoying that they can play games with the other forummembers and we (moderators and admins) have to check the IP everytime to find out wich guest said what.. <img>

Re: Publishing IP numbers from guests

PostPosted: Tue Jun 12, 2007 3:47 pm
Author: Kie
Okay it seems to be easier, a friend of mine worked it out..

:mrgreen: