Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter jvector

    (@jvector)

    Wow alchymyth that was awesome. I had been thinking that there might be a problem with weird non-ascii characters or something, it did not occur to me that there could be a stray /div tag in the post.

    It does not show up in the WP editor, not even in HTML view… I had to go into the DB with phpMyAdmin to find it ! πŸ˜‰

    Thank you very much!

    I do something very like what you want. I have one regular blog page and one ‘News Items’ page which just has posts in the category NewsItems. So I exclude the NewsItem category from the regular blog page by having this code in my index.php.

    <?php   get_header(); ?>
    
    // leave out category 'NewsItems' from the Blog (i.e. 'home' page)
    <?php if ( is_home() ) {
            $newsCatID= get_cat_id('NewsItems');
            query_posts($query_string . '&cat=-' .$newsCatID);
    }
    ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    The query_posts call causes the unwanted cat to be filtered out of the have_posts result set. The nice thing about doing it this way is you don’t have to hard-code a cat ID into the PHP.

    Thread Starter jvector

    (@jvector)

    Hi, I’ve had a look at the loop and it seems balanced to me. I’ve pastebinned it at http://wordpress.pastebin.com/vDiLsHfp .

    Looking at it, it looks like the content div and the extra post after div after it are all generated inside the while-loop, before the posts_nav_link generates Older/Newer Posts.

    Interestingly I’ve noticed that this same blog entry causes^H^H^H^H^H is associated with the same behaviour when you take a category view
    http://churchillassociates.eu/category/self-awareness/page/3/
    and other pages there are OK.

    Thread Starter jvector

    (@jvector)

    Got round it. Unzipped the wordpress-importer.zip file under wp-content/plugins/ and could then activate it from the plugins control panel.

    jvector

    (@jvector)

    kadafolson, I only just saw your post and would not have been able to help anyway. But don’ wish you could “delete it if you could”! And don’t apologise for publishing useful information that will help someone else searching through the forum who might not know where to look. Appreciate your contribution!

    jvector

    (@jvector)

    Go to Themes on your wp-admin page and look for a theme that is oriented to providing a simple basic CMS rather than a blog. Activate one of those, and then create Pages. Good luck!

    Thread Starter jvector

    (@jvector)

    Hi Seth, this is version 2.1.6.

    Actually I have a further update. When I said above that I was running “no other plugins except NewsTicker” I was misled. In fact, I had previously moved the WP database over to SQLite using the WordPress PDO extension. I had then moved the database back to MySQL because the database layer did not want to play with this plugin (see my previous post http://ww.wp.xz.cn/support/topic/392711 ) -but the DB calls were still going through the PDO layer and its MySQL driver, and for some reason that was not initialising the database! When I removed the pdo directory and db.php files completely the Events plugin now behaves as advertised! πŸ˜‰

    So I can say this is solved πŸ˜‰

    Thread Starter jvector

    (@jvector)

    A further update after doing a bit more investigation. This error occurs in a number of different places in the config pages including

    Event Management:
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/wordpress/wp-content/plugins/advanced-events-registration/includes/manage_events.php on line 191

    Event Categories:
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/wordpress/wp-content/plugins/advanced-events-registration/includes/admin_event_categories.php on line 226

    Regform setup:
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/wordpress/wp-content/plugins/advanced-events-registration/includes/event_form_config.php on line 209

    In each of these I have put a line just before the error line, e.g. in admin_event_categories.php:

    $result = mysql_query ($sql);
    if (!$result) { print “!!< “. mysql_error(). ” >!!”; }
    if (mysql_num_rows($result) > 0 ) { //*error happens here
    `
    and in each case the mysql_error() reported is
    !!< No database selected >!!

    Can anybody help me to track down what is happening here? Looking at the source I see that most functions refer to a global $wpdb but do not see it getting initialised.

    Thanks…!

    Thread Starter jvector

    (@jvector)

    Just to update this:

    I have now moved the database back to mySQL from SQLite. The possible benefits of using SQLite seem to be outweighed by the problems caused by using it. So I don’t have a ‘problem’ here now. (Although, the question is still there in the back of my mind…)

    Thread Starter jvector

    (@jvector)

    If it helps, additional information:
    1. six tables wp_event_* have been created in my database
    2. … so evidently the WP installation can create tables in the database!
    3. web user www-data has write permissions to the folders under /var/www/wordpress/

    In index.php, I have added

    <?php
    if ((is_front_page()) && (function_exists('insert_newsticker'))) { insert_newsticker(); }
    ?>

    Works for me.

    Thank you @breitel! I was having exactly the same issue (ticker freezing) and that fixed it πŸ˜‰

    I have a separate prob with this plugin as well: the auto-excerpt-length does not seem to have any effect. The script chops the post text at an unpredictable point and says “… More -> ” despite me specifying 999 characters in the Ticker Length section of the News Ticker Settings page. Has anyone else encountered this?

Viewing 12 replies - 1 through 12 (of 12 total)