Looty

External page that displays guild bank data from the Roster database

Moderator: trell

Re: Looty

Postby robojerk » Wed Jan 24, 2007 5:57 pm

Artillery, download this and see if it works.. It's Looty 1.1 with the fix Trell posted.
Attachments
looty-1.1.1.zip
(9.68 KiB) Downloaded 451 times
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: Looty

Postby robojerk » Wed Jan 24, 2007 6:01 pm

Troian wrote:I am also having a problem with my bank items showing. Here is my looty: http://www.guild-is.com/looty/

The character name, number of items, and gold are shown but the items arent broken down.

Any suggestions?


I don't see anything wrong.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Looty

Postby Artillery » Wed Jan 24, 2007 6:52 pm

Nope... still not working.
Artillery
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Sun Jan 14, 2007 7:46 pm

Looty

Postby DaarianneDarkmoon » Wed Jan 24, 2007 7:15 pm

Same here... it does not show any itmes.
I get the same failure message:
Code: Select all
Warning: Invalid argument supplied for foreach() in /www/htdocs/xxxxx/den/looty/index.php on line 485


Could it be that it does not work with the recent update of wowroster?
Last edited by DaarianneDarkmoon on Wed Jan 24, 2007 7:21 pm, edited 1 time in total.
User avatar
DaarianneDarkmoon
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Wed Jul 12, 2006 12:34 am

Looty

Postby robojerk » Wed Jan 24, 2007 7:36 pm

Post your configs.. that install works for me perfectly, it has to be something up with your config.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Looty

Postby robojerk » Wed Jan 24, 2007 7:40 pm

lines 484 - 487
Code: Select all
<?
foreach ($items as $thischar => $loot) {
    if (
true || !$char) {
?>


I think you have something weird going on with the character you have listed as the bank...
Last edited by robojerk on Wed Jan 24, 2007 7:40 pm, edited 1 time in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Looty

Postby Artillery » Wed Jan 24, 2007 7:57 pm

What do you think it is?
Artillery
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Sun Jan 14, 2007 7:46 pm

Looty

Postby trell » Wed Jan 24, 2007 8:16 pm

That error usually indicates that the $items array is empty. I've seen that happen because the sorting of the items doesn't work correctly. I've been considering rewriting a chunk of that to be more robust (and possibly provide just a smidgen more error output in order to be easier to diagnose).

I'll keep you posted.
trell
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 19
Joined: Wed Dec 06, 2006 4:11 pm
Location: UK

Re: Looty

Postby robojerk » Wed Jan 24, 2007 8:29 pm

robojerk wrote:
Troian wrote:I am also having a problem with my bank items showing. Here is my looty: http://www.guild-is.com/looty/

The character name, number of items, and gold are shown but the items arent broken down.

Any suggestions?


I don't see anything wrong.


Not only do I not see anything wrong, It looks perfect to me.
http://www.guild-is.com/roster/char.php ... ction=bags
Last edited by robojerk on Wed Jan 24, 2007 8:37 pm, edited 2 times in total.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Re: Looty

Postby trell » Wed Jan 24, 2007 9:15 pm

I've attached a php file called 'debug.php'. It is basically a copy of the looty code, that instead of printing out a lovely guild bank displays instead the data structures used internally by looty.

If you are still having problems with the current 1.1.1 that robojerk posted (great idea btw, i should have done that) then download the attached file, unzip it into your looty directory, and then send me the url (either by dropping it in this forum, or by sending me a private message).

I'll then take a look at the output of the debug script and hopefully work out what is causing these problems.

I'm still suspicious of the colouring code and I think it might just be different versions of php than the one I am testing on playing havoc.
Attachments
looty-debug.zip
looty 1.1 and 1.1.1 compatible debug file.
(3.52 KiB) Downloaded 431 times
trell
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 19
Joined: Wed Dec 06, 2006 4:11 pm
Location: UK

Looty

Postby robojerk » Wed Jan 24, 2007 10:06 pm

That rocks
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Looty

Postby DaarianneDarkmoon » Thu Jan 25, 2007 8:42 am

Tried the debug thing and it seems to work just fine. I just noticed, that special characters end up messy. an Ä will not be shown correctly. maybe that is makeing some troubles?

even if not, changing the thing to a general unicode that allows special characters would be nice anyway.
User avatar
DaarianneDarkmoon
WR.net Apprentice
WR.net Apprentice
 
Posts: 48
Joined: Wed Jul 12, 2006 12:34 am

Re: Looty

Postby trell » Sat Jan 27, 2007 1:22 am

Hmm, interesting.

I don't have any specialcharacters in my guild's database as they all seem to use the english based client. Is there anychance you could send me a CP.lua file continaing special characters? that way I can forge your guild allegiance, upload it into my test database and then see what needs to be fixed in order to make that work.

Thanks in advance,

-trell
trell
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 19
Joined: Wed Dec 06, 2006 4:11 pm
Location: UK

Looty

Postby Frigolet » Mon Feb 05, 2007 3:31 am

Hi from France,

Effectively, we choose looty for it's visual appearance.

Our main webmaster advise me that a newer version is out.

For now we're using a modified version (added : last updated date for profile, some styles improvments and some formatting translations for items and filters).

Trying to using yours (1.1) since bc and have the same error detailed ahead.

The problem of special character seem to be 'one' of the problems
(i've used utf8_encode and decode function to correct the display) :

See there :
http://titansguilde.free.fr/bankloots/

Since bc (not modified code) we have the same problem on parsing item :
http://titansguilde.free.fr/bankloots/i ... Banktiwawa

Have tried your version and effectively had also the same problem first.
Since the 1.1.1 the display's problem with errors has gone but we have a partial display of bank contents, see your version here :
http://titansguilde.free.fr/banksbc/
Missing items for the first bank...

i'll try to go further... and post back

In the meanwhile i've attached our index.php using special chars conversion.
Attachments
index.zip
(Frigolet version before BC)
(5.75 KiB) Downloaded 389 times
Last edited by Frigolet on Mon Feb 05, 2007 3:35 am, edited 2 times in total.
Frigolet
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Tue Sep 26, 2006 3:33 pm

Looty

Postby Frigolet » Mon Feb 05, 2007 5:33 am

Made changes from 1.1.1 here and my french release from before and remade the full package

Summary of changes :
French modification by Frigolet from Le Choc Titans @Medivh [EU]
http://titansguilde.free.fr/bankloots/
Guilde Le Choc Titans:
http://www.titansguilde.powa.fr/
2007-02-05
see wowroster forum topic for details here:
http://www.wowroster.net/Forums/viewtop ... html#14879

CHANGES :
Added utf8 transcription for language with specials chars
Added last updated date of profile
Changed : SQL string connection for hosting compatibility problems
Changed : style blue css
Changed : using wowdbu-fr search instead of Us UK search
Translated tooltip formating for french words (used requires...)

TODO : Additional links from Burning Crusade not shown properly (or not shown at all :p)
Attachments
looty_fr_111.zip
French version from Frigolet (and some style and changes) : still problems with BC items (not sure from where)
(10.4 KiB) Downloaded 405 times
Frigolet
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Tue Sep 26, 2006 3:33 pm

PreviousNext

Return to Looty

Who is online

Users browsing this forum: No registered users and 0 guests

cron