Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

UserAward

123457

Comments

  • Options
    Also, I put a space in line 115 before the img tag:

    115: $imagereturn .= ' <img src="extensions/

    Otherwise, the awards tend to scrunch up against the User Name.
  • Options
    I'm not sure what you were trying to do here, but if I change line 112:
    (Now I know, you were trying to use the sort order from the Settings screen...)

    112: $AwardID = indexOf($Awards->UserAward[$CommentID]["Award"][$award], $this->Context->UserAwardAwards['ID']);

    to

    112: $AwardID = $this->Context->UserAwardAwards['ID'][$award];

    Everything started working. It's possible that I'm massively oversimplifying, but it went and printed out the multiple Awards and their proper titles with no issue. (I thought I saw an issue, but I think it was due to the sort issue for the awards, where re-sorting the awards mixes up the IDs.)
  • Options
    Thanks for your hard work.

    It's late in the day here so I'll have to leave any update until tomorrow. The main problem seems to be sorting awards more than once without refreshing the settings.php page.
  • Options
    Uploaded version 1.2 of UserAward.
  • Options
    Working beautifully! Thank you! I already have 40 icons that I'm using to "Award" championships and denote user roles on my site.

    If you ever need suggestions for small tweaks to the extension, let me know, I'm grateful for your work.
  • Options
    Hi I am getting this error and I tried the fix from bmw but i still get the error Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/phoenix2/public_html/extensions/UserAward/conf/settings.php on line 50 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/phoenix2/public_html/extensions/UserAward/conf/settings.php on line 51 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/phoenix2/public_html/extensions/UserAward/conf/settings.php on line 55
  • Options
    Are you using version 1.2?
  • Options
    yes i have version 1.2 of the user award, i just disabled it till i can find a fix. The error only shows up when you are not logged in.
  • Options
    I'm not able to reproduce this problem when logged in or out.
    Anyone else getting this problem?

    Might be a clash with another extension.
  • Options
    I actually put the user award in first before all other extensions thinking the same thing and still got the error. No biggie probably something wrong with my freebie host or something.
  • Options
    I can reproduce this error. I am getting the warnings
    Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/devel/svn/vanilla/extensions/UserAward/conf/settings.php on line 50
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/devel/svn/vanilla/extensions/UserAward/conf/settings.php on line 51
    Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/devel/svn/vanilla/extensions/UserAward/conf/settings.php on line 55
    I get these warnings only when logged off and when calling people.php.
    Any other page is working quite fine.

    I am using
    Vanilla 1.1.4
    UserAward 1.2
  • Options
    I too can reproduce the error that Jkrogma and Spiral have. I turned off all of my extensions one at a time to check for compatibility issues, but gives me this output when it's the only one active as well. It is not crippling, it just looks weird...
  • Options
    I get the same error. On the sign in page, when I log off, and on the guest page. When people log in it is fine.
  • Options
    Uploaded version 1.3 of UserAward.
  • Options
    I think the latest version (1.3) fixes the above database error. Can't be sure though as I have not been able to reproduce the error - please let me know if not.
  • Options
    is the new version using the available framework database functions?
  • Options
    Uploaded version 1.4 of UserAward.
  • Options
    @miquel - Does now :)

    Not sure that was the problem though as it was using the same code used by several other extensions for checking if a field exists.
  • Options
    The downloaded links to the wrong file! I got UserGift instead of UserAward??
  • Options
    Uploaded version 1.4 of UserAward.
Sign In or Register to comment.