MyBB Community Forums

Full Version: remove super admin IP from posts and online?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I remeber seeing a tutorial that edited a file or a template that just removed the admin IP from all posts. Is this even possible? Like I said I'm very new so I don't quit understand Undecided thanks for all the help guys
(2012-11-10, 11:50 PM)sn4g Wrote: [ -> ]I remeber seeing a tutorial that edited a file or a template that just removed the admin IP from all posts. Is this even possible? Like I said I'm very new so I don't quit understand Undecided thanks for all the help guys

Did you try the code that I posted above?
(2012-11-09, 10:18 PM)borbole Wrote: [ -> ]That is because the templates do not support conditionals. You will need a hook for that. Anyway, for the hook try the postbit, whereas for the php code for your function try this:

global $mybb;
if($post['uid'] == 1)
{
$mybb->settings['logip'] = 0;
}

I haven''t test it but it should do the trick.

Where would the code go, and what section?

(2012-11-09, 10:25 PM)Leefish Wrote: [ -> ]There is of course the option to ADD the power to use conditionals in templates - this

http://mybbhacks.zingaburga.com/showthread.php?tid=260

What does that plugin do?
(2012-11-12, 07:02 AM)MYBB GHOST Wrote: [ -> ]
(2012-11-09, 10:18 PM)borbole Wrote: [ -> ]That is because the templates do not support conditionals. You will need a hook for that. Anyway, for the hook try the postbit, whereas for the php code for your function try this:

global $mybb;
if($post['uid'] == 1)
{
$mybb->settings['logip'] = 0;
}

I haven''t test it but it should do the trick.

Where would the code go, and what section?

(2012-11-09, 10:25 PM)Leefish Wrote: [ -> ]There is of course the option to ADD the power to use conditionals in templates - this

http://mybbhacks.zingaburga.com/showthread.php?tid=260

What does that plugin do?
yeah I'm also wondering where the code must go. I played with the plugin and have no clue what im doing.
sn4g made a request at my forum about this and I coded a little plugin for him. For anyone else who would be interested in the plugin it can be downloaded here:

http://www.forumservices.eu/mybb/showthread.php?tid=17
(2012-11-12, 09:52 PM)borbole Wrote: [ -> ]sn4g made a request at my forum about this and I coded a little plugin for him. For anyone else who would be interested in the plugin it can be downloaded here:

http://www.forumservices.eu/mybb/showthread.php?tid=17

Please can you give us a working link for this
Pages: 1 2