functions in addons

Download, Present, and receive support for third party WoWRoster AddOns and modifications
WoWRoster AddOns and Mods are supported by the author only
Please understand that some AddOns and Mods may require advanced skills to employ

functions in addons

Postby Tennessee » Sat May 17, 2008 1:45 am

k i got my addon like 90% done but my function's are in the lib/wowdb.php(roster 1.7.3) every thing eles works great.
so when callin the update.php it looks into the class wowdb for the fuctions.
where do i put my addon functions in my addon folder so when wowdb is called mine can be aswell? just need a little push.
User avatar
Tennessee
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 54
Joined: Fri Apr 04, 2008 2:00 am

Re: functions in addons

Postby tuigii » Sat May 17, 2008 4:47 am

Several 'official' addons use the update hook.

Just check the Vault, memberlist, guildhistory addons how they implemented the hooks (on char and guild base).

EventCalendar can also be used as en exemple.

For your own general functions, use a file like functions.php in the /inc directory.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

functions in addons

Postby Ulminia » Sat May 17, 2008 5:30 am

http://www.wowroster.net/MediaWiki/Rost ... n:AddonSDK also has all the info for addons in it with demo files and stuff
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

functions in addons

Postby zanix » Sat May 17, 2008 10:41 am

The AddonSDK is made for 2.0, not 1.7.3
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

functions in addons

Postby Ulminia » Sat May 17, 2008 1:05 pm

ok then missed that part lol
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: functions in addons

Postby Tennessee » Mon May 19, 2008 10:46 am

tuigii
I took your advice and dl'ed the guild bank addon and seen that it was a matter of seting vars but i was going at it wrong when pushin vaule's to the database.

plus i was able to get 2 good snips from it the "addon login" and a way to set up my config and a self install hint :p...
well my addon is done and its all in my addon folder thank god there isnt any cut and past job to install.

im goin over some bugs i found while sorting thu some pages hope to have it up tomorrow or today. btw there are headers needed on top of each page, just make them with PhpDocumentor or ya have any thing eles to do this 4 ya?
User avatar
Tennessee
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 54
Joined: Fri Apr 04, 2008 2:00 am


Return to AddOns and Mods

Who is online

Users browsing this forum: No registered users and 0 guests

cron