UBB.Dev
Posted By: guvner IP = Admin only - 06/03/2002 1:58 AM
I posed the following question at IP:

Is there a way of preventing Mods from viewing IPs and restricting them to Admin only (6.3.0)

Graeme responded:

Hint: ubb_get_topic.cgi, sub get_ip - search for the call to is_admin_or_mod

Sadly, my skills being what they are, I need a little more info - my "guess" was:

should I turn is_admin_or_mod into is_admin ?

but obviously IP can't take me any further . .

Any ideas here?

Thanks a lot smile
Posted By: Greg Hard Re: IP = Admin only - 06/03/2002 4:27 AM
Open ubb_lib.cgi find:

sub is_admin_or_mod

above that add:

Code
[/code]ubb_get_topic find:
Code
</pre></div></div>replace with:<br>[code]
That, in theory, should do it.
Posted By: guvner Re: IP = Admin only - 06/03/2002 5:05 AM
Thank you Greg - I'll give a try smile
Posted By: Lord Dexter Re: IP = Admin only - 06/03/2002 8:24 AM
I've always wanted my mods to not snoop around the IP's. Might try this out.
Posted By: guvner Re: IP = Admin only - 06/07/2002 11:28 AM
Sorry Greg,

Could you take another look at the above code please, now (as the admin) when I click the "ip-logged" link, I get the error message about only admins (took out mods in wordlets) are allowed to perform this function.

Thanks a lot smile
Posted By: Lord Dexter Re: IP = Admin only - 06/07/2002 11:56 AM
Can you just paste the error here?
Posted By: guvner Re: IP = Admin only - 06/07/2002 12:03 PM
It's not really an error, it's standard issue out of the error message wordlets:"not_admin_or_mod "

It means that since I applied the mod, for the purpose of viewing IPs (against each post) - the system doesn't recognise me as an admin.

All other admin functions are OK.
Posted By: Idle Re: IP = Admin only - 06/07/2002 1:46 PM
I believe there's a minor glitch in Greg's code. tipsy

Try this instead:

[code][/code]This is similar to what I've been using at some BBS I administrate, hasn't failed me yet. :rolleyes:
Posted By: guvner Re: IP = Admin only - 06/07/2002 4:28 PM
Yayyyy - go Idle laugh - thanks for that laugh

Now that I have admin only on the IPs and your advanced IP logging working like a charm, my people "problem" has gone away.

I'm not sure - but did you update the MH as yet? - I d/l a fresh copy but had to delete the public_display_profile.pl hack and use your text fix [ here ]to prevent mods from viewing the bonus info.

Anyway thanks again wink
Posted By: Idle Re: IP = Admin only - 06/07/2002 7:16 PM
No problem.

No, I haven't updated the MultiHack files, and I'm afraid that I won't update them again.

So far I've found MultiHack to be too unreliable for already modified UBBs,
beside the annoying fact I don't have time to maintain both the text files and MHP files.
Posted By: SLAM SLAM Re: IP = Admin only - 06/13/2002 1:45 PM
wicked, thanks alot. EXACTLY what i was looking for.
© UBB.Developers