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 / [RESOLVED] "url field" for VK (Display 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

[RESOLVED] "url field" for VK (Display http://)

More
10 years 9 months ago - 10 years 9 months ago #17781 by Anton.D
Hello. I need create new url field for VK only.
Now, if i add new field and set "URL", i can set "Display http:// before the input", but it is add "http://" in url onlly. How i can change "http://" to "vk.com/"

Thanks
Last edit: 10 years 9 months ago by loic.
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17795 by loic
Hello,

Without the http:// the URL will be wrote by using the URL of your website, for example, if your website is test.com, the url will be test.com/vk.com.

If you are sure about that, you can remove the http:// in 'component/helpers/field.php', just replace the line 155:
$link = 'http://'.$value;

By:
$link = $value;

Best regards.
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17802 by Anton.D
Thanks!
i change 155 line to: $link = 'vk.com/'.$value;
and 510 line to : $return .= "<span class=\"url-prefix\">vk.com/";

Now all rights and works =))
The following user(s) said Thank You: adarr
More
10 years 9 months ago #17812 by loic
Great news :)

Please, note that a reinstallation of AdsManager will erase those modifications, so keep them somewhere, in case you need to reinstall the component.

Best regards.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.077 seconds
Powered by Kunena Forum