Conditions plugin

17 years 10 months ago #15612 by smeallum
Replied by smeallum on topic Re:Conditions plugin
Hi, i have added 2 custom fields to CB registration called cb_country and cb_city, and i want the city to get filled depending on the country chosen.

I have installed the condition plugin latest, modified manually comprofiler.php.html(i have added also the 2 lines missing) and populated the relevant databse tables to my understanding of the instructions. However, it's not working right, cause when i get to registration or change profile, both combo boxes are populated fully, and no special behaviour is there.

Hopefully somebody will be able to point out to me what i am doing wrong or missed. Thanks a lot in advance

Portions of the dump of my database are in the file attached

Thanks in advance
;)

Attachment howihavemytables.txt not found

Attachments:

Please Log in to join the conversation.

17 years 10 months ago #15618 by ginsu
Replied by ginsu on topic Re:Conditions plugin
Well I see one possible problem

The field entry for cb_city has a conditionid of '0' but you haven't specified a condition with id '0'. I suggest that you set that conditionid back to NULL and try again.

Hope it works!!

Please Log in to join the conversation.

17 years 10 months ago #15625 by smeallum
Replied by smeallum on topic Re:Conditions plugin
Thanks Ginsu,

True, i had set that to 0 to see if it made a difference and forgotten to put it back to NULL. I put it back to NULL but still same problem :S

Please Log in to join the conversation.

17 years 10 months ago #15626 by smeallum
Replied by smeallum on topic Re:Conditions plugin
Could it have anything to do with the ordering value in jos_comprofiler_field_values?

I have all the cities with that value set to 0

Cheers,
NiCo

Please Log in to join the conversation.

17 years 10 months ago #15627 by ginsu
Replied by ginsu on topic Re:Conditions plugin
I noticed that same thing and was thinking about that.

I was just looking at the javascript to see if it checks all that. Not seeing where it does but it's worth a try. Set them to be valid (non-zero) values.

It's worth a shot

I am here trying to write a plugin of my own....stress

Please Log in to join the conversation.

17 years 10 months ago #15632 by smeallum
Replied by smeallum on topic Re:Conditions plugin
I set them all to ordering=1 but with no luck, still same problem.

Some words from the developer? Does the ordering affect functioning?

Cheers,
Nico

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.535 seconds

Facebook Twitter LinkedIn