I'm in the process of testing this module and I've noticed it counts posts submitted by guests. It also display the post count for guests as well.

How can I prevent both from happening?

Thanks for your help and time.

Comments

CompShack’s picture

I have figured out a way to not display post count and date joined for Guests. I placed this code in my comment.tpl.php - Cheers!

<?php  if ($comment->uid){ ?>
      <strong>Posts: </strong> <?php print user_stats_get_stats('post_count', $comment->uid);?>
      <br /> <strong>Join date: </strong> <?php print format_date(user_stats_get_stats('join_date', $comment->uid), 'custom', 'm/d/y');?>
<?php } ?>

Liam, I know you've moved your site from VB to drupal. Only one question if I could please. Have you noticed any change in traffic due to the switch? More traffic maybe?

Thanks for the module!

CompShack’s picture

I have figured out a way to not display post count and date joined for Guests. I placed this code in my comment.tpl.php - Cheers!

<?php  if ($comment->uid){ ?>
      <strong>Posts: </strong> <?php print user_stats_get_stats('post_count', $comment->uid);?>
      <br /> <strong>Join date: </strong> <?php print format_date(user_stats_get_stats('join_date', $comment->uid), 'custom', 'm/d/y');?>
<?php } ?>

Liam, I know you've moved your site from VB to drupal. Only one question if I could please. Have you noticed any change in traffic due to the switch? More traffic maybe?

Thanks for the module!

liam mcdermott’s picture

*sigh* I added your request into the documentation I've written, but it hasn't been published yet (don't ask, the reasons are boring and complicated!), I was waiting for that, and was just going to reply to this request with a link. Glad you worked it out though. :)

Liam, I know you've moved your site from VB to drupal. Only one question if I could please. Have you noticed any change in traffic due to the switch? More traffic maybe?

Yes, more traffic from search engines, a lot more. Also having a sexy, table-less design is getting us attention from Stumbleupon users. Unfortunately last month I made a horrible error in setting our XML Sitemap to submit every time there was a change though: that got our search engine traffic down to vBulletin levels again. It's recovering this month, and it was totally my fault, just remember to not check that box yourself, it'll get you penalised in Google and Yahoo! :)

The previous month to my cock-up we saw a doubling of the number of people referred from Google and Yahoo. That's also considering that Google is still re-indexing our site. So we're doing well.

One other thing you should consider: if you're using vBulletin, are you also using vBSEO as well? It may well not be worth your while to switch if you are. We also lost a number of members becuase they weren't prepared to change away from the software they were familiar with. We knew that would happen and didn't care so much about those users because we knew we'd get more from the search engines.

We basically did an Apple, we'd reached rock bottom and the only way to re-invent ourselves is with Drupal. Suprisingly the next problem we faced was with performance, Drupal is on a dedicated server and it's still slow on certain pages (front page and Views). vBulletin never had that problem, however I am 99% certain the entire cause is this issue: #148849: Refactor {comment_entity_statistics} into performant Field You might want to hold off moving to Drupal until that is fixed.

Hope this helps. :)

liam mcdermott’s picture

Status: Active » Fixed
CompShack’s picture

Unfortunately last month I made a horrible error in setting our XML Sitemap to submit every time there was a change though: that got our search engine traffic down to vBulletin levels again.

I have that turned on as well - Its off now, thanks for the tip. I left it on for "Submit site map on cron run" though!

if you're using vBulletin, are you also using vBSEO as well? It may well not be worth your while to switch if you are.

Well, I'm using Drupal forum for now. I launched my site the 2nd half of Dec of 2007 and was considering VB until I read your post. I am however might switch to VB with vBSEO down the road. The site is picking up very fast which brings another question your you. You have mentioned that you are using a dedicated server for your site, can you recommend any hosting companies to use? Due to the increase traffic I'm having on my site, its start to run pretty slow. Any advice would be appreciated.

Thanks again Liam, I know your very busy and I appreciate your time. Take care.

liam mcdermott’s picture

You have mentioned that you are using a dedicated server for your site, can you recommend any hosting companies to use?

Anyone but names.co.uk they want to charge us a fortune, on top of the existing fortune they're already charging us every month, to upgrade the server to PHP5. They already charge us £120 per month for managing the server, and want to charge another £200 for upgrading.

Have got an account with VPSVille now, we haven't moved hosting over, and they seem to be quite a new company, but if you know what you're doing with Linux, they seem a good choice. Just got an e-mail from them the other day saying that they're moving all their servers onto tier one connections (no extra charge), so they must be doing alright. If you're on shared hosting now, a VPS would be the next logical step up.

Plus, having root access, I can install an opcode cache and memcached to lower the number of database queries. Can't do that on our current server as the hosts would charge us to perform the work.

Anyway, I'm off on holiday for a couple of weeks now. Have fun and I wouldn't move to vBulletin if you're already on Drupal, in many ways vBulletin sucks. :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.