Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Henryk
Categories are hierarchical, so you can do that. When creating a new descendant category, just select its parent category from the drop down. Does that help?
Steven Zahm
Keymaster@ Shanan
You have to add the social network to the
class.options.phpfile. Just search for one of the existing one. What you need to add should make sense when you see the others.You would then need to find an icon that you would like to use and create various sizes of it and place them in the
../wp-content/plugins/connections/images/icons/**sizes**/folders. The important bit here, is the icon file will have to be named exactly as the lowercase key name you used in theclass.options.phpfile with a.pngfile extension.Hope that helps.
Steven Zahm
KeymasterThis is the shortcode equivalent of what you want to do:
[connections list_type='organization' category='3' template='names']Steven Zahm
Keymaster@ Floris
Good deal, here’s what you need to do.
Open the template.php file found here:
../wp-content/plugins/connections/templates/card/Goto line 46, which should be this
<span style="display: block; margin-bottom: 8px;"><?php $entry->getCategoryBlock( array( 'separator' => ', ', 'before' => '<span>', 'after' => '</span>' ) ); ?></span>Change it to this:
<span style="display: block; margin-bottom: 8px;"><?php $entry->getCategoryBlock( array( 'label' => 'Will ship to', 'separator' => ', ', 'before' => '<span>', 'after' => '</span>' ) ); ?></span>Save and upload overwriting the original file. Of course you should backup first.
Steven Zahm
Keymaster@ Steven
I think we cross posted, look here.
Steven Zahm
Keymaster@ sean
First a question … is there a specific reason you writing you’re own query rather that using the shortcode?
This shortcode should do the trick:
[connections list_type='organization' category='3']If you need the more low level access, you can do this within PHP like so:`global $connections;
$atts = array(
'list_type' => 'organization',
'category' => 3
);$results = $connections->retrieve->entries( $atts );`
The you iterate thru the
$resultsarray.If you want to take a look at the actual query being built so you can tweak a custom one to suit, open up the
class.retrieve.phpand uncomment line 768 which should beprint_r($sql); die;Hope that helps.
Steven Zahm
Keymaster@ Steven
The activate/inactive status in the plugin editor does not matter when editing one of the asset files for a plugin. It only means anything when editing the main plugin file, the one with the plugin header text which will be loaded by default when selecting a plugin to edit.
I do have to apologize, when I gave my instructions I was not thinking about all the necessary javascript the needs to be written to init and draw the map using the Google Maps API. The command I gave just outputs the empty container for the Google Maps API to populate, nothing else. Sorry.
You might be way better off using one of the many plugins out there that can display a map using a shortcode. Both the bio and notes fields do support shortcodes. I should have suggested that initially, sorry. One disclaimer, I’ve never tested using another plugin’s shortcode that outputs a map in the notes or bio field… in theory should work fine.
Steven Zahm
Keymaster@ Steven
You could open the
card.phpthat belongs to Slim Plus and add the following to it where you want the map to be displayed:$entry->getMapBlock();This function takes many options which are documented in the
class.output.phpin the Connections plugin folder.Hope that helps point you in the right direction.
Steven Zahm
Keymaster@ Elaine
So, I do not currently have a newsletter type add-on. There is no official CSV Export add-on either. However, another user contributed the script found here. Hoe that helps you out.
Steven Zahm
Keymaster@ Johnny
If you’re testing while logged in and you’re a user that can add new entries, you will not get sent a notice. Could that be the issue?
-
AuthorPosts
