[OzzModz] Hide Users IP In Public

[OzzModz] Hide Users IP In Public 2.0.2 Patch Level 3

No permission to download
ParseError: syntax error, unexpected 'use' (T_USE), expecting '{' in src/addons/OzzModz/HideIp/XF/ControllerPlugin/Ip.php at line 4
I get the following errors when running the plugin in Xenforo 2.2 and pressing "IP" on a given user post:
  1. Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
  2. Composer\Autoload\ClassLoader->loadClass()
  3. spl_autoload_call()
  4. class_exists() in src/XF/Extension.php at line 172
  5. XF\Extension->extendClass() in src/XF/App.php at line 2674
  6. XF\App->extendClass() in src/XF/Mvc/Controller.php at line 646
  7. XF\Mvc\Controller->plugin() in src/XF/Pub/Controller/Post.php at line 313
  8. XF\Pub\Controller\Post->actionIp() in src/XF/Mvc/Dispatcher.php at line 350
  9. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  10. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  11. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  12. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2190
  13. XF\App->run() in src/XF.php at line 391
  14. XF::runApp() in index.php at line 20
 
ParseError: syntax error, unexpected 'use' (T_USE), expecting '{' in src/addons/OzzModz/HideIp/XF/ControllerPlugin/Ip.php at line 4
I get the following errors when running the plugin in Xenforo 2.2 and pressing "IP" on a given user post:
  1. Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
  2. Composer\Autoload\ClassLoader->loadClass()
  3. spl_autoload_call()
  4. class_exists() in src/XF/Extension.php at line 172
  5. XF\Extension->extendClass() in src/XF/App.php at line 2674
  6. XF\App->extendClass() in src/XF/Mvc/Controller.php at line 646
  7. XF\Mvc\Controller->plugin() in src/XF/Pub/Controller/Post.php at line 313
  8. XF\Pub\Controller\Post->actionIp() in src/XF/Mvc/Dispatcher.php at line 350
  9. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  10. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  11. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  12. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2190
  13. XF\App->run() in src/XF.php at line 391
  14. XF::runApp() in index.php at line 20

Should be fixed in 2.0.1
 
Still doesn't work, following error when pressing "IP" on given user post:

Error: Call to a member function getParam() on null in src/addons/OzzModz/HideIp/XF/ControllerPlugin/Ip.php at line 15

  1. OzzModz\HideIp\XF\ControllerPlugin\Ip->actionIp() in src/XF/Pub/Controller/Post.php at line 314
  2. XF\Pub\Controller\Post->actionIp() in src/XF/Mvc/Dispatcher.php at line 350
  3. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  4. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  5. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  6. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2190
  7. XF\App->run() in src/XF.php at line 391
  8. XF::runApp() in index.php at line 20
 
Screenshot please.
On someone's profile. Moderator tools > IP address or shared IPs shows this error:

It doesn't seem to happen for accounts that are added in the addon options.

Error: Call to undefined method XF\Mvc\Reply\Message::getParam() in src/addons/OzzModz/HideIp/XF/Pub/Controller/Member.php at line 15
  1. OzzModz\HideIp\XF\Pub\Controller\Member->actionUserIps() in src/XF/Mvc/Dispatcher.php at line 350
  2. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
  3. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  4. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  5. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
  6. XF\App->run() in src/XF.php at line 488
  7. XF::runApp() in index.php at line 20
 
So for this all you are doing is hiding the IP address of the posted from the Mod or from other members?

Also can you make it so it works for a group of members, not just individual ones? e.g. all registered members it hides?

Thanks in advance.
 
No, there would be no reason to hide registered users up in the public. For yhst you’d simply remove the permission to view Ip’s.
 
Back
Top Bottom