Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Danielle
This is possible. I do have another custom addon which I sell. You can see it here on this live third party site:
It the “Find A Therapist“. The top three options are separate parent categories.
If you are interested in this solution, please contact me using the Contact link at the very bottom of the page. I can provide you with a quote which will include installation and configuration.
Hope this helps!
Steven Zahm
Keymaster@ Marianna
re: I have translated plugins before, but as I recall usually a translation is only in one place, here you have to find it everywhere :)
“Everywhere“… Actually not everywhere, each addon for Connections is its own plugin which requires its own translation files. Unfortunately this is how it works. This is not limited to Connections. Take for example WooCommerce, a very, very, popular plugin with many, many addons. Each addon requires it own translation.
Any way back to your issue…
The file naming looks correct so the translation should work just fine. Could you attach your PO file file so I can take a look? To attach the you will have to rename
.poto.txt.Steven Zahm
Keymaster@ Colin
For search, you’ll need one of the premium templates. All support search and a category filter. Some have it disabled by default because the design focus is small teams and such but it can be turned on if needed.
Hope that answers your question thoroughly!
Steven Zahm
Keymaster@ James
re: Using the form nd link extension, can I make a page where residents can add their profile on a mobile device? I have inserted the link but it only showed up on my desktop. Just to clarify, the goal is to let people edit their profiles or create a new one, on a mobile device.
Well, Connections does not distinguish between desktop/mobile … meaning, the same content, links included, are server just the same. So, if you are not seeing it on the mobile device, there is another issue. Are you doing anything “special” for mobile or are you simply using a responsive theme? If you are simply using a responsive theme, then it still could be caching … perhaps the “old” version of the page is still being served.
If that is not it, what shortcode are you using, specifically? Are you viewing the page as a regular user vs the admin? If you are viewing as the user, have the Connections : Roles capabilities been setup so the user can add/edit entries?
re: I would like to create a more distinct button or icon for them to click, rather than the blue link, if that’s possible, thanks
You can likely use CSS to change the link into a button.
Steven Zahm
Keymaster@ Linda
The name link is reserved for linking directly to the profile page, as you know. Changing this will require editing the
card.phpfile found in this folder for cMap:../wp-content/plugins/connections-cmap/You need to look for this line.
<h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => $atts['link'] ) ); ?></h3>The first change you need to make is this:
<h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => FALSE ) ); ?></h3>After this, it gets hard (depending on your skill with PHP). YOu need to decide if you want to save this link as a Link field type (a standard field in Connections) or a custom field.
I think I would suggest a custom field. Here’s a link to a tutorial on how to add a text field custom field.
Instead of displaying the custom field you would save the value (the URL) into a variable to be used has the
hrefattribute in the link. Something like this:$url = $entry->getMeta( array( 'key' => 'field_id', // This should match exactly the field id used when registering the custom field. 'single' => TRUE // Do not change this. ) );Then you would change the name block to something like this:
<h3><a href="<?php echo esc_url( $url ); ?>"><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => FALSE ) ); ?></a></h3>This is all untested but it should get you started along the right path.
Hope this helps!
ps. If you are going to alter the template file, you should review this tutorial on custom template override files.
Steven Zahm
Keymaster@ Marianna
re: produced .po and .mo files for both link and forum, but that didn’t work.
They should. Those two extension already have translations for other languages which are known to work. Double check your naming of the MO file to ensure it is correct.
11/14/2016 at 1:44 pm in reply to: Keep getting this "ERROR: Could not insert term into the database" why? #399815Steven Zahm
Keymaster@ Tim
Just following up since I have not heard back… is this resolved? If not, let me know. The login details can be posted here as a private reply.
11/14/2016 at 1:35 pm in reply to: cMap using enable_category_by_root_parent & initial_results #399814Steven Zahm
Keymaster@ Linda
re: If I don’t use the initial_results=’False’ then the enable_category_by_root_parent works, but when I added initial_results the root parent restriction doesn’t work until after I’ve selected from the drop-down.
The code snippet needs to be updated in order to support the
enable_category_by_root_parentshortcode option.Find this line in the snippet:
$category = cnTemplatePart::category( $atts );Add this line so it comes before it:
if ( $atts['enable_category_by_root_parent'] ) $atts['parent_id'] = $atts['category'];Save and update the snippet.
I did not test, but, that should do it.
re: with initial_results added, the search box appears (below the category drop-down box) even though I disabled the search controls in the template customization.
Search for this line in the snippet:
$search = cnTemplatePart::search( $atts );Change it to this:
$search = '';Now the keyword search will not be displayed.
re: Any ideas where the initial_results could be conflicting with these other options?
It not really a conflict. Basically what the snippet does is display the category/search controls if a search is not being done. This is hard coded in the snippet. The template is only loaded when a search is being done, so, none of the templates functions/features/option are applied.
Hope that helps!
Steven Zahm
Keymaster@ James
Sounds like you are running a either page cache plugin or server side cache. Try clearing the cache.
Let me know if that helps.
Steven Zahm
Keymaster@ Martin
A quick look at their code, that seems that is the only solution. From what I can tell they remove filters applied by other plugins before applying their changes to the title.
-
AuthorPosts
