WordPress.org

Ready to get started?Download WordPress

Forums

Football Pool
[resolved] Problem with team photo (8 posts)

  1. crodexter
    Member
    Posted 1 year ago #

    I have a problem with team photos. I upload photos using WP uploader.

    This is path on team page in WP admin
    http://mydomain.com/wp-content/uploads/2013/06/some-text-imagetitle.jpg

    This is path on team page on WP front page (what users see)
    http://mydomain.com/wp-content/plugins/football-pool/assets/images/teams/http://mydomain.com/wp-content/uploads/2013/06/some-text-imagetitle.jpg

    I tried uploading with and without click on "Insert" on WP uploader.

    Thank you in advance

    http://wordpress.org/extend/plugins/football-pool/

  2. crodexter
    Member
    Posted 1 year ago #

    BTW, flag is OK

  3. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    I haven't been able to reproduce this behavior. What version of WordPress and plugin are you using?

  4. crodexter
    Member
    Posted 1 year ago #

    3.5.1
    I really tried everything

  5. crodexter
    Member
    Posted 1 year ago #

    Plugin version is 2.2.4

    I will try plugin on other WP instalation and server.
    Tnx for now.

  6. crodexter
    Member
    Posted 1 year ago #

    Same thing on other fresh WP site.

    It seems that your plugin on page with team always looks for photo in folder
    http://mydomain.com/wp-content/plugins/football-pool/assets/images/teams

    but instead looking for imagetitle.jpg adds full path to photo
    http://mydomain.com/wp-content/uploads/2013/06/some-text-imagetitle.jpg

    I tried to upload image via FTP to /plugins/football-pool/assets/images/teams/

    but plugin still looks for image in
    http://mydomain.com/wp-content/plugins/football-pool/assets/images/teams/http://mydomain.com/wp-content/uploads/2013/06/some-text-imagetitle.jpg

  7. crodexter
    Member
    Posted 1 year ago #

    OK. I figured out that I can upload photos manually to
    plugins/football-pool/assets/images/teams

    and then on theme page just to put image1.jpg

  8. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    That's correct, you can give a path relative to the assets folder. Actually, the plugin code simply checks if the image path starts with http(s) and, if so, will put in the full path as the image src. If not, it will use the plugins asset folder as the base URL.

    But still, it should also work with the image select button. I don't understand why this doesn't work. Perhaps a conflict with another plugin?

    My new version (2.3.0, which is under development) of the plugin uses the WP3.5 Media Uploader. Maybe that will solve your problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.