BBPress Steven Zahm : Replies Created

Forum Replies Created

Viewing 10 posts - 12,661 through 12,670 (of 15,332 total)
  • Author
    Posts
  • in reply to: No category description #272229
    Steven Zahm
    Keymaster

    @ Lucas

    Your site doesn’t seem to be working … but the category description will be shown when you select a category using one of the premium templates such as cMap or when you link directly to a category.

    in reply to: Connection Entries Not Loading/Showing At All #272227
    Steven Zahm
    Keymaster

    @ Chris

    I just visited the site. Seem to be running fine. I assume you resolved the issue?

    One item to note. I see you have a lot of entries. I recommend that you update to a premium template which supports pagination. Continued increase of that number will start to cause you problems.

    in reply to: Ordering Categories #272226
    Steven Zahm
    Keymaster

    @ Alex

    Nope, not a bug or error. By default, the links will route back to the current page. What you need to do is define a new location for the links to route to. Think of it as a “results” page of sorts where you only have the [connections] shortcode.

    The easiest thing to do is create a new “results” page with the [connections] shortcode. It can be named anything you want. Now, go to the Connections : Settings admin page and change the Directory Home Page to the new “results” page. lastly, just update you current page with the category shortcodes to force the links to route to the directory home page, like so:

    [connections category='1' force_home=TRUE]
    [connections category='2' force_home=TRUE]
    [connections category='3' force_home=TRUE]

    If you need to point the links to a page other than the directory home page for your setup. Alternatively you would create a new “results” page with the [connections] shortcode. It can be named anything you want. Take note of the new page ID. Lastly, update the category shortcodes to force the links to route to the new page instead, like so:

    [connections category='1' home_id=X]
    [connections category='2' home_id=X]
    [connections category='3' home_id=X]

    X would equal the new page ID.

    I hope that makes sense. Connections is pretty flexible so many things can be done a couple ways depending on what you’re trying to accomplish.

    • This reply was modified 12 years, 10 months ago by Steven Zahm. Reason: Remove stray strong HTML tags
    in reply to: Images and Logos #272223
    Steven Zahm
    Keymaster

    @ Steve

    Sorry, no, not without editing the core code. It is on my feature request list so it will be added at some point I just can not say when.

    in reply to: How Do I add more images? #272221
    Steven Zahm
    Keymaster

    @ mitone

    Sorry, but Connections does not have an inbuilt method for creating galleries or assigning images other than a logo/photo. I am working on a custom metabox and field API for Connections that could allow somthing like to be done fairly easily, but honestly, I could not tell you when it will be added or an extension released to add these features.

    in reply to: Many categories & max_execution_time problems #272196
    Steven Zahm
    Keymaster

    @ Aredon

    Unfortunately, due to timing, not too useful for you but I have just made some rather significant improvements to the Connections : Manage admin page. Informal testing shows around about 300%.

    in reply to: Database updates not showing #272174
    Steven Zahm
    Keymaster

    @ Tim

    Can you use the method from my previous post?

    in reply to: Database updates not showing #272167
    Steven Zahm
    Keymaster

    @ Josh

    Sorry, yes, the php snippet isn’t going to work the way I thought. refreshing the cache is going to be trickier than I initially thought.

    Dropping this in the theme’s functions.php file should be update safe. It disables the use of the cache. Using the same method as editing the core files does.

    function cn_disable_output_cache( $cached ) {
    
    	return FALSE;
    }
    
    add_filter( 'cn_address_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_phone_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_email_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_messenger_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_social_network_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_link_cached', 'cn_disable_output_cache' );
    add_filter( 'cn_date_cached', 'cn_disable_output_cache' );
    • This reply was modified 12 years, 10 months ago by Steven Zahm.
    in reply to: Form required fields? #272165
    Steven Zahm
    Keymaster

    @ Mitch

    You could alter the cn-form-user.js so it doesn’t add/remove the required class when making the entry type selection on the first/last, org names. It would not get you the email/phone.

    If you wanted to be really, really clever … you could go to you page add a phone and email field, copy the page source from the Chrome Source Inspector pasting it over the code in the connections-form.php file. You’d have to make sure to stop and stop the PHP interpreter using the start/stop tags before and after the pasted HTML code. You would then have to remove the add/remove buttons in the pasted HTML and finally add the required class.

    Sounds like a lot, but with a little trial and error, probably an hours worth of time.

    in reply to: Different directories on same webpage #272162
    Steven Zahm
    Keymaster

    @ Susan

    Basically, yes. But there is more to it. You would have to include the file in the connections.php file like the rest. But I do not recommend that. Instead, pull your renamed dupe to the plugins folder. You will then need to add the standard plugin header so WP will include it automatically. In the 0.8 release I’m updating all core templates to include that header by default so one can simply pull a core template to the plugins folder and activate it and tweak it to their hearts content. But this will override/make unavailable the core version. This is to allow update safe alterations. Now, if you dupe and change the names, the new dupe will show up as a new template. You’ll just need to make sure you change the code in all the correct places. For example, the class names and the template name and slug in the $atts array.

    Do not use the connections_templates folder. That is only in place to support the legacy templates.

    If you’re working off a dupped core template or any template the file name doesn’t matter like it use to what does matter is the plugin header, class names, template name and slug in the atts array.

    No, there’s no docs for creating templates as I’m still evolving the API. The best docs can be found in the class.output.php and class.template-api.php files and referencing cMap of how to hook into the correct actions/filters.

    Hope that helps.

Viewing 10 posts - 12,661 through 12,670 (of 15,332 total)