Forums

Wrong datatype and some suggestions

Peter Brooks 12 May, 2007
I have just tested v1.7. can you include the version number when looking at the component?

I put in 2 fields to test with and got 3 errors back:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in .. /components/com_chronocontact/chronocontact.php on line 80

The email came back with the 2 fields. Can this email coming back be formatted so the Field name and field data is concatenated with a colon and a space? eg. Surname: Brown. It has a huge amount of white space in between.

Thanks for you great contribution.
Max_admin 13 May, 2007
Hi,

regards the 2nd problem, you can use the email template, plz see the tool tips beside each element, they have much info, nobody watch this.

regarding #1, thanks, this is a small issue which I fixed and will be in the next versions, you can edit your chronocontact.php, change line 80 which is :
if(in_array(trim($name),$omittedlist)){continue;}


to be :

if(trim($paramsvalues->omittedfields) != ''){
					if(in_array(trim($name),$omittedlist)){continue;}
				}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Peter Brooks 14 May, 2007
I implemented that change and it had no affect. Is it that the 2nd parameter '$omittedList' is wrongly defined?

if(trim($paramsvalues->omittedfields) != ''){$omittedlist = explode(",",$paramsvalues->omittedfields);}

I am a novice at this so just throwing around some ideas.

If a new version is on its way this week then I can wait.

Thanks.
Peter Brooks 14 May, 2007
I looked at the tool tips in the Elements titles tab. The grammar and spelling needs fixing and an example needs to be shown as I still have no idea how to format the email page.
I do not need to change the element names only the format of how they appear on the email page. eg Surname: Brooks
Also I have been clicking on the Tooltip icons thinking that a bigger help screen will popup.

Looking forward to that Demo.
GreyHead 31 May, 2007
This change appears to have fixed the problem for me. Thanks Bob
GreyHead 31 May, 2007
Peter, a bit cumbersome but you can add the colons in the 'Elements Titles' tab like "field15=First name: "

Bob
GreyHead 31 May, 2007
Peter. lastly, the tooltip texts are all in com_chronocontact/admin.chronocontact.html.php if you want to edit them.

Bob
kstlouis 04 Jun, 2007
I am getting this same error and I am using the most recent version, in which line 80 is already corrected.

Any suggestions?<br><br>Post edited by: kstlouis, at: 2007/06/04 18:56
Max_admin 04 Jun, 2007
Hi,

This is weird, try adding "anything" at the "omitted field names" field at the form edit screen ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kstlouis 04 Jun, 2007
Yes, that seems to have worked.

Thank you!
Max_admin 05 Jun, 2007
Well done!

Good luck!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.