Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Linda
Ok, I applied the hotfix and it all seems good now. This will be in the upcoming 8.1.6 bug fix release so you should be able to update without issue.
Steven Zahm
Keymaster@ Linda
Ok, I took a look. It seems there is a small, but important, the image src uses http so when loaded over https, the browser will block it.
I believe I identified the fix. I was going to apply the fix to your site but my login has already been removed??? If my login is restored, I’ll apply this fix for you.
Steven Zahm
Keymaster@ Linda
Ok, let me know … send the details via the contact link at the bottom of the page. In the message, paste a link to this forum thread so I can relate the two. Thanks!
Steven Zahm
Keymaster@ Linda
Not showing in the admin but showing on the frontend is a new one indeed. What’s the link to the working frontend page? Can I get access to your new site’s admin, as an admin temporarily?
Steven Zahm
Keymaster@ Tim
Tim, now that I know the template you’re using (from the screenshot)…
Change this block of code in the
card.phpandcard-single.phpfile from this:<div style="margin-bottom: 5px;"> <h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => $atts['link'] ) ); ?></h3> <?php if ( $atts['show_title'] ) $entry->getTitleBlock(); ?> <?php if ( $atts['show_org'] ) $entry->getOrgUnitBlock(); ?> <?php if ( $atts['show_contact_name'] ) $entry->getContactNameBlock( array( 'format' => $atts['contact_name_format'] , 'label' => $atts['str_contact'] ) ); ?> </div>to this:
<div style="margin-bottom: 5px;"> <h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => $atts['link'] ) ); ?></h3> <?php if ( $atts['show_title'] ) echo 'Title: ' . $entry->getTitleBlock(); ?> <?php if ( $atts['show_org'] ) echo 'Organization: ' . $entry->getOrganization(); ?> <?php if ( $atts['show_org'] ) echo 'Annual Income: ' . $entry->getDepartment(); ?> <?php if ( $atts['show_contact_name'] ) $entry->getContactNameBlock( array( 'format' => $atts['contact_name_format'] , 'label' => $atts['str_contact'] ) ); ?> </div>That should do it.
Steven Zahm
Keymaster@ Oliver
Are you using one of the premium templates sold here?
Steven Zahm
Keymaster@ David
You mention funding this feature previously … what about funding a custom shortcode option that’ll meet your needs. I can write an extension for Connections that’ll add a new shortcode option that could custom order the categories. Simply you would add the category ID/s in the order you wish to have them presented. The only limitations that I can think of is that only the categories listed in the order would be included, meaning any category listed would not be displayed at all. And the listed categories would not be presented in a hierarchy, which from you description of you needs thus far would not be a problem.
Steven Zahm
Keymaster@ David
Sorry, no, the
tile-plus.phpcan’t be overridden; only thecard.php,card-{slug}.phpand CSS files can be overridden.Steven Zahm
Keymaster@ mike
I know it’s been awhile … but I dug deeper in the conflict with Custom Upload Dir. I made it so it will no longer override the Connections upload path. The fix will also ensure any other similar plugins will not affect Connections either. Additionally, my fix will not break the other plugins, they’ll continue to work just as they have.
Good stuff.
Steven Zahm
Keymaster@ Tim
That check of code is from the
class.retrieve.phpfile in this folder:
../wp-content/plugins/connections/includes/That has nothing to do with the templates and not in any of the instructions. I really do not suggest altering that file, bad things can happen.
You would only copy both the
card.phpandcard-single.phpfiles from the source template. I can’t tell you the exact path because I can’t remember which template and which version you’re using.Regardless of the template you would put your label in front of the code for the item you’re adding the label to. As an example the code for the title would be
$entry->getTitleBlock();to add a label you would add'Title: .before it so you would have somehting like:'Title: ' . $entry->getTitleBlock();There may or may not be code in front of or after
$entry->getTitleBlock();, that does not matter you would add'Title: .directly before$entry->getTitleBlock();.The code blocks for org and dept are:
$entry->getOrgUnitBlock();
… darn, I forgot, the org and dept are output using a single function so it is not easily done to add labels.
You can use the
echo $entry->getOrganization()andecho $entry->getDepartment()functions instead of$entry->getOrgUnitBlock()but you’ll lose the hCard microdata markup and the ability to have the org and dept as links. Neither of which may matter to you.Hope that helps!
-
AuthorPosts
