Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Marco
I would use a filter snippet instead of change the code directly. Here’s how…
First install the Code Snippets plugin.
Add a new snippet with the following code:
add_filter( 'cn_output_default_atts_address', 'cn_set_default_address_format' ); function cn_set_default_address_format( $atts ) { $atts['format'] = '%label% %line1% %line2% %line3% %zipcode% %city% %state% %country%'; return $atts; }Save and active the snippet.
If you’ve used the
addr_formatshortcode option, remove it.Steven Zahm
Keymaster@ Axel
I see … Form 2.x introduced a new settings page, look on the Connections : Settings admin page under the Form tab. All the shortcode options are now settings which affect both the
/submit/and the shortcode. Actually, I do not even have documentation for the shortcode up anymore (I removed it) because I’m deprecating its usage.Steven Zahm
Keymaster@ Axel
Yes, it does clarify it. My first thought was … good idea. But … what customization/parameters are you setting that after Form? Form, submit link, already has a fixed URL.
Steven Zahm
Keymaster@ Roy
No, see this FAQ. This feature is already built into the template. By adding the
Showcategory and adding it to an entry, that entry will display open by default, rather than closed.re: And instead of changing
card.php, can’t I just upload a 1×1 pixel *.jpg as image along with the logo to the entries with logos?
I don’t understand, do you or do you not want to show the logo?Steven Zahm
Keymaster@ Axel
Sorry, not sure I understand.
Steven Zahm
Keymaster@ Cori
Yes, you can attach the downloaded vCard file via email to anyone who you wish. How you attach the vCard to an email is really depends on which email app/webmail you use. The process would be no different from attaching any other file. Alternatively, you could email a link to the entry or share the link on your social media network of choice.
Hope that helps!
Steven Zahm
Keymaster@ Axel
How could it be enhanced to be more useful?
Steven Zahm
Keymaster@ Nial
Apologies for not answering the other two questions … I do better than that, typically.
The only way to add a logo will be to edit the
card.phpfile. Add the following to it where you want to the logo to show:$entry->getImage( array( 'image' => 'logo', 'height' => 120, 'width' => 100, 'zc' => 2, ) );If you decide to edit the template, I suggest using this method so the change is update safe.
Changing the cell phone label can be done with a shortcode option. Use this shortcode:
[connections str_cell_phone='Mobile']Hope that helps!
If you have a moment, I would truely appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connectionsSteven Zahm
Keymaster@ Roy
To change the image from the photo to the logo you would use:
[connections image='logo']Thinking about this a little more, the default for Slim Plus will be to crop and resize proportionally to best fit the specified dimensions, maintaining the aspect ratio. This is generally fine for photos, not good for logos because they will get cut off.
Probably the best thing to do is edit the
card.phpfile. Change these lines:$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );to this:
$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ), 'zc' => 2, ) );Now, the logos will be resized proportionally to fit entire image into the specified dimensions and add margins if required.
That should do the trick nicely. Hope that helps!
Steven Zahm
Keymaster@ brent
Sorry, I must have missed your reply … I do not think I am properly being notified of private replies…
I just took a look. When I added a private entry to just the Chiropractor category and not the parent category and that entry showed up in the results like it should. So it seems to be working unless I misunderstand the problem. I made sure to delete the test entry.
-
AuthorPosts
