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

Adding referring url to form

14 years 11 months ago #245 by jdundon
First off, great product. Second, I looked through the forums and can't find anybody else trying to do this. I am implementing this for lead generation when coupled with jReviews for a contractor rating website. I am trying to figure out a way to pass the referring url in the email form (so I know which listing the person is inquiring about) but it keeps stripping that input. I am pretty good at html but am just learning javascript and php so please bear with me. :cheer: Thanks in advance for the help!

Here is my setup:

1. In the listing, I have a link that says "contact this contractor" that takes the user to the contact form.

2. I went into views/contact/tmpl/default_form.php and added this javascript to the top:
<script type="text/javascript">
function start() {
var ref = document.getElementById('referrer');
ref.value = document.referrer;
}
onload = start; 
</script>

then this to the bottom area with the rest of the hidden inputs:
<input type="hidden" id="referrer" value="">

I then tried it out and sent the email, but the referring url is not passed in the email. I tried again and looked at the source before I submitted the form, and sure enough the input is right there, with the proper referring url from the last page, but it doesn't get passed to the email.

Any ideas? I'm sure it is something simple. Thanks!

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

14 years 11 months ago #246 by douglas
Dear Jdundon,

How long can you wait? I'll probably start working on a new version next week.
I can implement this and include in CE's core functionality.
The best way to accomplish this is to use PHP instead of Javascript.

Regards,

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

14 years 11 months ago #247 by jdundon
Great response time!

We would like to get this working in two weeks or so. Any idea when that new version will be released? :P

Any quick hacks I can implement in the mean time? Thanks!

Jesse

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

14 years 11 months ago #248 by douglas
Dear Jesse,

If you can wait at least another week would be great. I've been working on a new version of my Name Meaning Component and I've been having some performance issues that I have to take care of. I've been trying to fix it for over 14 hours straight.

Can you remind me to work on this next Wednesday or Thursday?

Regards,

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

14 years 11 months ago #249 by jdundon
Sure, thanks!

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