WordPress.org

Forums

Starbox - the Author Box for Humans
Profile Image Not Display in Subdomain/Subdirectory Site (2 posts)

  1. buanacyber
    Member
    Posted 1 year ago #

    Hi there..

    Profile image that i uploaded from my computer won't display if WordPress Address (URL) was different from Site Address (URL).

    My site homepage is different from the directory i installed WordPress.
    Wordpress Address (URL): http://www.crafternesia.com/online
    Site Address (URL): http://www.crafternesia.com

    So i tried to add "online" in paths.php file before /wp-content/
    line 11
    define('_ABH_GRAVATAR_DIR_', (is_dir(ABSPATH . 'online/wp-content/uploads') ? ABSPATH . 'online/wp-content/uploads/gravatar/' : _ABH_ROOT_DIR_ . '/gravatar/'));

    and
    line 26
    define('_ABH_GRAVATAR_URL_', (is_dir(ABSPATH . 'online/wp-content/uploads/gravatar') ? get_bloginfo('url') . 'online/wp-content/uploads/gravatar/' : _ABH_URL_ . '/gravatar/'));

    And it works..

    https://wordpress.org/plugins/starbox/

  2. arlensot
    Member
    Posted 1 year ago #

    OMG I will love you forever!! I was going to uninstall this plugin. Thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.