plg-googleWeather v2.6

Status
Not open for further replies.

Kramer

New Member
Hi there,

I installed this plugin
http://www.feenders.de/ratgeber/experten/google-wetterdaten-in-joomla.html

They say I can Include it everywhere with this code

{weather Stadt(City), Land (Country)}

In my Form there are two Elements called land (Country) and region (City)

I want to include these Elements in a displayelement by doing something like that
PHP:
$weathergoggle = '{weather';
$weather =explode('{daten_region___region},');
foreach ($weather as $wea) {
$weathergoggle .= $wea . '{daten_land___land}';
}
$weathergoggle .= '}';
return $weathergoggle;
What is wrong?
 
Your making it complicated. ;)

return '{weather {daten_region___region_raw} , {daten_land___land_raw}}';


That's all you need, make sure you don't add or remove any spaces.
 
FYI, in Fabrik 2.x there was a 'weather' element which used Google's weather service, and allowed you to specify the element(s) on your form to use as the geolocation.

If there is any interest in that, I could probably get it migrated to Fabrik 3.x fairly quickly.

-- hugh
 
Well, my point was that with that element, Fabrik can do Google weather display without needing a 3rd party module.

-- hugh
 
Hi @all,

@felixkat
thanks for the code, but I got this massage in frontend
Could not retrieve weather informations for {daten_region___region_raw
, {daten_land___land_raw}} I?m using the display element.

@hugh
if there is no trouble for you I?m interested in that. Please give me information abaut that

greetings

Alex
 
Hi,

I don?t know what to say... I copied and paste your code to display element.:confused:

PHP:
return '{weather {daten_region___region_raw} , {daten_land___land_raw}}';
 
I'm losing the plot... I forgot I wrote the code with your placeholders! :rolleyes:

What type of elements are the city and country?
 
Not sure what to suggest, these are from my server, (see attached).

Did you enable the weather plugin?
 

Attachments

  • weather1.png
    weather1.png
    11.5 KB · Views: 314
  • weather2.png
    weather2.png
    15.6 KB · Views: 328
  • weather3.png
    weather3.png
    13.7 KB · Views: 321
no,

I didn?t understand the code you wrote me... :-(

you wrote

something like that

PHP:
return '{weather {daten_region___region_raw} , {daten_land___land_raw}}';
but the right one (for me) is

PHP:
return '{weather {daten___region_raw} , {daten___land_raw}}';
btw.

There is one more big issue for me

There are some elements in Form
registered Users can fill out this form. One of the Elements is a Upload Element.
After saving the form other users should be able to upload more files to the entry. At the moment all other registered useres can upload files but they can edit all other fields. How to change, that other registeres users are only able to upload files an not able to edit oher fields. I tried a lot but didn?t get the result I?m looking for.
 
Well I used your original code as a reference, so I can't help it if you gave me the wrong information. :)
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top