Page 1 of 2

Adding Lightning tracker

Posted: Mon Oct 02, 2017 3:44 am
by stuee
Hi, i have a Boltek lightning tracker and using nexstorm.
How do i set this as a menu item as i have 2 html pages for it. One is java and other html5.
I would like the menu as Lightning tracker title and opens the main one but also on mouse over it shows link to backup. (.html)

I also have some other scripts i would like to run the same way and i have them working as iframe in wordpress, how would i use on here,

thanks for your help :)

Re: Adding Lightning tracker

Posted: Mon Oct 02, 2017 4:50 am
by dmgould
Below is a copy/paste of the Travel tab content that includes links to a custom page within my MT named 'hllinks.php'. It also has a link to a specific area on google maps and another link to a state map which is an html page. You can visit my site to see how it all works. This might be what you are wanting to do. I've added a space before the |fa fa-icons below that aren't actually in the content so that the links should also work from here.

>>>
>>home page
home page|http://www.highlandlakesweather.net/template/index.php |fa fa-arrow-left
>>local travel information
travel links|http://www.highlandlakesweather.net/tem ... llinks.php |fa fa-car
google maps|https://www.google.com/maps/@38.6589399 ... a=!5m1!1e1 |fa fa-car
colorado trip|http://www.cotrip.org/map.htm |fa fa-car
>>air traffic - flightradar24 radarbox
#plugin(airTraffic)

Re: Adding Lightning tracker

Posted: Mon Oct 02, 2017 5:27 am
by stuee
cool. that kind of makes sense.

How do you get your webcam working, i have an ip camera but not sure how to get it working on here.

One more question as you seem to be a person in the know :)
The main page has blocks and layout, can i setup another page that uses the same type of structure?

Re: Adding Lightning tracker

Posted: Mon Oct 02, 2017 5:45 am
by dmgould
Mine are also ip cameras. On my Pueblo home page the webcam just uploads (ftp) an image to my site and replaces that image every few minutes. On the Highland Lakes home page I upload to WUnderground and just reference the image from there on my home page. They are both displayed using the block dynamic image and a direct URL in the setup. On the actual weather camera menu page all the images are from my uploads to WUnderground including the time lapse. The only problem is WUnderground keeps taking the cameras off line lately for hours at a time.

Blocks only work on the home page. You can add custom pages from blanks with headers and footers that Jachym includes in MT, but you have to code them on your own to display what you want on them.

Re: Adding Lightning tracker

Posted: Mon Oct 02, 2017 8:02 am
by stuee
i added the lightning tracker as this

>>>
>>home page
home page|http://frasercoastinfo.com.au/weather/m ... esktop.php |fa fa-arrow-left
>>lLightning tracker backup
travel links|http://frasercoastinfo.com.au/weather/l ... VueNG.html |fa fa-car

but it opens the html in an new window, i want it to open in the bottom so i still have the top bar and menu?

am i missing something?

Re: Adding Lightning tracker

Posted: Mon Oct 02, 2017 8:41 am
by Jachym
Hi,
use the PageBuilder plugin, if you link to an HTML page it will simply redirect to that, it will not show anything else from MT (header etc.). I would also recommend trying to avoid iframes, it is good practice not to use them because they can cause serious issues and completely ruin the design of the overall template.

Re: Adding Lightning tracker

Posted: Mon Oct 02, 2017 9:56 am
by stuee
dmgould managed to get his link to open with the header and menu still there, thats what i want.
I dont want the page to open and everything disappear.

Happy venture away from Iframe is you recommend it :)

Re: Adding Lightning tracker

Posted: Mon Oct 02, 2017 2:55 pm
by dmgould
This might help you. Check out this link in your template.

http://frasercoastinfo.com.au/weather/m ... /blank.php

In the 'custom' directory there is a blank page that includes the header and footer named blank.php. You can place code on this page and then save it with a new name to preserve the blank page. You can place links to this new page or links on this new page itself. The link can specify to open a new window or replace the current page. You can transfer code from another page onto this page to get a page with the header and footer. You do need to have some basic programming knowledge to understand how to do it.

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 4:03 am
by stuee
thanks dave.
Ive tried a few things but it keeps wanting to open
http://frasercoastinfo.com.au/weather/l ... VueNG.html
in a new window. Its driving me insane :/

how would i place this link in the file to get it opening in the same window so it keep the header and menu etc

thanks

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 5:31 am
by dmgould
I went and looked at your site in /meteo and clicked 'Lightning Tracker' on your menu. You are pointing to the page StormVueNG.html in the other weather site. For it to work inside of MT with the header and menu and all, you are going to have to point it to a new page in the /custom directory in MT. I would start with a copy of blank.php in that /custom directory named something else like lightning.php. It will have the header, footer, and menu. Point the menu item Lightning Tracker to that new page. After that menu link opens the new page correctly you will next have to figure out how to copy that flash object into that new page. For a start you could just copy the whole html code from StormVueNG.html into lightning.php below the header - I use Notepad++. Then upload lightning.php back to the /custom directory and test it. You probably want it to end up looking about like it does on the other weather site in the center of the page, and similar to how your radar page looks only with the single flash object.

