WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Business Directory] (6 posts)

  1. music360
    Member
    Posted 4 years ago #

    I am trying to find the best possible fit of a plug-in for a directory to add to my website. This directory will be music-based so Bands, Artists, & Musicians can sign up. Currently I'm using the Business Directory for WordPress. I've come into several issues including inability to customize. But the major issue is that when I try to enter a band's myspace in the organization website category it states that the "website is not a valid URL".

    Any recommendations beyond this plug-in, or ways to make this plug-in work effectively?

    Thank you!

  2. music360
    Member
    Posted 4 years ago #

    Bump!

  3. btaz
    Member
    Posted 4 years ago #

    Which version of the business directory are you using?
    If you're running version 0.8.3 the changes below will allow you other URL's. I don't know if this change will still work in 0.8.4, however I looked at the code and I think it should work just fine. Good luck and let me know if this change will handle all the URL's you're going to throw at it.

    The current implementation only allows very basic website URLs.
    Unfortunately not everyone has a top-level domain

    For example these URLs are not allowed in version (0.8.3 Beta):

    http://www.somesite.com/
    http://www.somesite.com/some-url-path/
    http://www.somesite.com/some_url_path/index.html

    A quick fix for this is to find this string in "functions.php"

    /^http{1}s?:{1}\/\/{1}[A-z0-9]+[A-z0-9\-\.]*\.{1}[A-z]{2,4}$/

    and replace it with

    /^http{1}s?:{1}\/\/{1}[A-z0-9]+[A-z0-9\-\.]*\.{1}[A-z]{2,4}(\/([a-zA-Z0-9\.\-_])+)*(\/){0,1}$/

    This will support the URLs above

  4. music360
    Member
    Posted 4 years ago #

    Thank you for this information! It looks like I am running 0.8.4 but I will try your tips!

    I'll let you know how it goes!

  5. btaz
    Member
    Posted 4 years ago #

    Did it work?

  6. jackfitz1
    Member
    Posted 4 years ago #

    I am trying version 0.8.5 but the page is not showing correctly, has anyone come accross this problem ? I am on wp 2.9.1.

Topic Closed

This topic has been closed to new replies.

About this Topic