Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Raids > Add EPGP Data To Your Site - Updated!
Mottie (SuperAdmin) 8/27/2010 11:02 AM EST : Add EPGP Data To Your Site - Updated!
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Add EPGP Data To Your Site - Updated!

GuildPortal admin site link to the original post

The original EPGP post used a method to web scrape data from the EPGPWeb website; As I said, it's not an ideal method, so I made this updated method which allows you to upload your epgp.lua file to your GuildPortal file area. The script does all the work of processing the epgp.lua file, but since the GP file storage domain is different from GuildPortal.com, you'll have to add it to your site using either the Embedded page widget or adding iframe code into a Free Form Text/HTML widget.

Thanks to Euvie of Fallout for providing me a lua file to use.

Setup

Overall Information

To start, you'll have to download the compressed files for the correct epgp addon version (v5.5.19 or v5.5.22). Modify (see below), then upload them to your site. Once everything is in place, all you'll need to do is upload your latest "epgp.lua" file from your "World of Warcraft/WTF/Account/{account name}/SavedVariables" folder.

Instructions:
  • Download the files
    Download & extract the necessary files from the zip file.
    If you don't have a way to do this, then grab my demo files (right click and save)

    Addon version 5.5.19: epgp-standings.htm, epgp-loot.htm, epgp.min.js, epgp-dark.css & epgp-light.css.
    Addon version 5.5.22: epgp1-2-standing.htm, epgp1-2-loot.htm & epgp1-2.min.js (no change in the CSS files).

  • Change the settings
    Settings for epgp standings table and epgp loot table are slightly different. The demo has two separate files for each table, but you could have both on the same page, if desired.

    EPGP Standings
    Open the "epgp-standings.htm" file in a non-rich text editor (e.g. notepad). The script has all of the default settings, so you could leave out a setting that you don't change.

    1. EPGP file (epgpfile): Most likely you won't need to change this option as the filename doesn't change, but it is included in case you are using my copy of "epgp.min.js" and you have your "epgp.lua" in your files.
    2. Guild (guild): Change this option to match your Guild's name. Include capital letters, special characters and spaces exactly as seen in the game.
    3. History (startEpgpHistory & startLootHistory): These settings are the initial settings of the EPGP and Loot history sliders found in the upper right corner of the page. The sliders are set to only go back 30 days. Sadly because of the size of the lua file, changing the settings is a little slow at times. So, if you decide to remove the sliders, just delete the HTML between the comments <!-- Start slider HTML --> and <!-- End slider HTML -->, then set these start history variables to lock amount of time to show.
    4. EPGP & Decay (baseGP, minEP & decay): These options were removed in the latest epgp addon, so these need to be set when using epgp1-2 files.
    5. Extras (extras): The lua contains the Decay, BaseGP, MinEP, but not the Extras. I couldn't figure out any way to calculate this value, so I just added it as an option you can set - I've never seen it at a value other than "100%" though.
    6. Loot Icon (lootIcon): The standing table include a "Last Item" column, but it also has an icon that you can hover over to see a more through loot list with time set by the loot slider.
    7. Sort (sort): Change the starting sort by modifying this option. The first number is the column to sort (start with zero on the left and count towards the right), so the "Name" column is 0, EP is 1, GP is 2, PR is 3 and Last Item is 4. The second number is the sort direction, 0 = ascending (low to high, a-z) and 1 = descending (high to low, z-a).
    8. Wowhead (wowhead): change the subdomain of wowhead to change the tooltip language. Default is 'www' for English. Change it to "de" for German, "es" for Spanish, "fr" for French or "ru" for Russian.

    Loot Standings
    Open the "epgp-loot.htm" file in a non-rich text editor. The script has all of the default settings, so you could leave out a setting that you don't change.

    1. EPGP file (epgpfile): Most likely you won't need to change this option as the filename doesn't change, but it is included in case you are using my copy of "epgp.min.js" and you have your "epgp.lua" in your files.
    2. Guild (guild): Change this option to match your Guild's name. Include capital letters, special characters and spaces exactly as seen in the game.
    3. History (startLootHistory): This setting is the initial setting of the Loot history.
    4. Loot Only (lootOnly): Set this to true to make the script output a loot table (versus the standings table).
    5. Raid Time (raidTime): Set to the approximate amount of time you raid. The script uses this number to ensure that loot from the night before is included (so it doesn't cut off at midnight).
    6. Fix Class (fixClass): The epgp.lua may not always have the character's class, so you can manually add the names. I've included an example (since there is only one undefined character class in the demo lua file) in the epgp-loot.htm file that fixes a fake name "Guild Bank". Otherwise, it will default to "unknown".
    7. Wowhead (wowhead): change the subdomain of wowhead to change the tooltip language. Default is 'www' for English. Change it to "de" for German, "es" for Spanish, "fr" for French or "ru" for Russian.

  • Page Style: Choose from either of the two CSS files I've provided in the zip. The "epgp-dark.css" or "epgp-light.css". Or, load either of these files into a text editor and modify the colors to match your site. I tried to comment all of the CSS so hopefully it isn't too confusing. The only images in the CSS are for the table sort arrows. By default, both css files use the white arrows, but if you want to use the black arrows for a lighter header background, you can get them here: sort ascending & descending. Once you have your css file selected, change the link href (in orange) in the "epgp-standings.htm" or "epgp-loot.htm" file (near the top of the page):
    <!--Choose from epgp-dark.css, epgp-light.css or make your own -->
    <link rel="stylesheet" href="http://www.axiomfiles.com/Files/258012/epgp-dark.css" type="text/css" />
  • Uploading
    Upload your selected css file, epgp-standings.htm, epgp-loot.htm, epgp.min.js and epgp.lua files through your GuildPortal File Manager (Control Panel > General Settings & Tools > File Manager). Now get and save the URL to the epgp-standings.htm and/or epgp-loot.htm file, it'll look something like this: http://www.axiomfiles.com/Files/######/epgp-standings.htm. It might even be a good idea to open the page to make sure it is all working properly.
  • Setup your site
    To make this page display on your site, you're going to have to add it to an iframe. You can either use an "Embedded page" type widget or a "Free Form Text/HTML" type widget (Control Panel > Pages & Content > Current Pages: {Pick a page} > Add Widget tab). Add the widget to the center of the page.

    1. Embedded Page:
      When you click edit inside the widget a new window will open and ask for the page URL (which you should have saved) and the height of the frame. Choose something like 700 (pixels) for the standings table and 580 (pixels) for the loot table, or whatever height best fits your data without needing to scroll the frame.

    2. Free Form Text/HTML:
      If you decided to use a free form widget to add the following iframe code, make sure the editor is in HTML mode (example below for the standings table):

      <iframe width="700" height="800" src="http://www.axiomfiles.com/Files/######/epgp-standings.htm" scrolling="auto" frameborder="0" align="top" allowtransparency="true"></iframe>

      Adjust the width and height (in red) as needed.
      Change the file url in orange to point to your newly uploaded epgp-standings.htm file.
Updating
This is really the easiest part  shocked
  1. Open up your GP File Manager (Control Panel > General Settings & Tools > File Manager).
  2. Click the [Upload File(s)] button.
  3. Click [Select].
  4. Now find the latest copy of your "epgp.lua" in your WoW SavedVariables folder (World of Warcraft/WTF/Account/{account name}/SavedVariables), then click [Open]
  5. Click [Upload].
  6. Reload the page on your site with your epgp data.
Edit (12/14/2010): Updated epgp files to work with the latest epgp addon version 5.5.22.
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Mottie (SuperAdmin) 8/28/2010 9:30 AM EST : RE: Add EPGP Data To Your Site - Updated!
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Updated the epgp.zip and epgp.min.js files to fix a problem getting the BaseGP, MinEP and Decay values.

So if you've already have it set up on your site and the values are messed up, just download (right click and select Save As) on the epgp.min.js file and replace it in your GuildPortal file area.
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

thebadfather (Applicant) 9/16/2010 6:02 AM EST : RE: Add EPGP Data To Your Site - Updated!
thebadfather
Posts: 233

0
Like

0
Dislike

Hiya. I would like to use EPGP for my guild but I have no idea how to preset EP for things like farm bosses, progression bosses, showing up on time, staying for the duration, staying past the end time etc. Also, is there a feature in the epgp addon that lists all the loot drops in a chosen raid where you can either set your own DKP values, or they have preset values? I know i can award DKP manually but if it exists, i would like to have everything preset so that is awards DKP automatically. Also as i do not know how much loot is worth, i can't set the DKP earned per raid. Any help would be greatly appreciated.
TopBottom

Mottie (SuperAdmin) 9/16/2010 9:01 AM EST : RE: Add EPGP Data To Your Site - Updated!
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hi Thebadfather!

I'm sorry I can't answer most of your questions since I actually haven't used the addon. I'll have to refer you to the EPGPWeb site or the WoWWiki EPGP page. Or maybe post these questions on the GuildPortal Admin forums to see if another member will share their experience with you as well.
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Peter/Nihilism (Applicant) 9/21/2010 10:32 AM EST : RE: Add EPGP Data To Your Site - Updated!
Peter/Nihilism
Posts: 85

0
Like

0
Dislike

Thank you very much for this.  Made our website much more useful!
TopBottom

x_Djini_x (Applicant) 12/30/2010 11:35 AM EST : RE: Add EPGP Data To Your Site - Updated!

x_Djini_x
Posts: 22

0
Like

0
Dislike

I did everything in your post, using my epgp.lua file and the rest yours. I changed the guild name in the standings and loot files, as well as, the dark.css url,  embedded the page and it shows as a blank black window on my site, and if i use the standings file url it does not show anything but a black box. What have I done wrong?
our epgp page is http://www.deusexwow.guildportal.com/Guild.aspx?GuildID=385086&TabID=3245345

our epgp is uploaded on the web at
http://www.epgpweb.com/guild/us/Mug%27thol/Deus%20Ex/

Thanks.

 
TopBottom

Mottie (SuperAdmin) 12/30/2010 5:41 PM EST : RE: Add EPGP Data To Your Site - Updated!
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hi x_Djini_x!

It looks like a newer version of the EPGP addon is available, could you please send me a copy of your epgp.lua to wowmotty at gmail dot com. I can't get it from your site since the link you provided is to a non-public page.

Thanks!
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

x_Djini_x (Applicant) 12/31/2010 5:20 PM EST : RE: Add EPGP Data To Your Site - Updated!

x_Djini_x
Posts: 22

0
Like

0
Dislike

Alright
TopBottom

tishah (Member) 8/7/2012 9:22 AM EST : RE: Add EPGP Data To Your Site - Updated!

tishah
Posts: 2

0
Like

0
Dislike

Hi!!

I use your tutorial to post my guild's EPGP data.

I can see the black block but there's no information in it.

I use EPGP 5.7.1, and it seems that's it isn't support but your tutorial... Can you help me please?

NB: Sorry for my english, I'm french and I did'n't speak english since school... :s

TopBottom

Mottie (SuperAdmin) 8/7/2012 9:56 AM EST : RE: Add EPGP Data To Your Site - Updated!
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hi Tishah!

I haven't updated the EPGP code in a long time, I'll try to look at it if you could please send me your EPGP.lua file

Thanks!

And no problem, your English is better than my French
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%