Support » Fixing WordPress » [Plugin: Business Directory]

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Bump!

    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

    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!

    Did it work?

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Business Directory]’ is closed to new replies.