Pilot Reported Icons
Moderator: SEOW Developers
-
- Posts: 142
- Joined: Sun 21 Jan 2007 10:20 am
- Location: Virginia, USA
- Contact:
Pilot Reported Icons
Is there a way to remove old Pilot Reported Icons from the SEOW Mission Builder Map?
Our fight with JG11 is into it's 6th week now and the map is starting to get cluttered with too many of them.
Our fight with JG11 is into it's 6th week now and the map is starting to get cluttered with too many of them.
-
- Posts: 162
- Joined: Wed 10 Jan 2007 1:13 am
- Location: Sydney, Australia
-
- Posts: 142
- Joined: Sun 21 Jan 2007 10:20 am
- Location: Virginia, USA
- Contact:
Images in Pilot's Reports
Is it possible to attach images to pilot reports? I tied using something like
code but no results.....
the following is the picture i would like to attach
Of course i would resize it and all to also make it clickable so when one clikced on the small image in the pilot report the actua size picture would open up in a different tab on the pilots browser.
code but no results.....
the following is the picture i would like to attach
Of course i would resize it and all to also make it clickable so when one clikced on the small image in the pilot report the actua size picture would open up in a different tab on the pilots browser.
-
- Posts: 2213
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
-
- Posts: 2213
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Well thankfully that is easy to fix.
Scripts/MP-Head.js
Make a backup copy of the file for safekeeping. Edit the file with a text editor. Find the function definition "BBtoHTML" and replace it with this updated version
This should display the image in the tooltip. Any URLs supplied will be active in the Pilot Reports display under Logistics.
The correct syntax to use in the Pilot Report is
Cheers,
4S
Scripts/MP-Head.js
Make a backup copy of the file for safekeeping. Edit the file with a text editor. Find the function definition "BBtoHTML" and replace it with this updated version
Code: Select all
function BBtoHTML(str, mode) {
var tmp = str;
if (mode == 'normal') {
tmp = tmp.replace(/\[img\]/g,'<a href=# onclick=window.open(\"').replace(/\[\/img\]/g,'\")>to posted image (new window)</a>');
tmp = tmp.replace(/\[url\]/g,'<a href=# onclick=window.open(\"').replace(/\[\/url\]/g,'\")>to posted link (new window)</a>');
}
else {
tmp = tmp.replace(/\[img\]/g,'<img src="').replace(/\[\/img\]/g,'">');
tmp = tmp.replace(/\[url\]/g,'<a href="').replace(/\[\/url\]/g,'">link</a>');
}
tmp = tmp.replace(/\[b\]/g,'<b>').replace(/\[\/b\]/g,'</b>');
tmp = tmp.replace(/\[i\]/g,'<i>').replace(/\[\/i\]/g,'</i>');
tmp = tmp.replace(/\[u\]/g,'<u>').replace(/\[\/u\]/g,'</u>');
tmp = tmp.replace(/\r\n/g,'<br>').replace(/\n/g,'<br>').replace(/\r/g,'<br>');
return tmp;
}
The correct syntax to use in the Pilot Report is
Code: Select all
[img]http://your.webserver.com/yourimage.jpg[/img]
4S
IV/JG7_4Shades
SEOW Developer
SEOW Developer
This is the code im introducing into the pilot report after editing the file MP-Head.js as u instructed above:
Im taking out the first bracket out so u can see it
url=http://i1161.photobucket.com/albums/q51 ... 0afc52.png][img=100x50]http://i1161.photobucket.com/albums/q51 ... 0afc52.png[/img][/url]
Im taking out the first bracket out so u can see it
url=http://i1161.photobucket.com/albums/q51 ... 0afc52.png][img=100x50]http://i1161.photobucket.com/albums/q51 ... 0afc52.png[/img][/url]
I got it Shades!!!!!! With Hawk's help I got it to work... THANK U THANK U and THANK U!
The only thing now that i think it's actually a bug is that after u introduce the code, the link introduced to the pilot report only works in the pilot report itself (under logistics panel) and not in the map icon associated to the report, despite the fact that it does appear there as well ....
The only thing now that i think it's actually a bug is that after u introduce the code, the link introduced to the pilot report only works in the pilot report itself (under logistics panel) and not in the map icon associated to the report, despite the fact that it does appear there as well ....
This pilot report thing is just awesome!
Just want to emphasize it again!! Nice NICE NICE!!!
-
- Posts: 4
- Joined: Sat 07 Apr 2012 10:59 am