WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Business Directory] Phone Numbers Not Displaying (27 posts)

  1. Tanalei
    Member
    Posted 5 years ago #

    http://www.siouxfallsbusinessnews.com/

    Under the Local Sioux Falls Businesses I have the Biz Directory and it will not display any of the phone numbers.

    http://wordpress.org/extend/plugins/business-directory/

  2. nafink
    Member
    Posted 5 years ago #

    I seem to be having a similar issue with version 0.8.5 Beta. Only the Orgs and the websites links are showing up. The email addresses and the phone numbers no longer show up on the BizDir page.

    Is anyone else having the same issue? I sent an update to the developers; we'll see what shakes out.

    http://olathemta.org/directory/

  3. gda1971
    Member
    Posted 5 years ago #

    I have the same problem. I am using WP 2.9.2 and the latest version of Biz Dir (0.8.5). My directory only shows the company name and the discription - no contact number or email address.

    http://redbournbusinesscommunity.co.uk/directory-listing/

    Anyone got any ideas?

    Nafink - your directory appears to be working or have you just listed them manually?

    G

  4. Jamie Marsland
    Member
    Posted 4 years ago #

    I have the same problem, hopefully there will be a fix soon.

  5. lukehuk
    Member
    Posted 4 years ago #

    I am not getting the address showing which is quite key for this plugin to be of value to me. I have users who are looking for directory entries based on location so if the location is not shown its pretty much of no value.

    Hope the developers fix these small issues. They have done some good work so far, would like to see it get release fit.

  6. Matthewonsea
    Member
    Posted 4 years ago #

    I have the same problem and have mailed a couple of times. No answer, so lets hope they are OK and busy working on it.

  7. lyricalbiz
    Member
    Posted 4 years ago #

    I am also having the same issues with the 0.8.5 beta - phone numbers and addresses are not showing up.

  8. Hellesdon Handbook
    Member
    Posted 4 years ago #

    I am also having this issue and have contacted Square Compass, am awaiting a reply which I hope will come soon as this is urgent for me.

  9. lyricalbiz
    Member
    Posted 4 years ago #

    fantastic - everyone, please keep the thread informed if you hear of any response.

  10. everdawn
    Member
    Posted 4 years ago #

    I am also having a problem with the contact info not showing up on the listings -- it is currently working as a 'link exchange' only. Thanks for the plug-in. It has worked on other sites I've used it on, just not this one with the most updated version of WordPress. Looking forward to an update. :-)

    http://www.everdawn.us

    --Heidi

  11. everdawn
    Member
    Posted 4 years ago #

    Someone posted a hotfix at http://gist.github.com/281865 :-D I am VERY happy!

  12. Lynn
    Member
    Posted 4 years ago #

    Thank you everdawn!
    What a pain it was trying to figure that out. The hotfix for the functions.php file at http://gist.github.com/281865
    worked perfectly. For others using this extract for the functions.php file, note that the cut and paste instructions mean for you to KEEP the lines above
    // CUT FROM HERE (around line #250)
    and below
    // TO HERE (about line #258)

    and put the replacement code in between those lines that you are keeping.

  13. Cyndi Papia
    Member
    Posted 4 years ago #

    The hotfix isn't working on my site, running latest version of WP and a StudioPress theme. Plug-in has great potential but right now it's just a link maker.

  14. Cyndi Papia
    Member
    Posted 4 years ago #

    Could you copy the whole function code with the hot fix here? Thank you.

  15. Cyndi Papia
    Member
    Posted 4 years ago #

    I get this error with the fix if this helps anyone.

    Parse error: syntax error, unexpected $end in /home/HIDDEN/public_html/DOMAINAMEGOESHERE.net/wp-content/plugins/business-directory/functions.php on line 809

  16. Cyndi Papia
    Member
    Posted 4 years ago #

    Hoping for some help here so I can help charities. Phone numbers, etc., aren't showing up.

  17. Lynn
    Member
    Posted 4 years ago #

    It's easy to get a character wrong (like your $ error) when cutting and pasting. So I am including a section that might be easier to copy and paste. It was in this section that I made the hotfix changes described above. I include everything between the commented title for the Listing section, down to the next commented title. You can search for
    * Listing/Searching Functions

    and
    * Managing Functions

    in your file to perhaps more easily find a section to cut out and replace with the code I have below.

    NOTE THAT I AM USING THESE MODIFICATIONS TO Version 0.8.6.1 Beta of Business Directory and the section below needs to go into wp-content/plugins/business-directory/functions.php

    [ pasting code here doesn't work; see my next post ]

  18. Lynn
    Member
    Posted 4 years ago #

    I did not want to fix the code I tried to enter so I created a text file.

    Look at/use this instead: http://www.dawg-demo.com/dawg-design/functionsFix.txt

    It's a plain text file.

  19. starvinartist
    Member
    Posted 4 years ago #

    Thanks artsmo! Your fix helped me a great deal!

  20. Lynn
    Member
    Posted 4 years ago #

    starvinartist,

    I am happy to hear that.

    Lynn (arstmo)

  21. Cyndi Papia
    Member
    Posted 4 years ago #

    It didn't work for me. :( Made my whole site disappear but I thank you for posting what you did!

  22. Cyndi Papia
    Member
    Posted 4 years ago #

  23. Lynn
    Member
    Posted 4 years ago #

    Cynderella,

    I said in a previous post:
    I AM USING THESE MODIFICATIONS TO Version 0.8.6.1 Beta of Business Directory (http://wordpress.org/extend/plugins/business-directory/). NOt sure if you are using the same version or are using 0.8.5?

    I also see a line with double slashes in your source code:
    <script type='text/javascript' src='http://businessdirectorylistings.net/wp-content/plugins/business-directory//main.js?ver=3.0.1'></script>
    I can still read the file in Firefox and Safari, but I really don't know if all browsers/servers are as forgiving?? Might not be relevant, but just something I noticed.

    I also tried to read your Business Directory plugin config file, but got this error message:
    Fatal error: Call to undefined function get_option() in /home/bestva/public_html/businessdirectorylistings.net/wp-content/plugins/business-directory/config.php on line 5

    Wish I could be helful here. All I did was take the hotfix (http://gist.github.com/281865) referred to above by everdawn and make that snippet easier to use w/o having to hunt through code and risk pasting errors. I do see on another thread that someone suggests just fixing a variable in the 0.8.5 functions.php file to handle an array:
    ----
    from a comment about 0.8.5 beta on http://businessdirectory.squarecompass.com/2010/new-version-released-v08-5beta/:
    The issue people are having with phone numbers and other contacts not showing is a BUG in the way the fields are referenced.

    The 0.8.5beta is using $l->company_url format which is not correct as the $l is an array, not an object.

    $l["company_url"] is the correct format. Lines 251 – 256 of Functions.php is where this code needs to be changed.
    -----

    It has been a while since I worked with this plugin and I don't have time now to mess with comparisons between 0.8.5 and 0.8.6.1, but maybe IF YOU ARE USING 0.8.5 the change from $l->company_url $l["company_url"] will help you ? ? I'd just be sure to backup the functions.php file before messing with it.

  24. Cyndi Papia
    Member
    Posted 4 years ago #

    I have the same version you do but I'll check out what you found. You're a doll, thank you!

  25. kamaljain
    Member
    Posted 4 years ago #

    Thanks a million Lynn.It worked like a charm.

    I also added (for displaying address)

    if(!empty($l["company_phone"]))
    $directory .= "<li><strong>Address:</strong> ".@$l["company_street1"].@$l["company_street2"] .@$l["company_city"]."</li>";

    This is looking great. Will post the ink after i tweak with the css. The font sizes displayed are vague for e.g the name of company is small while the address and the website, email details are in bigger font.

    Thanks again.

  26. kamaljain
    Member
    Posted 4 years ago #

    Thanks to Everdawn for the original hotfix.

  27. akelly7
    Member
    Posted 4 years ago #

    Thanks you this works great except how would I get a space between the address and the city?

    also any idea how to get an image in the directory?
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic