These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

igb help

Author
Jin So
Goonswarm Federation
#1 - 2012-04-30 14:31:44 UTC
what i am wanting to happen is that when a player loads up the site ingame, it will request for the if to be trusted if it is no already, that i dont have to put a link on the page for the player to do so, want them to automatically get the pop up when site is loaded.

Quote:

if ($_SERVER["HTTP_EVE_TRUSTED"]=="no")
{
header("eve.trustme:http://www.mywebsite.net/::please allow me to access your pilot information.");
}
else


thx in advance for the help
Mikokoel
Mining Industry Exile Foundation
Synergy of Steel
#2 - 2012-04-30 17:41:17 UTC  |  Edited by: Mikokoel
Hi Jin So,

I think the function you are looking for is

CCPEVE.requestTrust(url);

That is a javascript function that brings up the "Trust this website" dialog. I'm not sure, but I think i won't show up if the website is already trusted.

You can either check if the site is trusted already or just put the function into the onload-event of your body-tag.

body onload="CCPEVE.requestTrust('http://wiki.eveonline.com')" (of course with < and >, but I can't post it that way)

Note that the website doesn't reload itself after trusting, the user has to do this on his own.

For more information see http://wiki.eveonline.com/en/wiki/IGB_Javascript_Methods and http://wiki.eveonline.com/en/wiki/IGB_Headers

I Hope I could help

Mikokoel

Mikokoel | Head FC League of Unaligned Master Pilots

Jin So
Goonswarm Federation
#3 - 2012-04-30 20:13:13 UTC
Mikokoel wrote:
Hi Jin So,

I think the function you are looking for is

CCPEVE.requestTrust(url);

That is a javascript function that brings up the "Trust this website" dialog. I'm not sure, but I think i won't show up if the website is already trusted.

You can either check if the site is trusted already or just put the function into the onload-event of your body-tag.

body onload="CCPEVE.requestTrust('http://wiki.eveonline.com')" (of course with < and >, but I can't post it that way)

Note that the website doesn't reload itself after trusting, the user has to do this on his own.

For more information see http://wiki.eveonline.com/en/wiki/IGB_Javascript_Methods and http://wiki.eveonline.com/en/wiki/IGB_Headers

I Hope I could help

Mikokoel


wow, not sure why i did not try that, i guess trying to code ans drink is not he best thing, but thx, works like a charm
Dragonaire
Here there be Dragons
#4 - 2012-05-01 04:27:20 UTC
Quote:
i guess trying to code ans drink is not he best thing
That's when I do my best work or at least that what I think Blink

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Jin So
Goonswarm Federation
#5 - 2012-05-01 09:07:28 UTC
heres another question i am about to make where teh user is able to get contract info for both personal and corp,



These work like a charm
a href="javascript:CCPEVE.showContracts('?php echo $_SERVER["HTTP_EVE_CHARID"];?')"Personal/abr /
a href="javascript:CCPEVE.showContracts('?php echo $_SERVER["HTTP_EVE_CORPID"];?')"Corp/abr /

but when it comes to looking at alliance contracts that are available, i cannot get it to work at all, here is how i'm trying it:
a href="javascript:CCPEVE.showContracts('?php echo $_SERVER["HTTP_EVE_ALLIANCEID"];?")"Alliance/a

comes back with "No Owner can be found with "blahblah" in the beginning of its name." Now i have tried with the ALLIANCEID, ALLIANCENAME, and by putting the actual alliance id number int here, there is nothing in the igb thing on evelopedia about alliance contracts.

once again thx for the help in advanced

< and >where taken out
TorTorden
Tors shibari party
#6 - 2012-05-01 10:52:55 UTC
The trick above I believe is that alliances are just constructs around a group of corporations and can't realy own anything.

The contracts in question might be available to alliance but probably still owned by either a character or a corporation.
Trenker
#7 - 2012-05-01 14:13:18 UTC
Yep, contracts can only be issued by a character for itself or for a corporation. In case of alliance contracts, the characters corporationID will be the thing you want to know.

Pull some infos about the contracts via the /corp/Contracts.xml.aspx function, for all corporations in the alliance - you can use /eve/AllianceList.xml.aspx function to get their IDs. Inside the documents, check the issuerID (character) and issuerCorpID (corporation)
NickyYo
modro
The Initiative.
#8 - 2012-05-03 16:15:25 UTC  |  Edited by: NickyYo
Mikokoel wrote:


Note that the website doesn't reload itself after trusting, the user has to do this on his own.

Mikokoel


No they don't, the process can easily be automated..

..