I wonder how is it possible in the user’s listing to show the data from [+form.country+] ?
(and by mail too) I tried [+view.country+] but got the code of the country, i.E 174 for france.
Could some one point me in the right direction ?
Thks in advance.
-
☆ A M B ☆
- 24,524 Posts
The webloginpe.class has a function for converting the numerical ID to the country string. There appear to be two country placeholders, user.country that sets the string and user.country.integer that sets the numerical ID. There is also view.country, which sets the string. Or at least it should; it uses the StringForCountryInt() function. I see from the code that the mail function does not include that information, and the mail is hard-coded instead of using a template, so you would need to hack the class file to include the country in the information mailed.
Actually, I haven’t spent as much time on understanding this snippet as I would like to since there are so many bugs and patches and workarounds that it is difficult to get a working copy where I won’t be stumbling over already known and patched bugs. I’ve been waiting until an updated version is released to give a better starting point.
I suppose one of these days I’ll have to install it and work through the forums post-by-post patching as each one is discussed.
-
☆ A M B ☆
- 24,524 Posts
I’m trying to follow the coding logic and not having much luck. For example, I can’t find where some of the placeholders (form.country, specifically) are set to begin with. I’ll spend some more time on it today; I imagine you would like to get this resolved as quickly as possible.
-
☆ A M B ☆
- 24,524 Posts
No, sorry, I haven’t had a great deal of time to dig lately...