| 
Welcome, Guest

Conditions plugin
(1 viewing) (1) Guest

TOPIC: Conditions plugin

Re:Conditions plugin 5 years, 7 months ago #15568

  • Posts:
  • Karma:
I have the same problem. i have installed the plugin and patched the comprofiler.html.php as instructed(i have done it manually...very easy).

I have verified and verified the data/conditions i have put in the tables, and it's correct, but the 2 combo boxes load ALL the data, instead of one waiting for the selection of the other to populate. this happens both in registration, or when modifying a user's profile.

What could i be doing wrong?

Hope some light is thrown soon

Cheers,
NiCo

Re:Conditions plugin 5 years, 7 months ago #15572

  • Posts:
  • Karma:
patch: **** strip count num is not a number .... error when u applied the patch... using this command ... patch -pnum comprofiler.html.php comprofiler_patch.txt

Re:Conditions plugin 5 years, 7 months ago #15573

  • Posts:
  • Karma:
not sure why you using -pnum. I didn't and it worked fine for me

Re:Conditions plugin 5 years, 7 months ago #15574

  • Posts:
  • Karma:
do u manage to make this plugin work?

Re:Conditions plugin 5 years, 7 months ago #15577

  • Posts:
  • Karma:
Ok guys I have found and fixed the problem.

Apparently, the plugin wasn't loaded before it was called and as a result it wasn't firing. To fix this simply put this line

$_PLUGINS->loadPluginGroup('user');


In the hack after declaring $_PLUGINS as global.

The hack therefore becomes

 
global $_PLUGINS;
$_PLUGINS->loadPluginGroup('user');
$_PLUGINS->trigger( 'onAfterUserProfileEditDisplay', array($user,true));
 


and

 
global $_PLUGINS;
$_PLUGINS->loadPluginGroup('user');
$_PLUGINS->trigger( 'onAfterRegisterUserDisplay', null);
 

Re:Conditions plugin 5 years, 7 months ago #15579

  • Posts:
  • Karma:
how come that slip out the patch?

Anyway i added that line(twice in comprofiler.html.php) but still i get both combo boxes filled with all rows, instead of the second getting filled depending on the first selection.

NiCo:(
Time to create page: 1.15 seconds