BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 11,541 through 11,550 (of 15,332 total)
  • Author
    Posts
  • in reply to: Error messages after upgrade #288227
    Steven Zahm
    Keymaster

    @ Richard

    Yep, that’ll do it too. Simply visiting the templates admin page refreshes the template file paths.

    in reply to: View public entries missing #288220
    Steven Zahm
    Keymaster

    @ Ian

    Unless you have the login required option checked in the settings the view public entries option will not appear in the role capabilities. So… looking at your site, it does not appear that login is required, so that option should not appear. I hope that makes sense!

    What is you exact shortcode you are using?

    On the Connections : Settings admin page under the General tab; do you have either of the options for shortcode visibility option enabled? If you do, uncheck both and save.

    in reply to: Search Entire Directory #288198
    Steven Zahm
    Keymaster

    @ Tim

    Good to hear. I wondered if you might have had an older version.

    in reply to: Map display update #288190
    Steven Zahm
    Keymaster

    @ Brian

    Sorry, but there is not a way “upgrade”. That is an old custom version of the cMap template that is built using the iFrame embed rather than using the Google Maps API V3 which is what cMap currently uses and is what should be used when infacing with Google Maps. Both implementations are using the new Google Maps. The difference is that the embed code seems to add a few extra controls that did not exist before.

    Hope that helps!

    in reply to: Specifying sub categories #288126
    Steven Zahm
    Keymaster

    @ Mark

    I do know what you are asking. Actually, there is no way to specifiy which “Other” to import into. They’ll import into the first one the database finds. Honestly, this is not a scenario that was taking into account when importing. It is possible but there would have to be code changes to allow this.

    Open the class.entry-import-csv.php file found here:

    ../wp-content/plugins/connections-csv/includes/class.entry-import-csv.php
    

    Change this block of code from:

    foreach ( $categories as $category ) {
    
    	$category = $format->sanitizeString( $category );
    
    	if ( array_key_exists( $category, $this->cache['category'] ) ) {
    
    		// If the term has already been queried use the cached copy rather than query the db again.
    		$term = $this->cache['category'][ $category ];
    
    	} else {
    
    		// Query the db for the term to be added.
    		$term = $instance->term->getTermBy( 'name', $category, 'category' );
    
    		// If the term was found store it in the cache for reuse.
    		if ( $term != FALSE ) $this->cache['category'][ $category ] = $term;
    	}
    
    	if ( $term != FALSE && $term->name == $category ) {
    
    		$termIDs[] = $term->term_id;
    
    	} else {
    
    		// Add the new category.
    		$instance->term->addTerm( $category, 'category', array( 'slug' => '', 'parent' => '0', 'description' => '' ) );
    		// addTerm should be refactored to return the insert ID so the getTermBy query does not need done.
    
    		// Get the newly added term object.
    		$term = $instance->term->getTermBy('name', $category, 'category');
    
    		$termIDs[] = $term->term_id;
    	}
    }

    to this:

    foreach ( $categories as $category ) {
    
    	$category = $format->sanitizeString( $category );
    
    	if ( array_key_exists( $category, $this->cache['category'] ) ) {
    
    		// If the term has already been queried use the cached copy rather than query the db again.
    		$term = $this->cache['category'][ $category ];
    
    	} else {
    
    		// Query the db for the term to be added.
    		$term = $instance->term->getTermBy( 'slug', $category, 'category' );
    
    		// If the term was found store it in the cache for reuse.
    		if ( $term != FALSE ) $this->cache['category'][ $category ] = $term;
    	}
    
    	if ( $term != FALSE && $term->slug == $category ) {
    
    		$termIDs[] = $term->term_id;
    
    	} else {
    
    		// Add the new category.
    		$instance->term->addTerm( $category, 'category', array( 'slug' => '', 'parent' => '0', 'description' => '' ) );
    		// addTerm should be refactored to return the insert ID so the getTermBy query does not need done.
    
    		// Get the newly added term object.
    		$term = $instance->term->getTermBy('slug', $category, 'category');
    
    		$termIDs[] = $term->term_id;
    	}
    }

    Now, in you CSV file instead of using the category name, you would use the category slug.

    Hope that helps!

    in reply to: marking cmap location with Lat & Long #288125
    Steven Zahm
    Keymaster

    @ Roger

    Every template that has a map supports the input of the latitude and longitude.; as you’ve discovered.

    Sorry, no there is not presently a way to show all locations on a map.

    in reply to: Search Entire Directory #288092
    Steven Zahm
    Keymaster

    @ Tim

    Which version of the Widget Pack do you have installed?

    in reply to: updated category does not display #288056
    Steven Zahm
    Keymaster

    @ Joe

    Semantically, it would be more correct to place the officer title in the title field.

    If you’re able to edit PHP you could edit the template to include it.

    Open the card.php and card-single.php and place the following code where you want the categories to be displayed. Both files can be found here:
    ../wp-content/plugins/connections-cmap/

    <?php $entry->getCategoryBlock( array( 'separator' => ', ', 'before' => '<span>', 'after' => '</span>' ) ); ?>

    in reply to: Any way to make a category page? #288054
    Steven Zahm
    Keymaster

    @ kar3n

    Switching templates is a lot like switching themes… it changes the appearance/presentation of the data/content it does not change/alter or delete it.

    Hope that helps!

    in reply to: DIV CLASS = CN ALPHAINDEX #288053
    Steven Zahm
    Keymaster

    @ Mike

    Add the following to the theme’s custom CSS area or to the end of its styles.css file:

    #cn-slim-plus div.cn-alphaindex {
        font-size: 1.2em !important;
    }

    Tweak to suit.

    Hope that helps!

Viewing 10 posts - 11,541 through 11,550 (of 15,332 total)