BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 10,521 through 10,530 (of 15,332 total)
  • Author
    Posts
  • Steven Zahm
    Keymaster

    @ David

    This is a bit complex…

    Probably the closest code example I can give is this:
    https://github.com/Connections-Business-Directory/Connections/blob/0.8.14/includes/class.metabox-entry.php#L388

    That the code that creates the checklist in the admin.

    The related function being used is here:
    https://github.com/Connections-Business-Directory/Connections/blob/0.8.14/includes/class.form.php#L264

    And that calls a couple recursive functions for transversing the category tree and output the list.

    It is come pretty old code that is going to be rewritten because it can be done better … but this should at least give you the idea of how to put this together. Hope it helps!

    in reply to: Assistance with creating a Directory #299500
    Steven Zahm
    Keymaster

    @ Stacey

    Thanks for your interest in Connections! Connections may or may not be the best fit for your needs. I’m leaning towards not. Presently Connections does not have any method to accept payments in order to be listed. Other users that decide to use Connections and want to take payments use member plugins such as Restrict Content Pro to take and manage payments. Basically after payment has been made they then have access to Form page, where the user can add their entry. This setup, while can work, is more complex since they are not integrated solutions.

    Many users choose the cMap template as they template of choice. It allows visitors to filter by category and allows them to click thru to the single entry … but, it does not open in a new page, it opens within the same page/window/tab.

    I hope this helps!

    in reply to: A few more questions #299498
    Steven Zahm
    Keymaster

    @ Enn

    All the free core template will show the address type label by default. The only way to hide them would be to tweak the template’s PHP code. Or use a bit of CSS added to the theme’s custom CSS area. Another option would be to use one of the premium templates sold here. They all have an option to configure the address format.

    I hope that helps!

    in reply to: Inserting an image #299497
    Steven Zahm
    Keymaster

    @ Enn

    Yes, you can insert an image into the bio and notes fields. You need to use the img HTML tag.

    The image and logo that can be added to the entry are only displayed in templates which support displaying them. For example, all the free core templates support displaying the image, but no the logo whereas templates such as cMap and Market support showing the logo (by default, can be configured).

    I hope that helps!

    in reply to: Visitor submitted listings #299496
    Steven Zahm
    Keymaster

    @ George

    To accept entries from site visitors you need the Form extension. This extension will allow visitor to submit an entry into Connections for moderation.

    Two show the address on a map, you need a template that supports that feature such as cMap.

    Hope that helps you get started!

    in reply to: Slim-Plus: Unfold logo-entries by default? #299495
    Steven Zahm
    Keymaster

    @ Roy

    Not sure I’d be adding this to a template. You’d have to customize the template. Right now, if no logo is added, no logo will be shown.

    I’m guessing you will be showing the logo in place of the image, yes?

    That can be done easily by settings a shortcode option for Slim Plus. Rather than altering the code, there is another option. If you create a category named show and assign it to the entries that you want open by default, they will be.

    Will that work?

    in reply to: Custom templates and multisite #299493
    Steven Zahm
    Keymaster

    @ Ciaran

    Great to hear!

    If I haven’t already asked and if you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
    http://wordpress.org/support/view/plugin-reviews/connections

    in reply to: Sizing problem in list body #299492
    Steven Zahm
    Keymaster

    @ Marco

    This seems to be added by another plugin or the theme for some reason … those are not being applied by Connections. When I disable JavaScript for your site, those styles are not applied, so it must be being added by the javascript of another plugin or the theme. Unfortunately you’ll have to deactivate plugin one at a time and check after each plugin deactivation to see if the issue has been resolved. The last plugin deactivated before the issue being resolved would be the culprit. If it still happens after all plugins have been deactivated … then it is the theme.

    Not sure why another plugin or the theme would specifically target a Connections div…

    Steven Zahm
    Keymaster

    @ Craig

    Oh, thanks for sharing the tool you use. I’ll have to shop around and see if I can find one for myself. I think running it on my site will help me catch these errors in the future.

    Steven Zahm
    Keymaster

    @ Craig

    I developed a snippet for another user that may help with this issue a little.

    Install the Code Snippets plugin and add the following code as a new snippet.

    add_action( 'wp', 'cn_search_category_reset' );
    
    function cn_search_category_reset() {
    	global $wp_rewrite, $post;
    	
    	$keywords     = get_query_var( 'cn-s' );
    	$categoryIDs  = get_query_var( 'cn-cat' );
    	$categorySlug = get_query_var( 'cn-cat-slug' );
    	
    	if ( ! empty( $keywords ) && ( ! empty( $categoryIDs ) || ! empty( $categorySlug ) ) ) {
    		
    		cnSEO::doFilterPermalink( FALSE );
    		
    		// Get the directory home page ID.
    		$homeID = cnSettingsAPI::get( 'connections', 'connections_home_page', 'page_id' );
    		
    		$permalink = $wp_rewrite->using_permalinks() ? trailingslashit( get_permalink( $homeID ) ) : get_permalink( $homeID );
    		
    		wp_redirect( add_query_arg( array( 'cn-s' => $keywords, 'cn-cat' => FALSE, 'cn-cat-slug' => FALSE ), $permalink ) );
    		
    		exit;
    	
    	} elseif ( ! empty( $categoryIDs ) && ! empty( $categorySlug ) ) {
    		
    		cnSEO::doFilterPermalink( FALSE );
    		
    		// Get the directory home page ID.
    		$homeID = cnSettingsAPI::get( 'connections', 'connections_home_page', 'page_id' );
    		
    		$permalink = $wp_rewrite->using_permalinks() ? trailingslashit( get_permalink( $homeID ) ) : get_permalink( $homeID );
    		
    		wp_redirect( add_query_arg( array( 'cn-cat' => $categoryIDs, 'cn-cat-slug' => FALSE ), $permalink ) );
    		
    		exit;
    	}
    	
    }

    I will not do much about the pagination links but it should help clear up the issue of clicking the category link in the sidebar and then changing the category in the drop down… in case you would like to use that again.

Viewing 10 posts - 10,521 through 10,530 (of 15,332 total)