Page 1 of 1
Pilot Reported Icons
Posted: Mon 19 Mar 2007 8:01 am
by VT-51_Thud
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.
Posted: Mon 19 Mar 2007 9:43 am
by II/JG77Hawk_5
Just go into MP Logistics, Pilot reports and you should be able to place a tick in the box of the ones you want to delete then click on the "delete selected" button!
Posted: Mon 19 Mar 2007 10:10 am
by VT-51_Thud
Excuse me while I go pound my head against the wall. That was simple enough.
Thank you Hawk-5.
Images in Pilot's Reports
Posted: Tue 29 Jan 2013 4:26 pm
by Riksen
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.
Posted: Tue 29 Jan 2013 6:58 pm
by IV/JG7_4Shades
Pilot reports support a limited BBcode function. Make sure you put a complete URL for the image. The image URL must be browseable separately.
Cheers,
4S
Posted: Wed 30 Jan 2013 8:55 am
by Riksen
Oh so I doesnt pop up in the MP pilot report ...
Well ok, but i can still put it there and the comander may copy and paste the address in his browser if he wishes to see it...
Thxs Shades
Posted: Wed 30 Jan 2013 9:43 am
by IV/JG7_4Shades
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
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;
}
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
Code: Select all
[img]http://your.webserver.com/yourimage.jpg[/img]
Cheers,
4S
Posted: Wed 30 Jan 2013 10:47 am
by Riksen
Hi Shades
Thxs for the reply.
So basically I need to store the image in my phpmyadmin (mysql) server right or can i store it in a third-party image hosting service, like photobucket for example?
Posted: Wed 30 Jan 2013 10:56 am
by Riksen
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]
Posted: Wed 30 Jan 2013 11:44 am
by Riksen
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 ....
This pilot report thing is just awesome!
Posted: Sat 23 Nov 2013 5:23 am
by Riksen
Just want to emphasize it again!! Nice NICE NICE!!!
Posted: Sat 07 Dec 2013 9:43 am
by 5./JG54_Eman
Just one note Risken. You can not add images to the database. It only stores data! However you can save the link of the image position on the database and access it through php.
Posted: Sat 07 Dec 2013 2:54 pm
by Riksen
Thxs eman.. i got the feature to work very nicely.