Previous Thread
Next Thread
Print Thread
Rate Thread
#175501 06/02/2002 6:58 PM
Joined: Feb 2000
Posts: 62
Member
Member
Offline
Joined: Feb 2000
Posts: 62
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


I'm depriving a village somewhere of an idiot.
Sponsored Links
#175502 06/02/2002 9:27 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
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.

#175503 06/02/2002 10:05 PM
Joined: Feb 2000
Posts: 62
Member
Member
Offline
Joined: Feb 2000
Posts: 62
Thank you Greg - I'll give a try smile


I'm depriving a village somewhere of an idiot.
#175504 06/03/2002 1:24 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I've always wanted my mods to not snoop around the IP's. Might try this out.

#175505 06/07/2002 4:28 AM
Joined: Feb 2000
Posts: 62
Member
Member
Offline
Joined: Feb 2000
Posts: 62
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


I'm depriving a village somewhere of an idiot.
Sponsored Links
#175506 06/07/2002 4:56 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Can you just paste the error here?

#175507 06/07/2002 5:03 AM
Joined: Feb 2000
Posts: 62
Member
Member
Offline
Joined: Feb 2000
Posts: 62
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.


I'm depriving a village somewhere of an idiot.
#175508 06/07/2002 6:46 AM
Joined: Sep 2001
Posts: 379
Member
Member
Offline
Joined: Sep 2001
Posts: 379
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:

#175509 06/07/2002 9:28 AM
Joined: Feb 2000
Posts: 62
Member
Member
Offline
Joined: Feb 2000
Posts: 62
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


I'm depriving a village somewhere of an idiot.
#175510 06/07/2002 12:16 PM
Joined: Sep 2001
Posts: 379
Member
Member
Offline
Joined: Sep 2001
Posts: 379
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.

Sponsored Links
#175511 06/13/2002 6:45 AM
Joined: Jun 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Jun 2002
Posts: 16
wicked, thanks alot. EXACTLY what i was looking for.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)