Results 1 to 5 of 5

Daystats-Hack problem with RC6

This is a discussion on Daystats-Hack problem with RC6 within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Hello, I have a little problem using vBSEO RC 6 with the following hack: Code: // ##### BEGIN New Threads ...

  1. #1
    Senior Member Array Silmarillion's Avatar
    Real Name
    Christian
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    414
    Liked
    1 times

    Arrow Daystats-Hack problem with RC6

    Hello,

    I have a little problem using vBSEO RC 6 with the following hack:

    Code:
    	// ##### BEGIN New Threads #####
    	$dstatstarttime = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
    	$todaythreads = $DB_site->query_first("
    		SELECT COUNT(*) AS count
    		FROM " . TABLE_PREFIX . "thread AS thread
    		WHERE dateline >= $dstatstarttime
    		AND thread.forumid IN(" . implode(', ', $dstatforumids) . ")
    		AND thread.visible = '1'
    	");
    	eval('$threadstoday .= "' . (vb_number_format($todaythreads['count'])) . '";');
    	// ##### END New Threads #####
    
    	// ##### BEGIN New Postings #####
    	$todayposts = $DB_site->query_first("
    		SELECT COUNT(*) AS count
    		FROM " . TABLE_PREFIX . "post AS post
    		LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON post.threadid = thread.threadid
    		WHERE post.dateline >= $dstatstarttime
    		AND thread.forumid IN(" . implode(', ', $dstatforumids) . ")
    		AND thread.visible = '1'
    	");
    	eval('$poststoday .= "' . (vb_number_format($todayposts['count'])) . '";');
    	// ##### END New Postings #####
    
    	// ##### BEGIN New Members #####
    	$todayuser = $DB_site->query_first("
    		SELECT COUNT(*) AS count
    		FROM " . TABLE_PREFIX . "user
    		WHERE joindate >= $dstatstarttime
    	");
    	eval('$userstoday .= "' . (vb_number_format($todayuser['count'])) . '";');
    	// ##### END New Members #####
    }

    I get only a New Threads: , New Posts: , New Members:

    No facts any longer. I`m sure ya can fix that problem.

    Yours, Silmarillion
    Last edited by Silmarillion; 08-20-2005 at 02:17 AM.

  2. #2
    Senior Member Array Silmarillion's Avatar
    Real Name
    Christian
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    414
    Liked
    1 times
    btw - only when I am logged in to vBulletin-ACP I am able to see the statistic. Without using vBSEO this hack works fine.

    Yours, Silmarillion

  3. #3
    Senior Member Array Silmarillion's Avatar
    Real Name
    Christian
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    414
    Liked
    1 times

    Exclamation

    Next one: my Top-X-Threads Hack isn`t working any more.

    EDIT: Got this one (Top -X Threads) working. Added this Code to the Top of the Template:

    Code:
    if (THIS_SCRIPT == 'index')
    {
    	$dstatforumids = array_keys($forumcache);
    	foreach ($dstatforumids AS $key => $dstatforumid)
    	{
    		$dstatfperms = &$bbuserinfo['forumpermissions']["$dstatforumid"];
    		$dstatforum = &$forumcache["$forumid"];
    		if (!($dstatfperms & CANVIEW) OR !($dstatfperms & CANSEARCH) OR !verify_forum_password($dstatforumid, $dstatforum['password'], false))
    		{
    			unset($dstatforumids["$key"]);
    		}
    	}
    	$dstatforumids[] = 0;
    There`s only one problem with the Daystats-Hack. Now the Statistic looks like that: New Threads: 0, New Posts:0 , New Members:0
    Last edited by Silmarillion; 08-20-2005 at 03:02 AM.

  4. #4
    Senior Member Array Silmarillion's Avatar
    Real Name
    Christian
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    414
    Liked
    1 times
    Problem fixed!

    Thread can be closed.

    Yours, Silmarillion

  5. #5
    vBSEO Staff Array Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,277
    Liked
    612 times
    Confirmed - Issue with encription system. Solved

Similar Threads

  1. Problem with Colors Forum Tiles
    By rayzor in forum Pre-Sales Questions
    Replies: 2
    Last Post: 04-03-2006, 03:20 AM
  2. Redirection problem!
    By poprulz in forum Troubleshooting
    Replies: 9
    Last Post: 03-10-2006, 05:50 PM
  3. Can someone put out a fix for vbseo to work with this hack?
    By profound in forum General Discussion
    Replies: 1
    Last Post: 02-09-2006, 04:12 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
  •