SimplePortal

Customization => Custom Coding => Topic started by: worm82075 on March 23, 2011, 01:05:10 PM

Title: Getting SP to use png message icons.
Post by: worm82075 on March 23, 2011, 01:05:10 PM
I'm running SMF 1.1.11 and Simple Portal 2.3.1.
Also using custom php code for recent posts and topics, by underdog found here : http://simpleportal.net/index.php?topic=4735.msg29604#msg29604

I've altered php files in the sources folder to make SMF use png instead of gif for message icons.

I've replaced...
Code: [Select]
'.gif'...in any string mentioning..
Code: [Select]
/post/...with...
Code: [Select]
'.png'...in the following files located in the sources folder:

Display.php
ManageSmileys.php
MessageIndex.php
Post.php
Search.php
PortalArticles.php
PortalBlocks.php

It's working fine everywhere on the site except the portal. The articles and my custom php blocks are the ones still using the gifs. I'm thinking there is another SMF php that SP is calling on and being told to use gifs.

Any ideas?

Edit: Ok, so far i have managed to fix the articles. there was an open ended .gif string in the PortalArticles.php and the PortalBlocks.php.
Code: [Select]
'.gif" align="middle" alt="'after changing those to...
Code: [Select]
'.png" align="middle" alt="'...the articles are displaying the png message icons.

Still working on underdog's custom code.

Edit2: yep more hidden open ended statement that originally evaded my "Find" function. there are only one for his recent posts block but there are three in the recent topics block. found them all now I'm golden. problem solved.
SimplePortal 2.3.8 © 2008-2024, SimplePortal