Home | Webstore
Latest News: OOTP 25 Available - FHM 10 Available - OOTP Go! Available

Out of the Park Baseball 25 Buy Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 25 > OOTP Mods > OOTP Mods - Logos, Graphics, and HTML

Reply
 
Thread Tools
Old 12-21-2017, 03:01 PM   #1
andjbock
Hall Of Famer
 
andjbock's Avatar
 
Join Date: Jul 2003
Location: Somerville, MA, USA Bats: Right Throws: Left
Posts: 3,621
Replacing player photos with the default player photo in tpl (league website Q)

I know this isn't a super popular topic, but does anyone which .tpl has the images for the leaderboard reports?

You can see the broken image links on my league's Red Sox page.

http://poundslash.com/ootp/lgreports.../team_100.html

I was able to figure out the player profile picture, so it always goes to the default photo, but can't find where I can replace the leaderboad photos.

I've checked the following and no luck:

box_leaders.tpl
box_leaders_start.tpl
andjbock is offline   Reply With Quote
Old 05-13-2019, 04:02 PM   #2
andjbock
Hall Of Famer
 
andjbock's Avatar
 
Join Date: Jul 2003
Location: Somerville, MA, USA Bats: Right Throws: Left
Posts: 3,621
Hi self,

If you add the following code to head_bits.tpl (templates folder in your saved league, not the default templates folder) this should then be produced across all html pages.

Replace "http://ootp.biz/lgreports/images/default_player_photo.png" with the location and name of the image you want to globally replace broken image links with.

Use < script ></script> tags around all of the code below.


Code:
$(window).bind('load', function() {
$('img').each(function() {
    if((typeof this.naturalWidth != "undefined" &&
        this.naturalWidth == 0 ) 
        || this.readyState == 'uninitialized' ) {
        $(this).attr('src', 'http://ootp.biz/lgreports/images/default_player_photo.png');
    }
}); })

Last edited by andjbock; 05-24-2019 at 10:52 AM.
andjbock is offline   Reply With Quote
Reply

Bookmarks

Tags
html, reports, templates, tpl, website

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:19 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright © 2020 Out of the Park Developments