Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Wordpress MultiSite Sermon Browser Fix
30 August, 2011
4:02 am
seanriceaz
Phoenix, AZ
New Member
Forum Posts: 1
Member Since:
30 August, 2011
Offline

Hi there! I don't know why this was an issue, but I wasn't seeing some of the images and whatnot especially in the admin area.
I found the code in sermon.php starting at line 681 to be faulty. Though it could just be my installation.

Here is my fix. Please let me know if you encountered the same problems and if this fixes it for you.

Replace the above-mentioned section with this code:

/**
* Defines a number of constants used throughout the plugin
*/
function sb_define_constants() {
$directories = explode(DIRECTORY_SEPARATOR,dirname(__FILE__));
if ($plugin_dir = $directories[count($directories)-1] == 'mu-plugins' || (function_exists('is_multisite') && is_multisite())) {
define('IS_MU', TRUE);
} else {
define('IS_MU', FALSE);
}
if ($directories[count($directories)-1] == 'mu-plugins' )
define ('SB_PLUGIN_URL', content_url().'/mu-plugins');
else
define ('SB_PLUGIN_URL', rtrim(content_url().'/plugins/'.plugin_basename(dirname(__FILE__)), '/'));
define ('SB_PLUGIN_DIR', sb_sanitise_path(defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR : ABSPATH.'wp-content').'/plugins');
define ('SB_WP_CONTENT_DIR', sb_sanitise_path(WP_CONTENT_DIR));
define ('SB_INCLUDES_DIR', SB_PLUGIN_DIR.'/sermon-browser/sb-includes');
define ('SB_ABSPATH', sb_sanitise_path(ABSPATH));
define ('GETID3_INCLUDEPATH', SB_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/sb-includes/getid3/');
define ('GETID3_HELPERAPPSDIR', GETID3_INCLUDEPATH);
}

Cheers!

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

malpan: 2453

jogen: 2440

VanWatterson: 652

GeraldSebring: 364

LucasWoltman: 362

RandellFeenstra: 362

Member Stats:

Guest Posters: 7

Members: 2066

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4045

Newest Members: Nixon Designs, zolaperry, tanec69, lbakyl, richdorm, Aaron Velasquez

Moderators: Ben Miller (387)

Administrators: Mark Barnes (425)

Comments are closed.