| 
Welcome, Guest

Conditions plugin
(1 viewing) (1) Guest

TOPIC: Conditions plugin

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

  • Posts:
  • Karma:
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:

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

  • Posts:
  • Karma:
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!!

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

  • Posts:
  • Karma:
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

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

  • Posts:
  • Karma:
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

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

  • Posts:
  • Karma:
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

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

  • Posts:
  • Karma:
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
Time to create page: 0.86 seconds