Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

× Contact Enhanced is a contact component manager created to replace Joomla! core contacts component and add lots of advantages and new features (see Features ) and it offers many plugins and modules for several different purposes,
Product page | Documentation Page

subject field

13 years 10 months ago #2967 by grichardson
Hello,

I am trying to use the subject field, but I would like to pass a string via cookies to populate that field. I am able to do it on the first pass, but if I return to my previous screen then try to pass in a new string, the field is still populated with the previous string.
My cookies are working properly as it changes when I select a new string.

Can anyone help me with this?

Thanks
-gr

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

13 years 10 months ago #2968 by douglas
Dear GR,

It is not clear to me how you are doing this, however I would simply add a cookie called ce_cookie[subject] with the content that you want to populate.

If you are setting the cookie via PHP try this:
setcookie("ce_cookie[subject]", field_value, 3600, '/' );

Best regards,

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

13 years 10 months ago #2969 by grichardson
Thanks,
I was creating my own cookie, then I had to modify the code on the customFields.class.php to accept it.
I have changed everything back and I am using your cookie, but it still does the same thing. I am able to set the field only on the first pass at the page, every consecutive attempt will change the cookie, but keep the first string that I passed in.
Any thoughts?
-GR

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

13 years 10 months ago #2971 by douglas
Dear GR,

I don't know your script however it could be due to 1: the content is cached, or 2: your code is not reseting the cookie;

If you don't use a PHP debugger you can print the content of the cookie in every page load of your script, just to make sure it reseting the cookie.

Best regards,

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

13 years 10 months ago #2972 by grichardson
The cookie is definitely getting reset. It must be a caching problem.
Thanks.
-GR

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

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback