Site Stats - External Website Statistics

Register an Account
Reply
 
Thread Tools
Site Stats - External Website Statistics
Developed by Yankidank Yankidank is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page
Designed for: Pligg 1.0.1
License: Creative Commons Attribution-Noncommercial-Share
Released: 08-20-2009
Last Update: 08-27-2009
Installs: 15
Uses Module System
Template Edits Not Required
Can Reuse Source Code
Translations Accepted
Uses Third Party Websites
Not Supported by Author
Download Certified
Quick Note: This module shows stats about other sites, it does not collect or display statistics about your own Pligg site.

This module requires cURL to connect to 3 separate websites to gather stats about the sites that stories are linked to on your site. If a story set up a source URL in step 1 of submission this module will activate and display the stats listed below on the story page. See the attached screenshot for a demonstration of what the stats block looks like.
  • Google Pagerank - This stat will sometimes return a negative number or no result, in that case it is hidden from view
  • Alexa Rank
  • Domain creation date, according to Alexa.com
  • Number of Google indexed pages
  • Number of Incoming links, according to Google
  • Estimated unique visitors a month, according to Compete.com
  • Estimated total visits a month, according to Compete.com
This module will automatically embed itself into the story page and float to the right of the story content area. Edit the /templates/style.css file for this module to adjust the positioning or site_stats_init.php to use another module hook.

One last note is that this module WILL SLOW the load time of your story pages. There is no caching built into this module, so every time that the a page is requested that uses this module (the story page) it tries to connect to 3 different websites for the statistics. For best results you should either remove some portions of this module to reduce the number of pages it connects to, or you could build a cache feature so that it doesn't need to request stats on every page load.

Download Now

File Type: zip site_stats_v0.2.zip (7.8 KB, 381 views)

Screenshots

File Type: png site_stats.png (3.3 KB, 698 views)

License Agreement

Creative Commons Attribution-Noncommercial-Share Alike License
You are free to Share and Remix this work under the following conditions: You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
You may not use this work for commercial purposes.
If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Show Your Support

  • If you like this download support the author by donating.
  • This download may not be copied, reproduced or published elsewhere without author's permission.

Similar Downloads
Download Developer Category Replies Last Post

Comments
  #2 (permalink)  
Old 08-20-2009, 02:22 PM
Runnertalk's Avatar
Casual Pligger/Designer
Pligg Version: 1.0
Pligg Template: pliggmeme
 
Join Date: Aug 2009
Location: Sweden
Posts: 50
Looks intresting. Thank you for this.
Reply With Quote
  #3 (permalink)  
Old 08-27-2009, 03:03 AM
Katryne's Avatar
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie modif.
 
Join Date: Jul 2009
Location: France
Posts: 31
Hello !

I will try to attach a french lang.conf file.

I have 2 questions : how can I cope with French accentuated letters ? They just cannot be displayed and I have to translate "indexed" by "indexees" instead of "indexées".

Second question is about stats by cCompete : when Compete cannot find any stats for the site, instead of "no data found for the site", I get a huge error message, for instance :

Quote:
Classement 4,307,710 sur Alexa.com

517 pages indexees par Google

38 liens entrant - estimation

-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> // must be included before jquery var $j = jQuery.noConflict(); // compete.com urls var media_host = 'http://media.compete.com'; // subdomains var snapshot_site = 'http://siteanalytics.compete.com' var main_site = 'http://www.compete.com' var member_site = 'https://my.compete.com' var reftools_site = 'http://referralanalytics.compete.com' var searchtools_site = 'http://searchanalytics.compete.com' var toolbar_site = 'http://tools.compete.com' // ! TODO: add try_catch block *INSIDE* function() {} $j(document).ready(function() { // site search generate_search_dropdown("site_profiles"); update_login_logout_link(); master_load(); // Apply transparency effect to PNGs for IE6 $j('body').supersleight({ shim: '/site_media/images/transparent.gif' }); }); div.ui-dialog div.popup-help-dialog span.definition { font-weight: bold; font-size: 1.2em; color: #333333; } Site Profile Error | Compete register visiteurs uniques mensuels - estimation
Attached Files
File Type: conf lang.conf (456 Bytes, 10 views)
Reply With Quote
  #4 (permalink)  
Old 08-27-2009, 10:27 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Quote:
Originally Posted by Katryne View Post
Hello !I have 2 questions : how can I cope with French accentuated letters ? They just cannot be displayed and I have to translate "indexed" by "indexees" instead of "indexées".
When translating a module file to another language you should append your language to the lang.conf file name. So in this case I've renamed your file to lang_french.conf. This way if a site has set their language to "French" it will automatically use this langauge file for this particular module.

