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 and linking of items to SMF forum(?)

Author
Coredun
Ubuntu Inc.
The Fourth District
#1 - 2013-01-15 15:48:53 UTC
Hi all!

I've tried to do some searching here on the forum, and scrolled down threw about 20 sites back in the past to see if i could find something, and i found something that touched the subject, but there wasnt any "near" solution. :p

Ive got a Corp forum up and running with SMF and TEMARS EvE API check to give members the right access level. I got this done after massive help from this forum and im quite pleased with the result!
So as always when something is working like a charm, u start looking for what more to add :

What im looking for:

The corp is going into Manufacturing and Research and i want a way of "dragging" in game links like "Hobgoblin I" to the type field of a "new post" and if u open it ingame u can click it and get the item up ingame.

Since this feature is quite neat, i would guess someone has tried this before me.

Would love to get some tip's on how i can get it done.


Thanx!



Louis Vitton
Viziam
Amarr Empire
#2 - 2013-01-15 21:01:31 UTC
here is a list of IGB function with javascript - you will need the item ID to make this functional so you will need at a min the typeID table from the SDD
Kosmoto Gothwen
Frenemy Logicians
#3 - 2013-01-30 23:35:10 UTC  |  Edited by: Kosmoto Gothwen
I believe if the IGB supported HTML5 Drag and Drop functionality this could be done more easily but unfortunately it doesn't at this time. So instead you could do as already suggested, have the static data dump to pull data from. Idea of how it potentially would work: Your input field for the Type could use AJAX to query the db to provide suggestions, basically it would work as a simple search engine. Then once the topic is posted you could again use AJAX with JavaScript to add the attribute 'href' with the value "javascript:CCPEVE.showinfo('typeID')" to every Type that returns a valid eve item.

Hopefully that makes sense, depending how good you are with php/ajax/js this shouldn't be to difficult. I have an example of a simple search engine http://forum.frenemylogicians.com/FLConstructore.php but I caution against looking at it with chrome or safari as they both contain known memory leaks which is a problem when dealing with a dataset as large as I'm using. Hopefully that will give you some ideas.