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 / Support / AdsManager Support / ADS GOLD - cascade field label problem

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.

ADS GOLD - cascade field label problem

More
11 years 9 months ago - 11 years 9 months ago #9360 by dovecosa
ADS GOLD - cascade field label problem was created by dovecosa
Dear staff, I created some tables with regions, provinces and municipalities.
Than I created dropdown for Regions, it works good.
Than I created a cascade field, based on the chosen region and it shows correctly only the related provinces.

The problem is, when I open a new add to insert data, the region field is still empty, and the provinces field for a while (1-2 seconds) shows the double dash as value (--), but then it update itself (I think it's the Ajax function enabled) and the double dash became a string ADSMANAGER_SELECT_CASCADE.

I identified a possible problem within the plug.php file, but I don't want to modify anything without your supervision.
At line 159 it runs an echo command that shows correctly the double dash (coming from the language file)
after this, it calls the ajax function that will populate the cascades with eventually available data, here generate the problem.

I also found some missing lines within the language file (I use italian) and I manually added what's missing grabbing it form the en-GB file and translated the added rows values in italian.
This operation did not impact on the results of the ad entry page.

In order to proceed with further develop I'd like to solve this problem, thanks for your support

If you need it I can directly provide privately access to the web site.
Attachments:
Last edit: 11 years 9 months ago by dovecosa.
More
11 years 9 months ago #9375 by loic
Replied by loic on topic ADS GOLD - cascade field label problem
Hello,

If I understand correctly, the problem come from the translation of the cascade default option.

Did you try to add this constant in an override in the language manager of Joomla ?

Best regards.
More
11 years 9 months ago - 11 years 9 months ago #9384 by dovecosa
Replied by dovecosa on topic ADS GOLD - cascade field label problem
Thank you for yor answer Ioic, I don't think it's a translation problem (but I could be wrong).
If I set the two fields as NOT using Ajax they work correctly. Until you make any choice the empty fields present a '--' value, as read from the language file for the ADSMANAGER_SELECT_CASCADE line.
But if I enable the Ajax function (in order to speed up the form loading) as I open the New AD form the two cascade field present as value the string ADSMANAGER_SELECT_CASCADE (litterally) intead of the related value -- taken from the language file.

Unfortunately, without the Ajax functionality the page loading time increases terribly, (less than a second with Ajax, 7/8 seconds without Ajax).

in any case I'll try with the language override as suggested, even if I don't understand why would it work, being a simple replica of what already present in the it-IT.com_adsmanager.ini file.

I'm investigating the file \images\com_adsmanager\plugins\cascade\plug.php

I hope I made myself clear :)
Last edit: 11 years 9 months ago by dovecosa.
More
11 years 9 months ago #9397 by loic
Replied by loic on topic ADS GOLD - cascade field label problem
Hello,

In the file images\com_adsmanager\plugins\cascade\plug.php, you can replace the translation string directly by the '--' if you want.

The string are at the lines 95 and 159.

Best regards.
Time to create page: 0.060 seconds
Powered by Kunena Forum