Thanks your your contribution, I had to convert the document to UTF-8 to allow for accent characters to be saved. I attached the language file to this post, you can try to re-download it and make any corrections concerning those character accents that you were not able to add before.

I've fixed the bug caused by sites that don't have any data from Compete.com. Please download version 0.2.
Attached Files
File Type: conf lang_french.conf (460 Bytes, 15 views)

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!

Last edited by Yankidank; 08-27-2009 at 10:48 AM.
Reply With Quote
  #5 (permalink)  
Old 08-27-2009, 10:56 AM
Katryne's Avatar
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie modif.
 
Join Date: Jul 2009
Location: France
Posts: 31
Well, my Pligg does not like the renaming of the lang file. Maybe because I did not set correctly beforehand the language to be used. If I let the name of the lang file being : lang_french.conf, here is what I can see below every story title :

Quote:
Warning: filemtime() [function.filemtime]: stat failed for ././modules/site_stats/lang.conf in /homepages/18/.../htdocs/diggg/internal/template.config_loader.php on line 25
If I set the name back to lang.conf, everything is OK and I get all the é and the è that I want.

Can you explain to me how you can "convert the document to UTF-8" ? I have a similar problem with an other module and I'd like to solve it.

Last edited by Katryne; 08-27-2009 at 11:02 AM.
Reply With Quote
  #6 (permalink)  
Old 08-27-2009, 11:26 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
I use Notepad ++ for editing documents. Below is a screenshot for setting the document to UTF-8. If a document is already encoded as UTF-8 you shouldn't have a problem. My attached document should read as UTF-8 so you should be able to write those accents using it.

Make sure that your language file is /languages/lang_french.conf and that you set the site language to 'french' at Admin > Configure > Misc > Site Language. Then clear your template cache.
Attached Images
File Type: png notepad-plus-encode-utf.png (3.9 KB, 28 views)

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #7 (permalink)  
Old 08-27-2009, 11:37 AM
Katryne's Avatar
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie modif.
 
Join Date: Jul 2009
Location: France
Posts: 31
I just tried the new version 0.2 and i still have the problem with Compete.

And I confirm that my Pligg cannot display correctly if I do not delete the original lang.conf and rename the lang_french.conf to lang.conf.
here is the error message that I get otherwise :
Quote:
Warning: file_get_contents(././modules/site_stats/lang.conf) [function.file-get-contents]: failed to open stream: No such file or directory in /homepages/18/.../htdocs/diggg/class.config.php on line 49
Could not open ././modules/site_stats/lang.conf
Thanks for being so quick to react : I can hardly follow your modifications ...
Reply With Quote
  #8 (permalink)  
Old 08-27-2009, 11:47 AM
Katryne's Avatar
Casual Pligger
Pligg Version: 1.0
Pligg Template: Wistie modif.
 
Join Date: Jul 2009
Location: France
Posts: 31
Quote:
Make sure that your language file is /languages/lang_french.conf and that you set the site language to 'french' at Admin > Configure > Misc > Site Language. Then clear your template cache.
I hat already done all that. Everything is OK just as you write it. My lang file is indeed lang_french.conf, and the site language was already settled to french in site language and I just hammered on my keyboard several times to clear the the template cache. And still the lang_french.conf does not work.

Thank you for the notepad trick. I use the soft and had noticed the command, but never used it.
Reply With Quote
  #9 (permalink)  
Old 08-27-2009, 06:05 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
I tested the language switch myself so I know it works as long as you do as I described. I may not have been clear on this, but you don't need to rename the lang_french.conf language file for the module. So to demonstrate there should be a file /modules/site_stats/lang_french.conf. Then if your site is set to "french" it should automatically grab that file. And as I mentioned in an earlier post you will have to clear your template cache before it will show any changes.

I also can't reproduce the original problem that you reported. After I updated the module to 0.2 it fixed all errors caused by Compete.com.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #10 (permalink)  
Old 09-07-2009, 09:51 AM
New Pligger
 
Join Date: Sep 2009
Posts: 1
This stuff could have been really valuable, but the problem is that it is based on compete.com informations, which is far from reality -( i used it for a long time but couldn't go for long and switched to semrush and keywordspy. btw guys from semrush also have addon like the one in this topic, called seoquake.. pretty useful one
Reply With Quote
Reply

Tags
alexa, google, module, pagerank, statistics, stats

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
TIP: Do NOT Submit Your Site To Pligg Directories coreyvf Questions and Comments 14 12-30-2011 08:10 AM
Some ideas to build a Pligg site Divisive Cotton Questions and Comments 22 10-22-2009 11:46 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development