Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Admincp IPaddress query problem
#11
Sounds like you didn't change the code as described above. Use my described changes and see what happens. I haven't tested Dennis's fix.
#12
labrocca -- thanks for your reply. I had tried Dennis's fix, so I switched it back and tried yours instead. Although it works for the problem of listing a given user's IP addresses, it is not having any impact on my specific problem, i.e. when I search for users who have posted with my IP address (basically reverse of the search you were doing), it shows me everyone. I can swear to you that I do not have some 74 people in my living room, using my IP. Big Grin

With my other projects I wouldn't even be concerned about this, but this particular forum caters to a fanbase that can be a bit vicious with each other, and we need to keep an eye out for trolls and "imposters".
#13
Do a matching search in modcp. From what I can tell the modcp IP searching works fine. And just because you have an IP doesn't mean it's unique. If you have AOL for instance you can share IPs with thousands of others.

Also try do a direct mysql phpmyadmin search. If that pulls up same results then that's the results in admincp.
#14
ModCP search does work properly; I will do my IP searching there.

For reasons I don't understand, I don't have phpmyadmin access on this project. Have it on every other project I have on that server. No answers from my host, either. This has caused me plenty of problems that I don't need, but when do I ever need problems?

Thanks for the help!
#15
You can install lite mysql html controllers on the site.

http://www.webyog.com/en/
#16
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
#17
My fix:

$counter = 0;
	
	$query = $db->simple_select("posts", "DISTINCT ipaddress", "uid='{$mybb->input['uid']}'");
	while($ip = $db->fetch_array($query))
	{
		++$counter;
		$popup = new PopupMenu("id_{$counter}", $lang->options);
		$popup->add_item($lang->show_users_regged_with_ip, "index.php?module=user/users&results=1&action=search&conditions=".urlencode(serialize(array("regip" => $ip['ipaddress']))));
		$popup->add_item($lang->show_users_posted_with_ip, "index.php?module=user/users&results=1&action=search&conditions=".urlencode(serialize(array("postip" => $ip['ipaddress']))));
		$popup->add_item($lang->ban_ip, "index.php?module=config/banning&filter={$ip['ipaddress']}");
		$controls = $popup->fetch();
	
		$table->construct_cell($ip['ipaddress']);
		$table->construct_cell($controls, array('class' => "align_center"));
		$table->construct_row();
	}


Forum Jump:


Users browsing this thread: 1 Guest(s)