Pilot Reported Icons

The common meeting place for SEOW veterans and noobs alike, sharing feedback, ideas and experiences.

Moderator: SEOW Developers

Post Reply
VT-51_Thud
Posts: 142
Joined: Sun 21 Jan 2007 10:20 am
Location: Virginia, USA
Contact:

Pilot Reported Icons

Post 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.
II/JG77Hawk_5
Posts: 162
Joined: Wed 10 Jan 2007 1:13 am
Location: Sydney, Australia

Post 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!
VT-51_Thud
Posts: 142
Joined: Sun 21 Jan 2007 10:20 am
Location: Virginia, USA
Contact:

Post by VT-51_Thud »

Excuse me while I go pound my head against the wall. That was simple enough. :shock:

Thank you Hawk-5.
Riksen
Posts: 125
Joined: Thu 17 Jan 2013 2:35 am
Location: Florida, USA
Contact:

Images in Pilot's Reports

Post by Riksen »

Is it possible to attach images to pilot reports? I tied using something like
Image code but no results.....
the following is the picture i would like to attach

Image

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.
IV/JG7_4Shades
Posts: 2201
Joined: Mon 08 Jan 2007 11:10 pm
Location: Perth, Western Australia

Post 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
IV/JG7_4Shades
SEOW Developer

Image
Riksen
Posts: 125
Joined: Thu 17 Jan 2013 2:35 am
Location: Florida, USA
Contact:

Post 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
IV/JG7_4Shades
Posts: 2201
Joined: Mon 08 Jan 2007 11:10 pm
Location: Perth, Western Australia

Post 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
IV/JG7_4Shades
SEOW Developer

Image
Riksen
Posts: 125
Joined: Thu 17 Jan 2013 2:35 am
Location: Florida, USA
Contact:

Post 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?
Riksen
Posts: 125
Joined: Thu 17 Jan 2013 2:35 am
Location: Florida, USA
Contact:

Post 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]
Riksen
Posts: 125
Joined: Thu 17 Jan 2013 2:35 am
Location: Florida, USA
Contact:

Post 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 ....
Riksen
Posts: 125
Joined: Thu 17 Jan 2013 2:35 am
Location: Florida, USA
Contact:

This pilot report thing is just awesome!

Post by Riksen »

Just want to emphasize it again!! Nice NICE NICE!!!
5./JG54_Eman
Posts: 4
Joined: Sat 07 Apr 2012 10:59 am

Post 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.
Riksen
Posts: 125
Joined: Thu 17 Jan 2013 2:35 am
Location: Florida, USA
Contact:

Post by Riksen »

Thxs eman.. i got the feature to work very nicely.
Post Reply