player thumbnail pictures in stats ranking module

Status: finished.
Here you can find pre-releases of JoomLeague, Errors and problems with these versions should only be discussed in this board.
NOTICE: BETA and RC versions should not be used on a live site! No support on upgrading to the final version!

Moderator: And_One

shiftee
.
Posts: 111
Joined: Sat Dec 11, 2010 12:42 am

player thumbnail pictures in stats ranking module

Postby shiftee » Mon Dec 20, 2010 7:34 am

The player thumbnail pictures are not showing up when I enabled the stats ranking module to show the top 5 players for each of the assigned stats categories. I double checked to make sure the "Show thumbnail of the player" is set to "Yes". The player profile pictures are working in every other page (random player mod, birthday mod, team rosters, etc).

I looked at the default_stats.php file and saw:

<?php if ( $this->config['show_picture_thumb'] == 1 ): ?>
<td class="td_c playerpic"><?php //add pic display... ?></td>
<?php endif; ?>

I'm am not a coder by any means but if someone could tell me where the above code is looking for the player thumbnail then maybe that will help answer why it's not working. Or at least point me in the right direct if I am looking in the wrong php file to begin with :)

Thanks

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: player thumbnail pictures in stats ranking module

Postby timoline » Mon Dec 20, 2010 8:04 am

default_stats.php does not exist for the statsranking module :confused:
So I assume you're looking in the wrong php file

For the statsranking view(so NOT the module), its already fixed in the newest version

please create a todo on the issue tracker if you want the player image in the statsranking module

shiftee
.
Posts: 111
Joined: Sat Dec 11, 2010 12:42 am

Re: player thumbnail pictures in stats ranking module

Postby shiftee » Mon Dec 20, 2010 10:10 am

sorry I wasn't too clear in my post.

I meant the statsranking view, not module.

The code I copy and pasted came from: com_joomleague/views/statsranking/tmpl/default_stats.php

I am using joomleague 1.5.0.a.


Any ideas why the thumbnails are not displaying? The country flag doesn't display either if I choose to enable it as well.

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: player thumbnail pictures in stats ranking module

Postby timoline » Mon Dec 20, 2010 10:11 am

ah ok,

that should be fixed in newest version
http://bugtracker.joomleague.at/redmin ... ts.php#L62

shiftee
.
Posts: 111
Joined: Sat Dec 11, 2010 12:42 am

Re: player thumbnail pictures in stats ranking module

Postby shiftee » Mon Dec 20, 2010 10:28 am

my apologies but I don't understand if you are saying that it will be fixed in the next version or if that file in the link fixes it?

thanks

User avatar
timoline
Joomleague Core Developer, Donator
Joomleague Core Developer, Donator
Posts: 3331
Joined: Thu Mar 12, 2009 8:03 am
Contact:

Re: player thumbnail pictures in stats ranking module

Postby timoline » Mon Dec 20, 2010 10:30 am

Its already fixed in the newest version, just download/install the newest version from the download section

shiftee
.
Posts: 111
Joined: Sat Dec 11, 2010 12:42 am

Re: player thumbnail pictures in stats ranking module

Postby shiftee » Mon Dec 20, 2010 4:54 pm

If I download and install, will it overwrite everything I've done up to this point and make me recreate the league and all players etc?

And_One
Joomleague Project Manager, Donator
Joomleague Project Manager, Donator
Posts: 3609
Joined: Fri Sep 11, 2009 4:00 pm
Joomleague version: 2.0.x
Location: Graz
Contact:

Re: player thumbnail pictures in stats ranking module

Postby And_One » Mon Dec 20, 2010 4:57 pm

create a database backup first ;)

joomleague install will just update the files. after the update run our 2 newest update files under administration.

shiftee
.
Posts: 111
Joined: Sat Dec 11, 2010 12:42 am

Re: player thumbnail pictures in stats ranking module

Postby shiftee » Mon Dec 20, 2010 5:49 pm

I've backed up mysql database and also exported the joomleague project. is there anything else I need to back up?

And_One
Joomleague Project Manager, Donator
Joomleague Project Manager, Donator
Posts: 3609
Joined: Fri Sep 11, 2009 4:00 pm
Joomleague version: 2.0.x
Location: Graz
Contact:

Re: player thumbnail pictures in stats ranking module

Postby And_One » Mon Dec 20, 2010 5:53 pm

player, team and clubimages are stored in the filesystem /media/com_joomleague

shiftee
.
Posts: 111
Joined: Sat Dec 11, 2010 12:42 am

Re: player thumbnail pictures in stats ranking module

Postby shiftee » Mon Dec 20, 2010 6:38 pm

I just updated and everything works fine including the player thumbnail for the statsranking view :)

Thank you very much for your help!


Return to “1.5.0-a (Alpha)”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron