Results 1 to 7 of 7

Statistics/counter question!

This is a discussion on Statistics/counter question! within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, bought vBSEO yesterday, took 5 minutes to install, a few minutes to customize, this is a really smooth working ...

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    Liked
    0 times

    Question Statistics/counter question!

    Hi,

    bought vBSEO yesterday, took 5 minutes to install, a few minutes to customize, this is a really smooth working product

    Now my question:
    We use a lot of rewrites throughout our entire site and those rewrites also show up in our statistics script (SlimStat), which is a very very practical thing.

    (instead of some anonymous php pages with some variables you instantly see by the url what page someone was looking at, for example "/artikel/technik/battlemixer-stanton-sa-5/232.htm")

    I noticed, that vBSEO doesnīt do that. Forum-Pages still show up as - for example "/forum/showthread.php?t=10854".

    Is there a way to change that behaviour and also see the rewritten urls in our stats package?

    Thanks in advance,
    Gerald

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello Gerald,

    some other statisctics analyzers (such as Google Analytics) are working automatically with vBSEO URLs, but for this script small modification is required:

    in inc.stats.php file
    FIND:
    $stat["resource"] = SlimStat::my_esc( $_SERVER["REQUEST_URI"] );
    REPLACE WITH:
    $stat["resource"] = SlimStat::my_esc( $_SERVER['VBSEO_URI'] ? $_SERVER['VBSEO_URI'] : $_SERVER["REQUEST_URI"] );
    That should work
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    Liked
    0 times
    Works like a charm, you even support 3rd party products

    Thanks very much, it _is_ much more useful

    Greets,
    Gerald

  4. #4
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    Liked
    0 times
    Oops, one more similar question:

    On our homepage (hiphop.at), i output the latest posts. This is done with a variant of the external.php, which uses the following code:

    PHP Code:
        // ---------------------------------------------------
        // FUNCTION: output_NewestReplies
        // DETAIL:   Outputs X newest threads ordered by
            //           last post descending. $a
        //           specifies amount to show (Default 5)
            //           and $f can specify certain forums
        //           to grab from (1,3,4), by default it pulls
            //           from all forums.
        // ---------------------------------------------------

        
    function output_NewestReplies($a 5,$f ""){
        global 
    $db$Data;

        
    // Define amount to show
        
    $Amount = ($a)? intval($a) : 5;

        
    // Define Forum(s) To Pull From
        
    $Forums = ($f)? $f'';
        
    $SQL    '';

            if(
    $Forums){
            
    $SQL " where forumid NOT in({$Forums}) and open != '10'";
            }

        
    // Load Template
        
    $Template LoadTemplate("newest_threads.html");

        
    // Collect Data
        
    $NewestReplies $db->query("select * from ".TABLE_PREFIX."thread{$SQL} order by lastpost desc limit 0,$Amount");

            while(
    $Thread $db->fetch_array($NewestReplies)){
            
    $Data .= ParseTemplate($Template,
                                array(
                                    
    'threadid'     => $Thread['threadid'],
                                    
    'threadname'   => $Thread['title'],
                                    
    'postuserid'   => $Thread['postuserid'],
                                    
    'postusername' => $Thread['postusername'],
                                    
    'replies'      => vb_number_format($Thread['replycount']),
                                    
    'views'        => vb_number_format($Thread['views']),
                                    
    'lastposter'   => $Thread['lastposter'],
                                    
    'date'     => $Thread['dateline'],
                                    
    'time'     => vbdate($vbulletin->options['timeformat'], $Thread['dateline']),  
                                )
                );
            }

        
    doOutput();
        } 
    and a HTML template, which just outputs
    HTML Code:
    <a href='{url}/showthread.php?t={threadid}&goto=lastpost'>{threadname}</a><br />
    Is it possible to also use vBSEO URLs there?

    Thanks again and in advance :-)
    Gerald

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You can use special vBSEO functions for that: vBSEO Functions for Extensibility

    Basically, this code may help:
    if(@include_once('includes/functions_vbseo.php'))
    $output = make_crawlable($output);
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    Liked
    0 times
    Thanks again!
    I couldnīt get it to work with your function, but with a combination of the linked functions it now works like a charm!

    Greets,
    Gerald

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Great!
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Google Analytics question regarding 2.4.0.
    By mc3000 in forum General Discussion
    Replies: 8
    Last Post: 04-06-2006, 11:17 PM
  2. Last question
    By KevinVo in forum Pre-Sales Questions
    Replies: 2
    Last Post: 02-10-2006, 04:31 PM
  3. Two question
    By Bridges in forum Troubleshooting
    Replies: 1
    Last Post: 12-16-2005, 11:54 AM
  4. Quick Question
    By Amos in forum General Discussion
    Replies: 3
    Last Post: 10-11-2005, 10:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •