[TH] Join User Group [Deleted]

OK .... I'm puzzled.....

I installed this and really could not figure out how to work it. I want it so my already existing using group, Mods can be join-able and needs staff approval before they are accepted.

I thought I had this set up correctly, but imagine my surprise when someone was promoted into a MOD without being approved. So I turned it off and figured I'd set this up again when I was less busy....

Trying to set it up now, but any time you click "Join User Group" (on the user end) .... I've given...

The requested page could not be found.
:confused:
This sounds like the bug in Version 1.0.9b. Have you downloaded the latest version?
 
This sounds like the bug in Version 1.0.9b. Have you downloaded the latest version?
Not 100% sure.... Will attempt to install / update this tonight and reply back if resolved or not.

(Says 1.9 in AdminCP, but not all people add the letters on each update. Not sure if you do or not, so will apply again, just to be sure... No harm done if already updated)
 
Not 100% sure.... Will attempt to install / update this tonight and reply back if resolved or not.

(Says 1.9 in AdminCP, but not all people add the letters on each update. Not sure if you do or not, so will apply again, just to be sure... No harm done if already updated)
I don't add the letters because there is no change on the installer. Please make sure that you have uploaded the files correctly and that you are using the very latest versions of the files.
 
Same seems to be happening with a few other pages, such as:
http://www.sociallyuncensored.eu/forums/account/google

Does the above link work if you disable the Join User Groups add-on?
NOPE.

This tells me I have a bigger issues and odds are it may not be related to your modification (I would assume... Unless you know something I don't).

F*ck. * kicks self *

Will most likely close the site tonight and debug. Thanks any ways
 
NOPE.

This tells me I have a bigger issues and odds are it may not be related to your modification (I would assume... Unless you know something I don't).

F*ck. * kicks self *

Will most likely close the site tonight and debug. Thanks any ways
If my add-on is disabled and that link doesn't work then looks like it must be another add-on causing the problems. Best of luck figuring it out.
 
Hi Wain...
When I installed this mod through the auto installer, it completely messed up my ACP, had to uninstall.:)
 
Hi Wain...
When I installed this mod through the auto installer, it completely messed up my ACP, had to uninstall.:)
Sounds like a problem with the Auto Installer. Please contact the developer of that add-on.
 
OK i think we just figured it out but ill leave this up incase in a few hours it fails or something lol

Hello we are using your joinable user groups add-on, im trying to add the user_id and user_group_id in the xf_moderation_queue_joinable_user_group by doing:

PHP:
include_once "../library/Waindigo/JoinUserGroup/Model/JoinableUserGroup.php";
    $waindigo    = new Waindigo_JoinUserGroup_Model_JoinableUserGroup;
    $waindigo->insertIntoModerationQueue($user_group_id,$user_id);

we are receiving errors, what files are required and if you have any advice.
 
OK i think we just figured it out but ill leave this up incase in a few hours it fails or something lol

Hello we are using your joinable user groups add-on, im trying to add the user_id and user_group_id in the xf_moderation_queue_joinable_user_group by doing:

PHP:
include_once "../library/Waindigo/JoinUserGroup/Model/JoinableUserGroup.php";
    $waindigo    = new Waindigo_JoinUserGroup_Model_JoinableUserGroup;
    $waindigo->insertIntoModerationQueue($user_group_id,$user_id);

we are receiving errors, what files are required and if you have any advice.
Looks like the code above is missing a pair of brackets () at the end of the second line before the semi-colon ;.

Is this code being placed in an external PHP file? Not sure if just including one file will be enough. I suggest using a PHP Callback inside of a Page node to keep it inside of XenForo so that it can use the built-in Autoloader to automatically include the files it needs.

Then the code you will need will be something like:
PHP:
$waindigo = XenForo_Model::create('Waindigo_JoinUserGroup_Model_JoinableUserGroup');
$waindigo->insertIntoModerationQueue($user_group_id,$user_id);

Not tested this, so not sure if it will work. What errors are you getting?
 
It's being placed in an external PHP file. We did exactly as you suggested. It took some time to research and reverse engineer to get to a point where it was working, but now that we know how to do it I'm sure it will help us plenty in the future. Thank you so much for making this wonderful plugin. Your time is greatly appreciated!

