Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorSCHIZO
    • CommentTimeJun 7th 2008 edited
     # 101
    Bug: username with ' sample ol'chous generate цarning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /.../extensions/Statistics/default.php on line 192
    • CommentAuthorfuge
    • CommentTimeJun 13th 2008
     # 102
    "Newest User" displays correctly but links incorrectly, it goes back to your profile instead of the newest user.
    •  
      CommentAuthorResilient
    • CommentTimeJun 14th 2008
     # 103
    I had that same problem with this extension installed. Is there any fix for this?
    • CommentAuthorfuge
    • CommentTimeJun 15th 2008
     # 104
    Not that I know of, I'm looking for one as well.
    • CommentAuthorlittle_peet
    • CommentTimeJun 23rd 2008 edited
     # 105
    The solution to the missing link on the new user link is very simpel.

    Just open the default.php from your \extention\statistics page and scroll down to the "function GetUserLink($Username) {"
    aprox line 192

    between the line that says "function GetUserLink($Username) {" and "$USER_TABLE = (isset($this->Context->DatabaseTables['User']))"......
    add the following:

    $Username=trim($Username);


    So your lines should look like:

    function GetUserLink($Username) {

    $Username=trim($Username);

    $USER_TABLE = (isset($this->Context->DatabaseTables['User'])) ? $this->Context->DatabaseTables['User'] : $Context->DatabaseTables['User'];



    This should do the trick.
    • CommentAuthordionhall85
    • CommentTimeJun 23rd 2008
     # 106
    Bug: username with ' sample ol'chous generate цarning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /.../extensions/Statistics/default.php on line 192

    I'm having the same problem. I had to turn the addon off. is there a fix for this? Thanks for your help this is a great addon!
    •  
      CommentAuthorWanderer
    • CommentTimeJun 24th 2008
     # 107
    Would this be caused by the apostrophe?

    Posted: Tuesday, 24 June 2008 at 5:02PM

    • CommentAuthordionhall85
    • CommentTimeJun 24th 2008
     # 108
    Yes It is.
  1.  # 109
    replace the line "$Username=trim($Username);" in my previous bug fix with


    $Username=mysql_escape_string(trim($Username));


    I think that will fix the bug with the apostrophe, and the userlink!
    • CommentAuthordionhall85
    • CommentTimeJun 25th 2008
     # 110
    That Fixed it! Thanks for your help! This is a great add-on! My users love it!
    • CommentAuthoreugen
    • CommentTimeAug 18th 2008
     # 111
    Vincent:

    If you bring an update pls dont forget to update the "Version: 0.4.6" in "default.php"

    else the update routine will not check that the newest version is installed and will ask anytime to get the latest.
    • CommentAuthoriamspammer
    • CommentTimeAug 19th 2008
     # 112
    I just updated this extension but it still says 0.4.5 in default.php.

    I thought I should let you know


    And thanks for "trim()" fix. it took me half an hour to figure out the error in the code. I came here to comment but it was already being discussed.

    BTW Thanks for this extension
Add your comments
    Username Password
  • Format comments as