Viewing 11 replies - 16 through 26 (of 26 total)
  • 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 ]

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

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

    It’s a plain text file.

    Thanks artsmo! Your fix helped me a great deal!

    starvinartist,

    I am happy to hear that.

    Lynn (arstmo)

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

    Cynderella,

    I said in a previous post:
    I AM USING THESE MODIFICATIONS TO Version 0.8.6.1 Beta of Business Directory (https://www.ads-software.com/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=’https://businessdirectorylistings.net/wp-content/plugins/business-directory//main.js?ver=3.0.1′></script&gt;
    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 (https://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 https://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.

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

    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.

    Thanks to Everdawn for the original hotfix.

    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

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘[Plugin: Business Directory] Phone Numbers Not Displaying’ is closed to new replies.