Forum Replies Created

Viewing 13 replies - 31 through 43 (of 43 total)
  • Contemplative Computing

    (@contemplative-computing)

    I commented out the problem clause and everything seems to be working okay for now. Will look out for an update.

    Contemplative Computing

    (@contemplative-computing)

    Same here.

    Thread Starter Contemplative Computing

    (@contemplative-computing)

    I got it! Created a template following the instructions in “other notes”

    Here’s what it looks like:

    <?php
    /*
    Plugin Name: List Category Posts - Template
    Plugin URI: http://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/
    Description: Template file for List Category Post Plugin for WordPress which is used by plugin by argument template=value.php
    Version: 0.9
    Author: Radek Uldrych & Fernando Briano
    Author URI: http://picandocodigo.net http://radoviny.net
    */
    
    /* Copyright 2009  Radek Uldrych  (email : verex@centrum.cz), Fernando Briano (http://picandocodigo.net)
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    */
    
    /**
     * The format for templates changed since version 0.17.
     * Since this code is included inside CatListDisplayer, $this refers to
     * the instance of CatListDisplayer that called this file.
     */
    
    /* This is the string which will gather all the information.*/
    $lcp_display_output = '';
    
    // Show category link:
    $lcp_display_output .= $this->get_category_link('strong');
    
    $lcp_display_output .= '<form name="this.form">';
    
    //Add 'starting' tag. Here, I'm using an unordered list (ul) as an example:
    $lcp_display_output .= '<select name="URL" onchange="window.location.href=this.form.URL.options[this.form.URL.selectedIndex].value">';
    
    /**
     * Posts loop.
     * The code here will be executed for every post in the category.
     * As you can see, the different options are being called from functions on the
     * $this variable which is a CatListDisplayer.
     *
     * The CatListDisplayer has a function for each field we want to show.
     * So you'll see get_excerpt, get_thumbnail, etc.
     * You can now pass an html tag as a parameter. This tag will sorround the info
     * you want to display. You can also assign a specific CSS class to each field.
     */
    
    foreach ($this->catlist->get_categories_posts() as $single):
        //Start a List Item for each post:
    
        $permalink .= get_permalink($single->ID);
    
        $lcp_display_output .= '<option value="' .$permalink. '">';
    
        //Show the title and link to the post:
        $lcp_display_output .= $this->get_post_title($single);
    
        //Show comments:
        $lcp_display_output .= $this->get_comments($single);
    
        //Show date:
        $lcp_display_output .= ' ' . $this->get_date($single);
    
        //Show author
        $lcp_display_output .= $this->get_author($single);
    
        //Custom fields:
        $lcp_display_output .= $this->get_custom_fields($this->params['customfield_display'], $single->ID);
    
        //Post Thumbnail
        $lcp_display_output .= $this->get_thumbnail($single);
    
        /**
         * Post content - Example of how to use tag and class parameters:
         * This will produce:<p class="lcp_content">The content</p>
         */
        $lcp_display_output .= $this->get_content($single, 'p', 'lcp_content');
    
        /**
         * Post content - Example of how to use tag and class parameters:
         * This will produce:<div class="lcp_excerpt">The content</div>
         */
        $lcp_display_output .= $this->get_excerpt($single, 'div', 'lcp_excerpt');
    
        //Close li tag
        $lcp_display_output .= '</option>';
    endforeach;
    
    $lcp_display_output .= '</select>';
    $lcp_display_output .= '</form>';
    $this->lcp_output = $lcp_display_output;
    Contemplative Computing

    (@contemplative-computing)

    Also there appears to be no way for the post author to subscribe to their own post? This is frustrating. 🙁

    I know there’s a global setting for this but we have tons of authors and tons of comments. Not all of them want to receive the emails.

    Contemplative Computing

    (@contemplative-computing)

    Looks good for the most part but I’m getting this at the top of the manager page:

    Warning: Illegal string offset ‘manager’ in /home/madinam/public_html/wp-content/plugins/subscribe-to-comments/subscribe-to-comments.php on line 304

    Contemplative Computing

    (@contemplative-computing)

    Very quickly answered my own question. Just appended “-1” “-2” etc. to the end of the div IDs in subsequent calls for posts.

    Contemplative Computing

    (@contemplative-computing)

    Regarding listing posts… Any ideas about how to deal with a page where some posts are called multiple times? This seems to break the jquery because the same ID is showing up in multiple places. After the first instance, a repeat post will not expand properly. I’d greatly appreciate some help with this.

    Thanks for the excellent plugin!

    -Matthew

    Thread Starter Contemplative Computing

    (@contemplative-computing)

    Ah. I understand that notion, although it does not match my experience. There also seem to be other people experiencing the issue.

    Oh well, I found another plugin that does almost as good a job. Thanks for responding here Jeff!

    Thread Starter Contemplative Computing

    (@contemplative-computing)

    Jeff why do you think many people suddenly have the same problem? It was working fine for me and then immediately stopped working when I upgraded.

    What I’m hearing from you is that perhaps another plugin I was previously using didn’t conflict with Theme My Login under 3.2.1, but does conflict under 3.3. Is that correct?

    Thread Starter Contemplative Computing

    (@contemplative-computing)

    Fixed issue #1 by editting pdf.php for the first part to look like this:

    Needed to fix up the way $quizDetails was being called and worked on.

    $quizDetails = $wpdb->get_row(
    						$wpdb->prepare("SELECT * FROM <code>&quot;.WPSQT_TABLE_QUIZ_SURVEYS.&quot;</code> WHERE id = %d", array($_GET['quizid'])),
    						ARRAY_A);
    
    	$quizDetails['settings'] = unserialize($quizDetails['settings']);
    
    	$resultDetails = $wpdb->get_row(
    						$wpdb->prepare("SELECT * FROM <code>&quot;.WPSQT_TABLE_RESULTS.&quot;</code> WHERE id = %d", array($_GET['id'])),
    						ARRAY_A	);
    
    	$resultDetails['person'] = unserialize($resultDetails['person']);
    	$resultDetails['sections'] = unserialize($resultDetails['sections']);
    
    	$personName = ( isset($resultDetails['person']['name']) && !empty($resultDetails['person']['name']) ) ? $resultDetails['person']['name'] : 'Anonymous';
    	$timestamp = strtotime($resultDetails['timestamp']);
    
    	$pdfTemplate = $quizDetails['settings']['pdf_template'];
    Thread Starter Contemplative Computing

    (@contemplative-computing)

    Joel Meador
    DEC 20, 2011 | 02:10PM EST
    Looks like the escaping being done is overly escape-y. Basically every element attribute is being escaped an extra time. So I’m seeing <style type=\”text/css\”> instead of <style type=”text/css”>

    xxxx
    DocRaptor Support

    Confirmed this in my own install. Clicking “Save Quiz” (wut) on the main “options page” causes the code to come back wrong, with extra backslashes and other oddities all around.

    Thread Starter Contemplative Computing

    (@contemplative-computing)

    Thanks! Figured it out on my own using pretty much exactly what you described.

    Very happy with the cimy extra field plugin, which has great documentation about how to pull the value for its additional fields.

    Contemplative Computing

    (@contemplative-computing)

    I am having this exact same question. I would like to display a random quote of a particular tag using the shortcode. Implementing the php code to do this in the page template is not working because this content is being drawn into another script that needs the output in the “content” section.

    This is an option when using the base php script but in the shortcode options there is only “|tags” and “|random”. Is there any way to do both?

Viewing 13 replies - 31 through 43 (of 43 total)