Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Wordpress Business Directory

  1. #1
    5starpix's Avatar
    5starpix is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    Montreal, Quebec
    Posts
    1,710
    Blog Entries
    9
    Thanks
    158
    Thanked 227 Times in 164 Posts

    Smile Wordpress Business Directory

    Hello

    I have a site which is running under Wordpress 2.9. I have been wanting to add a business directory to the site. The site is related to Montreal, and I had the site for about four or five years, but have never gotten the time to add a business directory.

    Back in 2006, I added over 200 business listings by hand. It was a plain HTML site back then. In 2008, I switched to Wordpress.

    So again, do you guys know of any good business listing plugins I can use for Wordpress? If not, would you guys recommend any good business directory systems?

    I am looking it to be under a free license, but I don't mind paying either. I have a budget of about $100, if I need to buy one.

    Thanks

  2. Thanked by:

    Loko (31 January, 2010), SonnyCooL (29 January, 2010)

  3. #2
    Nathan's Avatar
    Nathan is offline Work!
    Join Date
    Dec 2008
    Location
    New Zealand
    Posts
    392
    Blog Entries
    1
    Thanks
    37
    Thanked 120 Times in 68 Posts
    Would you not be better to use a dedicated system like PHPLD and have it in a folder in your site?
    Programmer, web developer and entrepreneur.

  4. #3
    CoreyFreeman's Avatar
    CoreyFreeman is offline Experienced Net Builder
    Join Date
    Jul 2009
    Location
    NC, USA
    Posts
    692
    Thanks
    40
    Thanked 55 Times in 47 Posts
    Just found this plugin: WordPress › Business Directory WordPress Plugins

    That might be of some help?

    Corey

  5. Thanked by:

    5starpix (24 January, 2010), Aziz (28 January, 2010), SonnyCooL (28 January, 2010)

  6. #4
    5starpix's Avatar
    5starpix is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    Montreal, Quebec
    Posts
    1,710
    Blog Entries
    9
    Thanks
    158
    Thanked 227 Times in 164 Posts
    Thank you CoreyFreeman! I have installed it on my site, lets see how it goes

  7. #5
    spidersense101 is offline Unknown Net Builder
    Join Date
    Oct 2009
    Posts
    3
    Blog Entries
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Please reply here if you get some good results.

    Thanks

  8. #6
    5starpix's Avatar
    5starpix is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    Montreal, Quebec
    Posts
    1,710
    Blog Entries
    9
    Thanks
    158
    Thanked 227 Times in 164 Posts
    Its been working fine, but it does not display the business addresses. It only shows the company name and phone number/email or website.

  9. #7
    SonnyCooL's Avatar
    SonnyCooL is offline HeeHa
    Join Date
    Jan 2010
    Location
    Melb/Malaysia
    Posts
    920
    Thanks
    250
    Thanked 92 Times in 78 Posts
    Quote Originally Posted by 5starpix View Post
    Its been working fine, but it does not display the business addresses. It only shows the company name and phone number/email or website.
    I think they have it when they launch premium plugin

  10. #8
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Quote Originally Posted by 5starpix View Post
    Its been working fine, but it does not display the business addresses. It only shows the company name and phone number/email or website.
    I don't have this plugin installed so I can't test this, but after having a quick look through it, I may be able to help you with that.

    Open functions.php (make a backup first) of the plugin and around lines 255-257 you'll find :

    PHP Code:
            if(!empty($l->company_phone))
                
    $directory .= @$l["company_phone"]."<br/>";
            
    $directory .= "</td></tr>"
    After $directory .= @$l["company_phone"]."<br/>"; and Before $directory .= "</td></tr>"; insert
    PHP Code:
            if(!empty($l->company_street1))
                
    $directory .= @$l["company_street1"]."<br/>";
            if(!empty(
    $l->company_street2))
                
    $directory .= @$l["company_street2"]."<br/>";
            if(!empty(
    $l->company_city) && !empty($l->company_state) && !empty($->company_zip))
                
    $directory .= @$l["company_city"].", ".@$l["company_state"].", ".@$l["company_zip"]."<br/>";
            if(!empty(
    $l->company_country))
                
    $directory .= @$l["company_country"]."<br/>"
    So it now looks like this:

    PHP Code:
            if(!empty($l->company_phone))
                
    $directory .= @$l["company_phone"]."<br/>";
            if(!empty(
    $l->company_street1))
                
    $directory .= @$l["company_street1"]."<br/>";
            if(!empty(
    $l->company_street2))
                
    $directory .= @$l["company_street2"]."<br/>";
            if(!empty(
    $l->company_city) && !empty($l->company_state) && !empty($l->company_zip))
                
    $directory .= @$l["company_city"].", ".@$l["company_state"].", ".@$l["company_zip"]."<br/>";
            if(!empty(
    $l->company_country))
                
    $directory .= @$l["company_country"]."<br/>";
            
    $directory .= "</td></tr>"
    Now that should hopefully produce an address output which looks like the following (assuming each field has a value):

    Code:
    123 Fake Street
    Suite #1
    Fake City, Fake State, 12345
    Fake Country
    Again, this was from just a quick look at the plugin's code. I have no idea if it will actually work. So make a backup of the functions.php file and give this a shot and let me know if it works or not.
    Last edited by dtkguy; 28 January, 2010 at 18:06 PM. Reason: left out a character, sorry!

  11. Thanked by:

    5starpix (28 January, 2010), SonnyCooL (29 January, 2010)

  12. #9
    5starpix's Avatar
    5starpix is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    Montreal, Quebec
    Posts
    1,710
    Blog Entries
    9
    Thanks
    158
    Thanked 227 Times in 164 Posts
    That does not seem to work. I can not access my site at all.

    The error message;


    Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting T_VARIABLE or '$' in /home/montraal/public_html/wp-content/plugins/business-directory/functions.php on line 261

  13. #10
    dtkguy's Avatar
    dtkguy is offline Still Learnin'
    Join Date
    Dec 2008
    Posts
    391
    Thanks
    7
    Thanked 164 Times in 108 Posts
    Whoops, I left out a character, sorry!

    Change

    PHP Code:
    if(!empty($l->company_city) && !empty($l->company_state) && !empty($->company_zip)) 


    to

    PHP Code:
    if(!empty($l->company_city) && !empty($l->company_state) && !empty($l->company_zip)) 

  14. Thanked by:

    5starpix (28 January, 2010)

Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 16 July, 2010, 04:28 AM
  2. BOTW, Yahoo Business directory or similar?
    By Loko in forum Business
    Replies: 3
    Last Post: 18 May, 2010, 11:00 AM
  3. business directory
    By rajajang in forum Business
    Replies: 3
    Last Post: 8 April, 2010, 00:00 AM
  4. Replies: 0
    Last Post: 17 October, 2009, 01:08 AM
  5. FREE Business Wordpress Theme
    By imported_whitey99 in forum Marketplace
    Replies: 6
    Last Post: 4 August, 2009, 05:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •