Skip to Content Skip to Menu

Conditions plugin

  • smeallum
  • smeallum
  • OFFLINE
  • Posts: 26
  • Thanks: 0
  • Karma: 3
18 years 5 months ago #15568 by smeallum
Replied by smeallum on topic Re:Conditions plugin
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

Please Log in or Create an account to join the conversation.

  • ralex
  • ralex
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #15572 by ralex
Replied by ralex on topic Re:Conditions plugin
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 :dry:

Please Log in or Create an account to join the conversation.

  • ginsu
  • ginsu
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #15573 by ginsu
Replied by ginsu on topic Re:Conditions plugin
not sure why you using -pnum. I didn't and it worked fine for me

Please Log in or Create an account to join the conversation.

  • ralex
  • ralex
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #15574 by ralex
Replied by ralex on topic Re:Conditions plugin
do u manage to make this plugin work? :laugh:

Please Log in or Create an account to join the conversation.

  • ginsu
  • ginsu
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
18 years 5 months ago #15577 by ginsu
Replied by ginsu on topic Re:Conditions plugin
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

[code:1]$_PLUGINS->loadPluginGroup('user');[/code:1]

In the hack after declaring $_PLUGINS as global.

The hack therefore becomes

[code:1]
global $_PLUGINS;
$_PLUGINS->loadPluginGroup('user');
$_PLUGINS->trigger( 'onAfterUserProfileEditDisplay', array($user,true));
[/code:1]

and

[code:1]
global $_PLUGINS;
$_PLUGINS->loadPluginGroup('user');
$_PLUGINS->trigger( 'onAfterRegisterUserDisplay', null);
[/code:1]

Please Log in or Create an account to join the conversation.

  • smeallum
  • smeallum
  • OFFLINE
  • Posts: 26
  • Thanks: 0
  • Karma: 3
18 years 5 months ago #15579 by smeallum
Replied by smeallum on topic Re:Conditions plugin
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:(

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum