I know many have been patiently waiting for this… I’m proud to announce that Market 2.0 is available. This update brings many of the same great features found in cMap 2.0 such as improve pagination style, search and is completely configurable with 60 available shortcode options.
Here’s a sample shortcode that can be used for Market that changes the number of entries displayed per page, sets the pagination to be displayed at the bottom of the list and hides both the anniversary and birthday fields.
Here’s a list of options that are currently available with their default settings. There are a lot of options to customize the template, but I think that they are all pretty self explanatory.
- enable_search=TRUE
- enable_pagination=TRUE
- page_limit=20
- pagination_position=’before’
- enable_category_select=TRUE
- show_empty_categories=TRUE
- show_category_count=FALSE
- enable_category_by_root_parent=FALSE
- enable_map=TRUE
- enable_bio=TRUE
- enable_bio_head=TRUE
- enable_note=TRUE
- enable_note_head=TRUE
- enable_website_link=TRUE
- show_addresses=TRUE
- show_phone_numbers=TRUE
- show_email=TRUE
- show_im=TRUE
- show_social_media=TRUE
- show_birthday=TRUE
- show_anniversary=TRUE
- image=’logo’
- image_width=NULL
- image_height=NULL
- image_fallback=’block’
- tray_image=’photo’
- tray_image_width=NULL
- tray_image_height=NULL
- tray_image_fallback=’none’
- map_zoom=13
- map_frame_height=400
- card_width=440
- category_width=175
- str_select=’Show All Categories’
- str_image=’No Logo Available’
- str_tray_image=’No Photo Available’
- str_map_show=’Show Map’
- str_map_hide=’Close Map’
- str_bio_head=’Biography’
- str_bio_show=’Show Bio’
- str_bio_hide=’Close Bio’
- str_note_head=’Notes’
- str_note_show=’Show Notes’
- str_note_hide=’Close Notes’
- str_contact=’Contact’
- str_home_addr=’Home’
- str_work_addr=’Work’
- str_school_addr=’School’
- str_other_addr=’Other’
- str_home_phone=’Home Phone’
- str_home_fax=’Home Fax’
- str_cell_phone=’Cell Phone’
- str_work_phone=’Work Phone’
- str_work_fax=’Work Fax’
- str_personal_email=’Personal Email’
- str_work_email=’Work Email’
- str_visit_website=’Visit Website’
- name_format=’%prefix% %first% %middle% %last% %suffix%’
- contact_name_format=’%label%: %first% %last%’
- addr_format=’%label% %line1% %line2% %line3% %city%, %state% %zipcode% %country%’
Wondering if you have any news on the front end input screen? Would be nice to have businesses submit their own details – a nice plugin that does something similar is Participants Database.
Also, search facility – are you aware of the haversine function (to calculate distance between two geo locations (using longitude and latitude)? In the UK we have a database of all postcodes with longitude and latitude coordinates, by referencing this with the postcode of the user carrying out the search it would be possible to sort entries by distance. Maybe display all companies withing a certain distance?
@Stephen
I’m working on the front end form. It’ll be basic at first and primarily based on the admin form. A few key differentiators will some validation, define which fields to show and be responsive, meaning gracefully scale to the screen size so it is phone and tablet ready.
No, I was not aware of the haversine formula … I may be able ti use that for another add-on that is in the planning stages.
Having the front end form for our users will be huge! Can you please give a timeframe for when the front end form will be available. Thanks.
@Bob
I’m sort of waiting for the iPad 3 to be released. Odd statement I know. The form add-on I’m working on will be pretty basic at first but one of the initial key features will be a responsive design that will scale depending on the device [phone, tablet, desktop].
Also, your up coming ‘Rating’ upgrade. Will this be a rating of each business in the database collated by consumers?
@Stephen
Could you elaborate your question?
I would find it very useful if consumers could rate the services of a company. Say 1-5 in respects of things like knowledge, service, speed, quality, etc. An average score could be compiled plus number of ratings.
Referring back to the haversine function in my earlier post. I’m looking through your code in ‘Market’ to see if it’s possible to filter against longitude\latitude (no luck so far but I’m newbie at PHP\MySQL).
This type of function would be a real benefit as it could reduce the number of records returned to those in a specific radius of the person seraching (return results = +\- 0.005 against each co-ordinate). Gives all entries in the database a chance of coming top of the list! The haversine function would then calculate the distance in miles\km’s and this could be displayed against each entry.
is there a way with CMAP to replace the “No Logo Available” with an actual default logo. The oganization I am using this for would like to replace all missing logo’s with their logo..
@mark
Take a look at this QuickTip.
Hi Steven
Could you do me a favor and lose my email address on the post above. It’s been scraped by google and I’m trying hard to not increase my spam level :-)
Sure, done. It was on a couple posts … I removed them both for you.
Thanks Steven.
Didn’t seem to work. would this css be best added on an individual page or site wide css entry?
Trying to get all this working on http://www.muskokabuilders.com There was the ability to add custom css in the theme.
Also just a quick note This site is using the last version of wordpress. If I update it CMAP no longer works :-(
@mark
Are you using image_fallback=’none’ in the shortcode? If you are, you have to remove that because the CSS in the QuickTip relies on the markup in the HTML source on the placeholder for the image.
Both Connections and cMap work just fine on WordPress 3.5, they both have been thoroughly tested. Hows does cMap not work?
Excellent Steven. All fixed. Ill make an image of this website before I update all the plugins and core wordpress files.. Last time it was a colossal failure for this plugin (a style nightmare) and the [raw] shortcode would just show up on the page text even though there is nothing else in the html editor but the shortcodes
Thanks Steven. You have an excellent system and provide lightning fast support!
@Mark
The [raw] shortcode actually is not part of Connections … it’s hack implemented by themes. If you’re using that shortcode to get Connections to display, it could be a good idea, if the theme has support, to have the theme devs provide a fix removing the need for the [raw] shortcode.
While I agree with you in principal.. It’s less likely to get a theme developer to have their theme work with every single plugin of the tens of thousands that are out there. They would be run off their feet with no way to dig out… :0)
@Mark
I’m not trying to shift this to the theme but the [raw] shortcode breaks the output of every plugin that outputs to the page. The [raw] shortcode that themes include is truly a hack and a bad one at that. Take note of the moderator note here and read the page the moderator links to: http://theandystratton.com/2011/shortcode-autoformatting-html-with-paragraphs-and-line-breaks Themeforest is even rejecting themes that does this.