Community Forums

Discuss, share and get help from our community of friendly WHMCS users

Close
Login to Your Account
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2015
    Posts
    24

    Default Need help with UnblockMe (or UnBlockIp) addon

    Hi,

    We used UnBlockIp module few years, but week ago it stopped works from the client area (from the admin it works fine). As alternative I found UnblockMe module. Downloaded it and uploaded the files according its "ReadMe" file. When I'm trying to unblock IP address I got "Service ID not found" message (error). This code is in the file unblockme.php in the root of WHMCS installation.

    Does somebody have experience with this module? Every help is welcome and very appreciated.

    Thanks in advance!

  2. #2
    Join Date
    Feb 2013
    Location
    UK
    Posts
    6,977

    Default Re: Need help with UnblockMe (or UnBlockIp) addon

    unless someone has already done so, I doubt you'll easily be able to make UnBlockMe work in v7 - if we're talking about this thread...

    https://forum.whmcs.com/showthread.p...blocker)-Addon

    from the GitHub, the last updated was from 5 years ago and the first thing I can see is that it uses dbconnect.php - but that got removed from WHMCS v6 in 2015...

    http://docs.whmcs.com/Version_6.0_Re..._Dbconnect.php

    6.0 sees the removal of the dbconnect.php file from the root WHMCS directory. This file has been deprecated since WHMCS Version 5.2 and has remained only for backwards compatibility with older modules. As of 6.0 however, any scripts which still rely on including the dbconnect.php file to function will need to be updated to instead include the init.php file. When including the init.php file, it is not necessary to include any other WHMCS files. For reference, the most up-to-date code sample for creating your own custom client area pages which works in WHMCS 5.2.0 and later is available @ http://docs.whmcs.com/Creating_Pages
    you might want to try following the above instructions and changing dbconnect for init and see if that gets you any further... though I suspect they'll be more issues than just that one.

  3. #3
    Join Date
    Jun 2015
    Posts
    24

    Default Re: Need help with UnblockMe (or UnBlockIp) addon

    Thanks for your reply Brian. My version of WHMCS is relatively old, it is version 5.3.14 so it will be ok with dbconnect.php.

    I tried to make some inspection in the code. In the JavaScript code which sends the AJAX request there is some Smarty variable {$id}. I printed it, it is empty. Where is initialised this variable?

  4. #4
    Join Date
    Feb 2013
    Location
    UK
    Posts
    6,977

    Default Re: Need help with UnblockMe (or UnBlockIp) addon

    Quote Originally Posted by vasil_uhmk View Post
    I tried to make some inspection in the code. In the JavaScript code which sends the AJAX request there is some Smarty variable {$id}. I printed it, it is empty. Where is initialised this variable?
    have you followed all the installation instructions?

    https://github.com/shalintripathi/WH...ster/unblockme

    for part 3, you should really be using Language Overrides and not, as those instructions suggest, be editing the original language files.

    with regards to $id being initialised, it's part of the code that you manually add to clientareaproductdetails.tpl...
    PHP Code:
    <form>
    <
    input type="text" size="25" name="myip" value="{$smarty.server.REMOTE_ADDR}style="text-align: center;" readonly /><br />
    <
    input type="button" id="unblockme" value="{$LANG.unblockme_unblock}class="button" />
    </
    form

Similar Threads

  1. UnBlockIp module stopped work from client area
    By vasil_uhmk in forum Troubleshooting Issues
    Replies: 3
    Last Post: 06-16-17, 09:04 AM
  2. UnblockIP addon broken since 7.1?
    By TommyK in forum Third Party Add-ons
    Replies: 4
    Last Post: 01-14-17, 12:47 PM
  3. UnBlockIP - Free CSF Unblock Module for WHMCS
    By jclarke in forum Third Party Add-ons
    Replies: 200
    Last Post: 02-20-16, 09:13 AM
  4. UnblockMe (CSF/cPanel Unblocker) Addon
    By laszlof in forum Commercial Modules and Addons
    Replies: 124
    Last Post: 07-03-13, 01:21 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •