Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Jin So
Sanctuary Pact
3
|
Posted - 2012.04.30 14:31:00 -
[1] - Quote
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
0
|
Posted - 2012.04.30 17:41:00 -
[2] - Quote
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 EvE API Development zap - advanced programming |
Jin So
Sanctuary Pact
3
|
Posted - 2012.04.30 20:13:00 -
[3] - Quote
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_HeadersI 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
Corax. The Big Dirty
41
|
Posted - 2012.05.01 04:27:00 -
[4] - Quote
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 Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. Check out the Yapeal PHP API library thread for more information. |
Jin So
Sanctuary Pact
3
|
Posted - 2012.05.01 09:07:00 -
[5] - Quote
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
NorCorp Enterprise No Holes Barred
27
|
Posted - 2012.05.01 10:52:00 -
[6] - Quote
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
17
|
Posted - 2012.05.01 14:13:00 -
[7] - Quote
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
StarHug Brotherhood of Starbridge
64
|
Posted - 2012.05.03 16:15:00 -
[8] - Quote
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.. |
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |