Title: joynic's Replies | WordPress.org

---

# joynic

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Brute Force Login Protection] when i removed the ip from dashboard, other .htaccess content were removed](https://wordpress.org/support/topic/when-i-removed-the-ip-from-dashboard-other-htaccess-content-were-removed/)
 *  Thread Starter [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/when-i-removed-the-ip-from-dashboard-other-htaccess-content-were-removed/#post-5172768)
 * I had to stop this plugins, until the problem is resolved.
 * thank you very much.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Brute Force Login Protection] when i removed the ip from dashboard, other .htaccess content were removed](https://wordpress.org/support/topic/when-i-removed-the-ip-from-dashboard-other-htaccess-content-were-removed/)
 *  Thread Starter [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/when-i-removed-the-ip-from-dashboard-other-htaccess-content-were-removed/#post-5172767)
 * @Fresh-Media it doesn’t the whole .htaccess file gets emptied, only cleared part
   of the content. in my .htaccess file, there are some code like this:
 * _[ Moderator note: code fixed. Please wrap code in the backtick character or 
   [use the code button](http://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       # protect wpconfig.php
       <files wp-config.php>
       Order deny,allow
       deny from all
       </files>
       <files .htaccess>
       order allow,deny
       deny from all
       </files>
       ```
   
 * after block an ip, then remove it, my .htaccess file content like this:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       ```
   
 * then my site can not be opened at all.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Brute Force Login Protection] when i removed the ip from dashboard, other .htaccess content were removed](https://wordpress.org/support/topic/when-i-removed-the-ip-from-dashboard-other-htaccess-content-were-removed/)
 *  Thread Starter [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/when-i-removed-the-ip-from-dashboard-other-htaccess-content-were-removed/#post-5172746)
 * @Fresh-Media thanks for your reply, the WordPress version is 3.9.2
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [download problem rewrite class](https://wordpress.org/support/topic/keesiemeijer-can-you-help-me/)
 *  Thread Starter [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/keesiemeijer-can-you-help-me/#post-4316964)
 * [@keesiemeijer](https://wordpress.org/support/users/keesiemeijer/) thank you 
   very much:)
 * Using your code, I created a “faves” page for each user, it display the contents
   of the user’s favorite, the following link is working properly:
 * [http://mydomain.com/user/xxx/faves/](http://mydomain.com/user/xxx/faves/)
 * but page 2 is broken, and return 404
 * [http://mydomain.com/user/xxx/faves/page/2/](http://mydomain.com/user/xxx/faves/page/2/)
 * Here is my code…
 *     ```
       <?php $favespage = get_query_var('faves'); if($favespage == 'faves' ) : ?>
   
       <?php $user = get_user_by( 'slug', get_query_var( 'author_name' ) );
       $user_id = $user->ID;
       $bookmarked = get_user_meta( $user_id, 'i_bookmarked_topics', true );
       if ( !is_array( $bookmarked) )
         $bookmarked = array(); if ( $bm_query = new WP_Query( array( 'post__in' => $bookmarked,'posts_per_page' => 2, 'paged' => $paged ,'post_type' => array( 'post', 'topic', 'goods' ) ) );
       if ( $bm_query->have_posts() );
       ?>
       <?php while ( $bm_query->have_posts() ) : $bm_query->the_post(); ?>
   
       ...............
   
       <?php if (will_paginate()): ?>
       <div class="navigation">
       <?php wp_pagenavi(); ?>
       </div>
       <?php endif; ?>
   
       <?php endif; ?>
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [wp_list_categories() exclude not working anymore in 3.7?](https://wordpress.org/support/topic/wp_list_categories-exclude-not-working-anymore-in-37/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_list_categories-exclude-not-working-anymore-in-37/#post-4255749)
 * please try this
 *     ```
       <ul>
       <?php foreach(get_categories("orderby=name&orderby=count&order=DESC&exclude=14,1,3,4,5,9&hide_empty=0") as $category) {echo '<li class="cat-item cat-item-'.$category->cat_ID.'"><a href="'.get_category_link($category->cat_ID).'" title="'.$category->category_description.'">'.$category->cat_name.'</a></li>';} ?>
       </ul>
       ```
   
 * replace ‘exclude=14,1,3,4,5,9’ with yours
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_list_categories does not accept 'exclude' anymore.](https://wordpress.org/support/topic/wp_list_categories-does-not-accept-exclude-anymore/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_list_categories-does-not-accept-exclude-anymore/#post-4254717)
 * please try this
 *     ```
       <ul>
       <?php foreach(get_categories("orderby=name&orderby=count&order=DESC&exclude=14,1,3,4,5,9&hide_empty=0") as $category) {echo '<li class="cat-item cat-item-'.$category->cat_ID.'"><a href="'.get_category_link($category->cat_ID).'" title="'.$category->category_description.'">'.$category->cat_name.'</a></li>';} ?>
       </ul>
       ```
   
 * replace ‘exclude=14,1,3,4,5,9’ with yours
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_list_categories all of a sudden won't exclude a category](https://wordpress.org/support/topic/wp_list_categories-all-of-a-sudden-wont-exclude-a-category/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_list_categories-all-of-a-sudden-wont-exclude-a-category/#post-4256359)
 * [@komiska](https://wordpress.org/support/users/komiska/)
 * replace ‘exclude=14,1,3,4,5,9’ with yours
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_list_categories all of a sudden won't exclude a category](https://wordpress.org/support/topic/wp_list_categories-all-of-a-sudden-wont-exclude-a-category/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_list_categories-all-of-a-sudden-wont-exclude-a-category/#post-4256358)
 * [@komiska](https://wordpress.org/support/users/komiska/)
 * sorry, please try this
 *     ```
       <ul>
       <?php foreach(get_categories("orderby=name&orderby=count&order=DESC&exclude=14,1,3,4,5,9&hide_empty=0") as $category) {echo '<li class="cat-item cat-item-'.$category->cat_ID.'"><a href="'.get_category_link($category->cat_ID).'" title="'.$category->category_description.'">'.$category->cat_name.'</a></li>';} ?>
       </ul>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_list_categories does not accept 'exclude' anymore.](https://wordpress.org/support/topic/wp_list_categories-does-not-accept-exclude-anymore/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_list_categories-does-not-accept-exclude-anymore/#post-4254661)
 * this is my solution, replace <?php wp_list_categories();?> with:
    - ‘;} ?>
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_list_categories all of a sudden won't exclude a category](https://wordpress.org/support/topic/wp_list_categories-all-of-a-sudden-wont-exclude-a-category/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_list_categories-all-of-a-sudden-wont-exclude-a-category/#post-4256299)
 * this is my solution, replace <?php wp_list_categories();?> with:
    - ‘;} ?>
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [wp_list_categories() exclude not working anymore in 3.7?](https://wordpress.org/support/topic/wp_list_categories-exclude-not-working-anymore-in-37/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_list_categories-exclude-not-working-anymore-in-37/#post-4255686)
 * this is my solution, replace <?php wp_list_categories();?> with:
    - ‘;} ?>
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Let users create a new custom taxonomy entry from frontend](https://wordpress.org/support/topic/help-let-users-create-a-new-custom-taxonomy-entry-from-frontend/)
 *  Thread Starter [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/help-let-users-create-a-new-custom-taxonomy-entry-from-frontend/#post-3664764)
 * Sorry, my code:
 * [http://pastebin.com/521yBA3k](http://pastebin.com/521yBA3k)
 * is there anybody can help me?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[My Post Order] change number of posts per page](https://wordpress.org/support/topic/change-number-of-posts-per-page/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/change-number-of-posts-per-page/#post-3462381)
 * [@sorcrr](https://wordpress.org/support/users/sorcrr/) can you tell me ? thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Category Icons] Error with WordPress v3.5](https://wordpress.org/support/topic/error-with-v35-of-wordpress/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/error-with-v35-of-wordpress/#post-3302586)
 * [@jeegrobot](https://wordpress.org/support/users/jeegrobot/) sorry, maybe that
   should not be a problem of the code. it works perfectly with Chrome for me also.
 * [@everyone](https://wordpress.org/support/users/everyone/) pls thanks to the 
   author of plugin:)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Category Icons] Error with WordPress v3.5](https://wordpress.org/support/topic/error-with-v35-of-wordpress/)
 *  [joynic](https://wordpress.org/support/users/joynic/)
 * (@joynic)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/error-with-v35-of-wordpress/#post-3302306)
 * this is my solution…it works perfect…
 * in category_icons.php
 * on line 1047
 * from:
 * $wpdb->query($wpdb->prepare(“CREATE TABLE IF NOT EXISTS $wpdb->ig_caticons (cat_id
   INT NOT NULL ,priority INT NOT NULL ,icon TEXT NOT NULL ,small_icon TEXT NOT 
   NULL , PRIMARY KEY ( cat_id ))”));
 * to:
 * $wpdb->query($wpdb->prepare(“CREATE TABLE IF NOT EXISTS %s (cat_id INT NOT NULL,
   priority INT NOT NULL ,icon TEXT NOT NULL ,small_icon TEXT NOT NULL , PRIMARY
   KEY ( cat_id ))”, $wpdb->ig_caticons));
 * on line 1338
 * from:
 * $datas = $wpdb->get_results($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon
   FROM $wpdb->ig_caticons”));
 * to:
 * $datas = $wpdb->get_results($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon
   FROM $wpdb->ig_caticons”, $result));
 * on line 1360
 * from:
 * if ($row = $wpdb->get_row($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon
   FROM $wpdb->ig_caticons WHERE cat_id IN($instr) ORDER BY priority DESC LIMIT 
   1”)))
 * to:
 * if ($row = $wpdb->get_row($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon
   FROM $wpdb->ig_caticons WHERE cat_id IN($instr) ORDER BY priority DESC LIMIT 
   1”,0)))

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