Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / URL Field - Remove Autofill of the http://

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

URL Field - Remove Autofill of the http://

More
12 years 1 month ago #6831 by ilinear
Hi,

I had create two url fields, one is for insert website and another one is for booking site, show as attached file.

However, when i copy and paste the website link to this URL field ( example, i copy www.ilinear.com.my and paste at the website column), the outcome will show as http://http://www.ilinear.com.my, this outcome bring my visitors to the broker site.

I had try using language override, but fail to found part to edit.

Please advice.

Thank you very much.


Attachments:
More
12 years 1 month ago #6847 by tompap
Replied by tompap on topic URL Field - Remove Autofill of the http://
Hello,

you should edit helpers/field.php there is no way without hack the code to override this.
More
12 years 1 month ago #6871 by ilinear
Replied by ilinear on topic URL Field - Remove Autofill of the http://
Dear tompap,

Thanks for your reply.

Please advice which code to hack can?

Appreciating your help and advice.

Thank you.
More
12 years 1 month ago #6896 by loic
Hello,

Before making an override, did you try to set the parameter 'Display http:// before the input' to No ?

I've just made a test and I don't have the duplication of the 'http://' string.

If you still have the problem, could you tell me what version of AdsManager you have ?

Best regards.
More
12 years 1 month ago #6941 by ilinear
Replied by ilinear on topic URL Field - Remove Autofill of the http://
Hi loic,

Sorry for late reply. I'm using version of 2913.

By the way, I had try as you suggest last week, edit field.html at line below. I had remove this word ( http://) and so far, when user insert their website link example ( www.testing.com ), its able to link to correct page.

But, when visitors insert website link, example ( www.testing.com), then it become not work.


case 'url':
if ((isset($field->link_text))&&($field->link_text != ""))
$linkObj = $field->link_text;
else if ((isset($field->link_image))&&(file_exists(JPATH_BASE."/images/com_adsmanager/fields/".$field->link_image)))
$linkObj = "<img src='".$this->baseurl."images/com_adsmanager/fields/".$field->link_image."' />";
else
{
$linkObj = $value;
}
if ($value != "")
{
$return .= "<a href='$value' target='_blank'>$linkObj</a>";
}
break;

Please guide me, if the coding is wrong.

Thank You.
More
12 years 1 month ago #6957 by loic
Hello,

Could you make a right click on a link, then click on the 'copy link' option and after that paste it here ?

I don't see anything wrong with your code.
Moderators: perry
Time to create page: 0.175 seconds
Powered by Kunena Forum