We ended up doing:
PHP:
        include_once "../library/config.php";
        include_once "../library/Zend/Registry.php";
        include_once "../library/XenForo/Autoloader.php";
        include_once "../library/XenForo/Application.php";
        include_once "../library/XenForo/CodeEvent.php";
        include_once "../library/XenForo/Controller.php";
        include_once "../library/XenForo/Cron.php";
        include_once "../library/XenForo/CssOutput.php";
        include_once "../library/XenForo/DataWriter.php";
        include_once "../library/XenForo/Db.php";
        include_once "../library/XenForo/Debug.php";
        include_once "../library/XenForo/Error.php";
        include_once "../library/XenForo/Exception.php";
        include_once "../library/XenForo/FileOutput.php";
        include_once "../library/XenForo/FrontController.php";
        include_once "../library/XenForo/ImportSession.php";
        include_once "../library/XenForo/Input.php";
        include_once "../library/XenForo/Link.php";
        include_once "../library/XenForo/Locale.php";
        include_once "../library/XenForo/Mail.php";
        include_once "../library/XenForo/Model.php";
        include_once "../library/XenForo/Options.php";
        include_once "../library/XenForo/PasswordHash.php";
        include_once "../library/XenForo/Permission.php";
        include_once "../library/XenForo/Phrase.php";
        include_once "../library/XenForo/Router.php";
        include_once "../library/XenForo/Session.php";
        include_once "../library/XenForo/Upload.php";
        include_once "../library/XenForo/View.php";
        include_once "../library/XenForo/Visitor.php";
        include_once "../library/Waindigo/JoinUserGroup/Model/JoinableUserGroup.php";
     
        $startTime = microtime(true);
        XenForo_Autoloader::getInstance()->setupAutoloader("../library");
        XenForo_Application::initialize("../library", "../");
        XenForo_Application::set('page_start_time', $startTime);
        $dependencies = new XenForo_Dependencies_Public();
        $dependencies->preLoadData();
        $waindigo = XenForo_DataWriter::create('Waindigo_JoinUserGroup_Model_JoinableUserGroup');
        $waindigo->insertIntoModerationQueue($user_group_id,$user_id);

lol, we probably don't need all those files to be included, but that's what we did to get it working. Works flawlessly :)
 
It's being placed in an external PHP file. We did exactly as you suggested. It took some time to research and reverse engineer to get to a point where it was working, but now that we know how to do it I'm sure it will help us plenty in the future. Thank you so much for making this wonderful plugin. Your time is greatly appreciated!

We ended up doing:
PHP:
        include_once "../library/config.php";
        include_once "../library/Zend/Registry.php";
        include_once "../library/XenForo/Autoloader.php";
        include_once "../library/XenForo/Application.php";
        include_once "../library/XenForo/CodeEvent.php";
        include_once "../library/XenForo/Controller.php";
        include_once "../library/XenForo/Cron.php";
        include_once "../library/XenForo/CssOutput.php";
        include_once "../library/XenForo/DataWriter.php";
        include_once "../library/XenForo/Db.php";
        include_once "../library/XenForo/Debug.php";
        include_once "../library/XenForo/Error.php";
        include_once "../library/XenForo/Exception.php";
        include_once "../library/XenForo/FileOutput.php";
        include_once "../library/XenForo/FrontController.php";
        include_once "../library/XenForo/ImportSession.php";
        include_once "../library/XenForo/Input.php";
        include_once "../library/XenForo/Link.php";
        include_once "../library/XenForo/Locale.php";
        include_once "../library/XenForo/Mail.php";
        include_once "../library/XenForo/Model.php";
        include_once "../library/XenForo/Options.php";
        include_once "../library/XenForo/PasswordHash.php";
        include_once "../library/XenForo/Permission.php";
        include_once "../library/XenForo/Phrase.php";
        include_once "../library/XenForo/Router.php";
        include_once "../library/XenForo/Session.php";
        include_once "../library/XenForo/Upload.php";
        include_once "../library/XenForo/View.php";
        include_once "../library/XenForo/Visitor.php";
        include_once "../library/Waindigo/JoinUserGroup/Model/JoinableUserGroup.php";
   
        $startTime = microtime(true);
        XenForo_Autoloader::getInstance()->setupAutoloader("../library");
        XenForo_Application::initialize("../library", "../");
        XenForo_Application::set('page_start_time', $startTime);
        $dependencies = new XenForo_Dependencies_Public();
        $dependencies->preLoadData();
        $waindigo = XenForo_DataWriter::create('Waindigo_JoinUserGroup_Model_JoinableUserGroup');
        $waindigo->insertIntoModerationQueue($user_group_id,$user_id);

lol, we probably don't need all those files to be included, but that's what we did to get it working. Works flawlessly :)
Lol.

Take a look at payment_callback.php. This is an external file, so you should be able to copy how that file accesses the Autoloader. I know that it includes a lot less files than that!

Glad it works though.
 
Top Bottom