Pete
Forum Replies Created
-
Forum: Hacks
In reply to: Not found jquery-1.6.3.min.jsAvast is reporting http://www.jqueryc.com/ as being infected with malware. If you have a Free theme or plugin which is showing this error do the following.
Using Total Commander on windows or grep in Linux search your theme folder for “http://www.jqueryc.com/”
Mine was located in a rogue post.php file within my template. This post.php file was included from my themes functions.php. Compared with a clean version I simply removed the include entry in functions.php and deleted post.php which was located in a deep folder within the theme.
It’s probably not the same for everyone so the best thing to do is search using grep, or total commander for the string “jqueryc” or similar to find which file is calling that malware, then search for the name of the file which contained the rogue URL, and determine how it’s being called in your theme or plugin to clean/fix it.
Forum: Plugins
In reply to: [Category Icons] [Plugin: Category Icons] Icons not appearingThanks i’ll go over their functions and your suggestions and let you know what works. If I don’t have any luck getting it to work i’ll post in their support forum and link to this thread to see what their devs can come up with.
Forum: Plugins
In reply to: [Category Icons] [Plugin: Category Icons] Icons not appearingHere’s a web cast showing what i’ve done so far
The wp list category function I have in archive.php is used to display an un ordered list of children categories.
That’s the code the template tag page is telling me to replace but that only has to do with the sub categories list.
I need to place the category icon over my post featured images. I have the CSS setup correctly and the php code placed correctly so I don’t know why it’s not working.
Really appreciate the help thanks a lot
Forum: Plugins
In reply to: [Category Icons] [Plugin: Category Icons] Icons not appearingI use Chrome developer tool. Placing the php function there doesn’t work either and shouldn’t make ad difference between my current location. Since it’s still within the post. I have it overlayed on the featured image.
The featured image div has it’s position set to relative, the category icon set to absolute. Viewing the source in chrome developer tool nothing renders on the page. Yet if I use the same code to display the icon in single.php it works just fine.
Forum: Plugins
In reply to: [Category Icons] [Plugin: Category Icons] Icons not appearingI replaced the code it told me to on the template tags panel same line and column I don’t think it’s accounting for the variable. Haven’t had trouble with this plugin before. On this same install if I place
<?php if (function_exists('get_cat_icon')) get_cat_icon(); ?>into single.php it works just fine.Forum: Plugins
In reply to: [Category Icons] [Plugin: Category Icons] Icons not appearingI think I know what part of the problem is. That function above is only being used to display an un ordered list of sub-categories. These don’t have icons.
On the category page that is listing all the posts within that category I placed
<div class="caticon"><?php if (function_exists('get_cat_icon')) get_cat_icon(); ?></div>within the post loop. It should be displaying an icon over each posts featured image. The CSS is correct that’s not the problem here’s the complete code for the page. You’ll see where I have<?php if (function_exists('get_cat_icon')) get_cat_icon(); ?>when the page loads that div is completely empty. Where else should I be placing the put_cat_icons function?<?php get_header(); ?> <!-- Maps Module --> <?php if (get_option('woo_show_archive_map') == 'true') { include (TEMPLATEPATH . "/includes/featured-archive.php"); } else {?><div class="spacer"></div><?php } ?> <!-- Maps Module end --> <div id="content" class="col-full"> <div id="main" class="col-left"> <?php if (have_posts()) : $count = 0; ?> <?php if (is_category()) { ?> <span class="archive_header"><span class="fl cat"><?php _e('Golf Courses', 'woothemes'); ?> | <?php echo single_cat_title(); ?></span> <span class="fr catrss"><?php $cat_obj = $wp_query->get_queried_object(); $cat_id = $cat_obj->cat_ID; echo '<a href="'; get_category_rss_link(true, $cat, ''); echo '">RSS feed for this section</a>'; ?></span></span> <?php // list child categories $catlist = wp_list_categories('echo=0&orderby=id&show_count=1&title_li=&child_of=' . $cat_id); if ($catlist) { echo '<ul class="subcatstate">'. $catlist .'</ul>'; } else { echo "Please don't print No categories"; } ?> <?php } elseif (is_day()) { ?> <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time(get_option('date_format')); ?></span> <?php } elseif (is_month()) { ?> <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('F, Y'); ?></span> <?php } elseif (is_year()) { ?> <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('Y'); ?></span> <?php } elseif (is_author()) { ?> <span class="archive_header"><?php _e('Archive by Author', 'woothemes'); ?></span> <?php } elseif (is_tag()) { ?> <span class="archive_header"><?php _e('Tag Archives:', 'woothemes'); ?> <?php echo single_tag_title('', true); ?></span> <?php } ?> <div class="fix"></div> <div id="posts_outer"> <?php while (have_posts()) : the_post(); $count++; ?> <!-- Post Starts --> <div class="post"> <?php $img_missing = false; if (woo_image('return=true&key=image')) { ?> <div class="image-holder <?php echo $GLOBALS['thumb_align']; ?>" style="width:<?php echo $GLOBALS['thumb_w']; ?>px"> <?php woo_get_image('image',$GLOBALS['thumb_w'],$GLOBALS['thumb_h'],'thumbnail '.$GLOBALS['thumb_align']); ?> <div class="fix"></div> <?php if(function_exists('the_ratings')) { echo '<div class="ratings fl">'; the_ratings(); echo '</div>'; } ?> <div class="caticon"><?php if (function_exists('get_cat_icon')) get_cat_icon(); ?></div> </div> <?php } else { $img_missing = true; } ?> <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <p class="post-meta"> <span class="comments"><?php comments_popup_link(__('0 Comments', 'woothemes'), __('1 Comments', 'woothemes'), __('% Comments', 'woothemes')); ?></span> </p> <?php if($img_missing == true) { if(function_exists('the_ratings')) { echo '<div class="ratings fl">'; the_ratings(); echo '</div>'; } ?> <p class="categories"><span class="post-category"><?php the_category(' ') ?></span></p> <?php }?> <div class="entry"> <?php the_excerpt(); ?> </div> <div class="cat-course-info"> <p><span class="ci-par">Par: <?php the_field('par');?></span><span>Metres: <?php the_field('metres');?></span><span>ACR: <?php the_field('acr');?></span></p> </div> <div class="fix"></div> </div><!-- Post Ends --> <?php endwhile; ?> </div> <?php else: ?> <div class="post"> <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p> </div><!-- /.post --> <?php endif; ?> <?php woo_pagenav(); ?> </div><!-- /#main --> <?php get_sidebar(); ?> </div><!-- /#content --> <?php get_footer(); ?>Forum: Plugins
In reply to: [Category Icons] [Plugin: Category Icons] Icons not appearingApparently I can’t do that in PHP but that function isn’t working either. I use it to display a list of children categories. This is the entire code below. When I update the function it displays the children categories as well as the string “Please don’t porint Not categories” so something is wrong. The icons still do not show up either using that function. I can’t use a widget I need the icons in the template. I’ve done it before just never in an archive.php template.
<?php // list child categories $catlist = wp_list_categories('echo=0&orderby=id&show_count=1&title_li=&child_of=' . $cat_id); if ($catlist) { echo '<ul class="subcatstate">'. $catlist .'</ul>'; } else { echo "Please don't print No categories"; } ?>Forum: Plugins
In reply to: [Category Icons] [Plugin: Category Icons] Icons not appearingI saw on my template tag page I need to replace a function in archive.php which I have but I get a syntax error
$catlist = if (function_exists('put_cat_icons')) { put_cat_icons( wp_list_categories('echo=0&orderby=id&show_count=1&title_li=&child_of=' . $cat_id.'&echo=0')); } else { wp_list_categories('echo=0&orderby=id&show_count=1&title_li=&child_of=' . $cat_id);}The code it’s telling me to replace is after the
=sign. If I remove the variable$catlist =the function has no syntax errors. What’s the problem in the code?Thanks jinoOM, today I actually removed BWP and installed WP reCaptcha, also removed the BMP CF7 extension and used the regular reCaptcah extension. It’s working now but you’re code looks like it would also do just fine. Thanks again
Also if I uncheck all options for Hide the CAPTCHA for, and make it display for me as an Admin it then works. So the problem has to do with the captcha being hidden.
I’m getting this error “Validation errors occurred. Please confirm the fields and submit it again.” while I am logged in as Admin and the captcha is not displayed. From a private browser I see the captcha and it works and validates. If I remove the captcha shortcode from the contact form it works. What is the problem when I am logged in with validation?
I resolved this by removing all quotes from the do_shortcode code and the working code is below
<div> <?php $lat = get_field('woo_maps_lat'); $long = get_field('woo_maps_long'); echo do_shortcode('[forecast location=' . $lat .','.$long. ']'); ?> </div>Is there an pure PHP function I can use other than the shortcode [forcast]
Did you get this working?
Hi, thanks for replying. I actually resolved this by modifying the plugin to use get_permalink(); in place of the original function that got the URL. This worked out perfectly and might be a better function in my opinion than getting the post ID dynamic URL.