SimplePortal

Customization => Custom Coding => Topic started by: samborabora on June 29, 2014, 06:44:26 AM

Title: Custom image URL for sp_embed_image
Post by: samborabora on June 29, 2014, 06:44:26 AM
At the moment, a block that uses sp_embed_image($item['board']['id']) is calling for images in theme/THEMENAME/images/sp and I need it to be changed to theme/THEMENAME/images/ - is this possible?
Title: Re: Need sp_embed_image($item['board']['id']) to look in theme/***/images
Post by: samborabora on July 03, 2014, 04:51:13 AM
basically, can I change the path of sp_embed_image?
Title: Re: Need sp_embed_image($item['board']['id']) to look in theme/***/images
Post by: dhayzon on July 03, 2014, 11:55:51 AM
in Subs-Portal.php   in line  112

Code: [Select]
if (!isset($settings['sp_images_url']))
{
if (file_exists($settings['theme_dir'] . '/images/sp'))
$settings['sp_images_url'] =  $settings['theme_url'] . '/images/sp';
else
$settings['sp_images_url'] =  $settings['default_theme_url'] . '/images/sp';
}
Title: Re: Need sp_embed_image($item['board']['id']) to look in theme/***/images
Post by: samborabora on July 04, 2014, 07:37:19 AM
Thankyou, that works great!!
SimplePortal 2.3.8 © 2008-2024, SimplePortal