1. Startseite
  2. Dashboard
  3. Forum
    1. Unresolved Threads
  4. Gallery
    1. Albums
    2. Map
  5. Lexicon
  6. Kartensysteme
    1. Europaanalyse
    2. Gewitteranalyse
    3. Nowcast
  7. FAQ
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Forum
  • Gallery
  • Lexikon
  • Pages
  • FAQ
  • More Options
  1. Forum
  2. Archivraum
  3. Blitzortung - Archiv
  4. MyBlitzortung - english

Website integration doesn't work

  • noodweer
  • May 3, 2012 at 5:45 PM
  • Thread is Resolved
  • noodweer
    Guest
    • May 3, 2012 at 5:45 PM
    • #1

    Hi everybody,

    I'm running the blitzortungscript on this link, but i want to add the map to my wordpress en drupal website. It doesn't work for me... Can someone give me some clear steps because i already copy and pasted the code in the manual.


    Regards and thanks!

    Nicolas

  • GonzoBS
    Guest
    • May 3, 2012 at 7:13 PM
    • #2

    Hi Nicolas,

    if you use Wordpress, search and install the plugin "Shortcode Exec PHP".
    Then you create your own PHP-File like MyBlitzortung and upload it on your web server (by FTP).
    Now you must include (PHP.net ) the PHP-File in the plugin and insert the Shortcode in an article or a page.

    Thats it :)

    Best regards
    Daniel

  • noodweer
    Guest
    • May 3, 2012 at 9:42 PM
    • #3

    @ Gonzo, thanks for the reply but i don't really understand it..

    I installed the plugin. then i made a random php file with the name "bliksemdetectie.php' and with this code in it:

    <?php
    include "http://weerstationwaregem.be/public_html/bl…blitzortung.php";
    ?><html>
    ...
    Eigenes HTML oder PHP...
    ...
    <?php
    bo_show_map();
    ?>
    ...
    </html>

    But after that i'm stuck. Could u show me how the includes work with screens?

    Best regards

    Nicolas + PS: u have a solution for drupal aswell?

  • GonzoBS
    Guest
    • May 3, 2012 at 10:31 PM
    • #4

    Sorry, I have no idea about Drupal.

    Use this code in your "bliksemdetectie.php":

    PHP
    <?php	include "/public_html/bliksemdetectie/waregem/blitzortung.php";?><?php bo_show_menu(); ?>	<div id="myblitzortung">    	<?php bo_show_all(); ?> 	</div>

    Then search this window in your Wordpress.
    You write "lightning" there where "[hello_word]" stands.
    And you write

    PHP
    include("/server_path/to/your/bliksemdetectie.php");

    there were "return 'Hello world"';" stands.

    Now you create a page or an article and insert

    Code
    [lightning]

    .

    If this doesn't work check your server path at both include command.

  • noodweer
    Guest
    • May 4, 2012 at 7:42 AM
    • #5

    Thanks till now,

    I uploaded the file bliksemdetectie.php with the code like u wrote. Then i made a shortcode with the title bliksemdetectie and the code inside it. But i'm getting this error then when i'm testing it.

    Warning: include() [function.include]: failed to open stream: No such file or directory in /home/nicolhf59/domains/http://noodweer.be/public_html/wp…-class.php(967) : eval()'d code on line 1

    Thanks!

  • GonzoBS
    Guest
    • May 4, 2012 at 10:24 AM
    • #6

    Öhm ... I dont't know... I think you must check your server-path.

    Try this in your bliksemdetectie.php:

    PHP
    include "/home/nicolhf59/domains/noodweer.be/public_html/bliksemdetectie/waregem/blitzortung.php";

    And this in the plugin:

    PHP
    include("/home/nicolhf59/domains/noodweer.be/public_html/bliksemdetectie/waregem/bliksemdetectie.php");
  • noodweer
    Guest
    • May 4, 2012 at 9:24 PM
    • #7

    I'm here again..

    Did the things u said and pasted the shortcode 'lightning' into 1 webpage and it doesn't work for me :(

    "Warning: include(/home/nicolhf59/domains/http://noodweer.be/public_html/bl…semdetectie.php) [function.include]: failed to open stream: No such file or directory in /home/nicolhf59/domains/http://noodweer.be/public_html/wp…-class.php(967) : eval()'d code on line 1"

    Myfile.php looks like:

    <?php
    include "/home/nicolhf59/domains/http://noodweer.be/public_html/bl…blitzortung.php";
    ?>

    <?php bo_show_menu(); ?>
    <div id="myblitzortung">
    <?php bo_show_all(); ?>
    </div>

    I uploaded it to my directory of the blitzortung software.. Do i need some extra coding in config.php or so?

    Thanks for help

  • GonzoBS
    Guest
    • May 5, 2012 at 2:00 AM
    • #8

    Hmm...

    Please try this:
    Create a file with the name "test.php" and this code:

    PHP
    <pre><?php
    echo(dirname(__FILE__).PHP_EOL);
    echo($_SERVER['DOCUMENT_ROOT'].PHP_EOL);
    echo 'PHP Version: ' . PHP_VERSION . PHP_EOL;
    ?></pre>

    Then upload the file to your "/wagerem" folder, call and post the result.

    Regards
    Daniel

  • noodweer
    Guest
    • May 5, 2012 at 11:22 AM
    • #9

    Like u suggested :)

    /home/nicolhf59/domains/http://weerstationwaregem.be/public_html/bl…etectie/waregem
    /home/nicolhf59/domains/http://weerstationwaregem.be/public_html
    PHP Version: 5.2.17

    Regards,

    Nicolas

  • GonzoBS
    Guest
    • May 5, 2012 at 2:58 PM
    • #10

    Ah, ok. You can delete the "test.php".

    Next attempt :)
    Change the include path in your bliksemdetectie.php:

    PHP
    include "/home/nicolhf59/domains/weerstationwaregem.be/public_html/bliksemdetectie/waregem/blitzortung.php";

    And in the Wordpress plugin:

    PHP
    include("/home/nicolhf59/domains/weerstationwaregem.be/public_html/bliksemdetectie/waregem/bliksemdetectie.php");

    Daniel

  • noodweer
    Guest
    • May 5, 2012 at 5:14 PM
    • #11

    Hi Daniel! This works but the CSS gives me a problem. It looks like it's broken into my theme - screenshot

    I think we are almost their

  • GonzoBS
    Guest
    • May 5, 2012 at 6:17 PM
    • #12

    Fine :)

    Oh, I forgot that. You must edit the "header.php" from your Wordpress theme.

    This is the path to the "header.php" File:

    Code
    /[wordpress_folder]/wp-content/themes/[theme_name]

    Between the "<head>"-tags, you must insert this new line:

    Code
    <link rel="stylesheet" type="text/css" href="http://www.weerstationwaregem.be/bliksemdetectie/waregem/style.css" />

    Warning: If you update the theme, you must insert this line perhaps newly.

  • noodweer
    Guest
    • May 5, 2012 at 7:39 PM
    • #13

    Great the wordpress integration of Myblitzortung is a succes now!

    Do i have to edit something more in the bliksemdetectie.php file or config.php file to see the graphs of myblitzortung? I don't see them actually. The dynamic map is fine.

    Thanks Gonzo for everything and the clear explanation. Now i just need that information for drupal aswell :p

    regards,

    Nicolas

  • tobi
    Guest
    • May 5, 2012 at 7:53 PM
    • #14

    I have another possible suggestion, to avoid loosing the changes after an update of the wordpress theme. It's untested, but it could work:

    1. Create a new css file somewhere, i.e. "my.css" .

    2. Put the following line in it:

    Code
    @import url('url/path/to/myblitzortung/style.css');

    3. Add the following line to your existing css from the wordpress-theme at the end of the file:

    Code
    @import url('url/path/to/my.css');

    4. You can now add own styles in the "my.css" after the @import-line.

    Two benefits:
    - If you update the wordpress-theme, only the single line gets lost. Same with the MyBlitzortung style.css.
    - No PHP-Code has to be changed

  • noodweer
    Guest
    • May 5, 2012 at 8:00 PM
    • #15

    Thanks for the usefull information, but it's a fact i don't know much about those computer language..

    A short review of the steps i made to implement the dynamic map into wordpress

    1. i made a new file with the code in it
    2. i updated wordpress with the php plugin
    3. i put the shortcode intro a html page
    4. i see the dynamic map
    5. i edited the header.php for the right css

    5. do i need to edit the config.php or the new file with the php code to see the graphs?
    6. how do i easely put the dynamic map intro drupal?

    Regards,

    Nicolas

  • noodweer
    Guest
    • May 7, 2012 at 5:46 PM
    • #16

    Can someone help me with step 5 and 6?

    Regards,

    Nicolas

  • noodweer
    Guest
    • May 9, 2012 at 1:40 PM
    • #17

    Pff, it doenst' work anymore........ Mylightningdetection works on a link but when i want to put the map into wordpress or Durpal i don't see anything or i see the dynamic map without graphs of the archive...

    Can someone just post a clear explanation with screenshots of how i integratie it on a EASY way......

    Regards

  • tobi
    Guest
    • May 9, 2012 at 5:15 PM
    • #18

    Simply read the documentation:

    Quote

    Graphics

    To deliver the graphics, a helper script is required. The URL to this script is specified by the constant BO_FILE in config.php. The easiest way is to use the blitzortung.php from the MyBlitzortung directory....

    Example:

    PHP
    define('BO_FILE', 'http://weerstationwaregem.be/bliksemdetectie/waregem/blitzortung.php');

    This should be equivalent:

    PHP
    define('BO_FILE', '/bliksemdetectie/waregem/blitzortung.php');

    You should also set at least BO_ARCHIVE_URL and BO_ARCHIVE_URL ! See documentation for this.

    Another thing: You could increase your amplification of your station a lot. Currently, it only detects a 1% of all lightning strikes - that's almost nothing.

  • noodweer
    Guest
    • May 9, 2012 at 10:13 PM
    • #19

    Thanks Tobi for the support. I"m going to try that.

    How do i increase the aplification :o? I just mounted the detector into my room and by night it's going offline (bad radiation?)

    Regards,

    Nicolas

  • tobi
    Guest
    • May 9, 2012 at 10:29 PM
    • #20

    I answered in a new thread.

Radar

Regenradar

Link-Box

Zellenabstand und Zelleninnenabstand in Tabellen
Wegweiser
Kartenanlyse
Webcam
  1. Privacy Policy
  2. Legal Notice
  3. Terms Of Use
  4. Contact

Partner
Viktor´s Supportboard
Besucherzaehler



Powered by WoltLab Suite™ 6.1.19
© Wetter-Board 2004-2026