Title: jvector's Replies | WordPress.org

---

# jvector

  [  ](https://wordpress.org/support/users/jvector/)

 *   [Profile](https://wordpress.org/support/users/jvector/)
 *   [Topics Started](https://wordpress.org/support/users/jvector/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jvector/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jvector/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jvector/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jvector/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jvector/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Post is displayed outside of main content div](https://wordpress.org/support/topic/post-is-displayed-outside-of-main-content-div/)
 *  Thread Starter [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/post-is-displayed-outside-of-main-content-div/#post-1652439)
 * 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!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Excluding a category from Recent Entries](https://wordpress.org/support/topic/excluding-a-category-from-recent-entries/)
 *  [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/excluding-a-category-from-recent-entries/#post-1651085)
 * 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.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Post is displayed outside of main content div](https://wordpress.org/support/topic/post-is-displayed-outside-of-main-content-div/)
 *  Thread Starter [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/post-is-displayed-outside-of-main-content-div/#post-1652309)
 * 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](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/](http://churchillassociates.eu/category/self-awareness/page/3/)
   and other pages there are OK.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Importer] [Plugin: WordPress Importer] Import to a new WP installation on a server with no FTP](https://wordpress.org/support/topic/plugin-wordpress-importer-import-to-a-new-wp-installation-on-a-server-with-no-ftp/)
 *  Thread Starter [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-wordpress-importer-import-to-a-new-wp-installation-on-a-server-with-no-ftp/#post-1588755)
 * Got round it. Unzipped the wordpress-importer.zip file under wp-content/plugins/
   and could then activate it from the plugins control panel.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Advanced Events Registration] Event Time Settings and Spaces Available](https://wordpress.org/support/topic/plugin-advanced-events-registration-event-time-settings-and-spaces-available/)
 *  [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-advanced-events-registration-event-time-settings-and-spaces-available/#post-1483288)
 * 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!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I want to make a website rather thana blog with WP](https://wordpress.org/support/topic/i-want-to-make-a-website-rather-thana-blog-with-wp/)
 *  [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/i-want-to-make-a-website-rather-thana-blog-with-wp/#post-1492934)
 * 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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Advanced Events Registration] mysql_fetch_assoc error on Settings after activation of plugi](https://wordpress.org/support/topic/plugin-advanced-events-registration-mysql_fetch_assoc-error-on-settings-after-activation-of-plugin/)
 *  Thread Starter [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-advanced-events-registration-mysql_fetch_assoc-error-on-settings-after-activation-of-plugin/#post-1483814)
 * 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://wordpress.org/support/topic/392711](http://wordpress.org/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 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Advanced Events Registration] mysql_fetch_assoc error on Settings after activation of plugi](https://wordpress.org/support/topic/plugin-advanced-events-registration-mysql_fetch_assoc-error-on-settings-after-activation-of-plugin/)
 *  Thread Starter [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-advanced-events-registration-mysql_fetch_assoc-error-on-settings-after-activation-of-plugin/#post-1483796)
 * 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…!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Issues with Advanced Events Registration under SQLite](https://wordpress.org/support/topic/issues-with-advanced-events-registration-under-sqlite/)
 *  Thread Starter [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/issues-with-advanced-events-registration-under-sqlite/#post-1480168)
 * 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…)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Advanced Events Registration] mysql_fetch_assoc error on Settings after activation of plugi](https://wordpress.org/support/topic/plugin-advanced-events-registration-mysql_fetch_assoc-error-on-settings-after-activation-of-plugin/)
 *  Thread Starter [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-advanced-events-registration-mysql_fetch_assoc-error-on-settings-after-activation-of-plugin/#post-1483680)
 * 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/
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Daniel Sachs News Ticker] Help!](https://wordpress.org/support/topic/plugin-daniel-sachs-news-ticker-help/)
 *  [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-daniel-sachs-news-ticker-help/#post-1344534)
 * In index.php, I have added
    ` <?php if ((is_front_page()) && (function_exists('
   insert_newsticker'))) { insert_newsticker(); } ?>
 * Works for me.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: News-Ticker] Yeah but…can it loop?](https://wordpress.org/support/topic/plugin-news-ticker-yeah-butcan-it-loop/)
 *  [jvector](https://wordpress.org/support/users/jvector/)
 * (@jvector)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-news-ticker-yeah-butcan-it-loop/#post-1318757)
 * 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)