I know some html works embedded in php, but I am just getting the hang of php so I don't know if it will work in this case. Maybe.

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 6:23 am
by dmgould
The flash content is not on my site so the flash won't run. Using Notepad++ I just pasted in the html code from your page StormVueNG.html into blank.php, saved it back as lightning.php and uploaded back to the custom directory. It looks like it might work. Of course I didn't add it to my menu.

http://www.highlandlakesweather.net/tem ... htning.php

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 6:49 am
by dmgould
I just checked and it looks like you got it. Good deal. I added a <center></center> command when I tested it on my site - works either way.

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 7:02 am
by stuee
Hi dave, yes i cut the html file into the php and it worked, only problem is the 5 supporting files i have to have in the custom folder and i dont want them there as i need to make more custom pages now and its going to get messy.

currently my setup is

----weather
--- Lightning
--vuengx
-supporting files here etc

--- meteo
-- custom
- custom php etc here lightning.php

How can i get the lightning.php to look at the lightning folder for its supporting files?

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 7:15 am
by dmgould
Probably the flash content just has to be adjusted so it knows where to look for the supporting files. Right now it looks like it assumes they are in the same directory. You will have to research how to adjust the flash content or maybe just try changing the 'value' to point to where it actually resides to see if that works. I haven't worked much with flash except to copy and paste existing content or links.

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 8:00 am
by Jachym
Or not use the flash at all - probably the best solution. Don“t forget Flash is a dead technology. It will not work on any mobile device and as of next yr, not even desktop browsers. It is a bad practice to use it these day and in a way waste of time too because it will stop and for some already stopped working. They will only see a grey box.

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 8:08 am
by stuee
Ok all sorted.
What i did was point move the blank.php (renamed) to original folder then relative path the config.php for the MT.
That works great now and also the rain radar script i have works great now,

This means i can import lots of my scripts from my previous WP site.

thanks for your assistance too.

I still need to ask you how to setup the ip webcam too. Ive got the cronjob going etc but not sure what the image path is?

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 8:13 am
by stuee
The Software i purchased as an extra so for $400 has 2 versions of web files. ones a flash and the other is html5.
Ive not had time to setup the html5 one as its a bit complicated and involves quiet time and 12 bottles of beer. :)

when i get more things organised and it is live early next week ill sort out the html5 version as the main and the flash for backup.

Jachym. Looking at a plugin i may be able to make one with this information as the boltek lightning detector and nexstorm software is a popular thing with professional weather people :)

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 5:54 pm
by wxthomson
stuee

do you have advertising on you site?

Re: Adding Lightning tracker

Posted: Tue Oct 03, 2017 10:12 pm
by stuee
wxthomson.

No i dont why do you ask?

Re: Adding Lightning tracker

Posted: Wed Oct 04, 2017 11:17 pm
by wxthomson
When I went to your home page listed above I thought I saw a sponsors block the had links for

"Benn.online Digital Marketing Solutions"

and "Party 4 Less"

Maybe I'm mistaken

Re: Adding Lightning tracker

Posted: Thu Oct 05, 2017 12:55 am
by stuee
sponsors are the same as donations in Australia.
Plus Benn.online is a designer whos working on the site with me and party4less is my business :)

I am not nor will not be selling advertising or making money off this, the donations and local business that sponsor either pay for the equipment or provide some service like hosting etc.

Re: Adding Lightning tracker

Posted: Thu Oct 05, 2017 6:57 pm
by wxthomson
It would seem the intent is to promote their/your business.
I would call that advertising.

I guess we all could but ads (sponsors) for businesses on our sites so they could "donate" to us in return.

Re: Adding Lightning tracker

Posted: Thu Oct 05, 2017 7:04 pm
by Jachym
Steve if you want to place ads on your page too, Ive had enough of this to be quite honest, I dont care any more

Re: Adding Lightning tracker

Posted: Thu Oct 05, 2017 10:21 pm
by stuee
Steve.
Its a polite way im dealing with businesses. There is no deal that they pay money to advertise.
I offer them if they would like to pay for a weather station or hosting or hardware i would put a little banner showing they are supporting me. im also adding a donators list too as everyone knows everyone here. it will be a small scrolling list with just names saying Donators and a name. No amount because that personal. Does that mean they are paying for advertising too?

The difference is the public may donate $5. but a business might put in $2k for a couple of weather stations? I feel if they are donating that much they deserve a mention!

Re: Adding Lightning tracker

Posted: Fri Oct 06, 2017 4:38 am
by dmgould
Stuee:

I see you went live with MT. I assume you are aware that 4 or 5 of your menu items point to my site instead of yours. I thought I should let you know just in case.