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.
    •  
      CommentAuthorHamed
    • CommentTimeApr 1st 2008
     # 101
    hey
    umm how would i edit this to make it UserGifts?
    i think that might be kinda cool
  1.  # 102
    I'm off on holiday for the next two weeks.
    I'll do a version of UserGifts when I get back.
    •  
      CommentAuthorHamed
    • CommentTimeApr 1st 2008
     # 103
    oh sweetness
    that is soo awesome
    i wanted my members to give each other gifts and stuff
    but i thought it was kinda weird for them to award one another

    for this userGifts, can you make it so that the gifts do not show up next to the users name, only on their account page
    and maybe the user can decide if he or she wants his gists to be public of private
    (you don't have to do that)(but try to make it slightly different than user awards...pretty please)
    anyway awesomely thanks
  2.  # 104
    Thanks again for the flurry of updates, mightymango.
  3.  # 105
    @stavthewonderchicken - thanks, no problems :)

    @hamed
    UserAwards were only ever meant to be awarded by administrators not members.

    Already decided that gifts would only appear on the 'account' page with a notification when a member signs in.
    Only real problem I can see is getting some good graphics for the gifts.
  4.  # 106
    •  
      CommentAuthorHamed
    • CommentTimeApr 3rd 2008
     # 107
    @mightymanga- yeah i realize that it was meant for admin awarding.. but i thought of trying to use it for gift giving...
    • CommentAuthorRusCom
    • CommentTimeApr 3rd 2008
     # 108
    "yeah i realize that it was meant for admin awarding.. but i thought of trying to use it for gift giving..."
    For real, it's gonna be cool to modify ready UserAwards into UserGifts to make 2 different addons. The first will be available only for admins, the second for average users also.
  5.  # 109
    Uploaded version 1.0.2 of UserAward.
    •  
      CommentAuthormightymango
    • CommentTimeApr 4th 2008 edited
     # 110
    Beta version of UserGifts is now available.

    Away for a few days, please leave comments, suggestions, bugs etc. and I'll fix any problems when I get back.
    •  
      CommentAuthorkalikiana
    • CommentTimeApr 6th 2008 edited
     # 111
    mightymango, I'm sorry if my comments came over so unkindly, this was not my intention. I am very grateful for your work, I have daily work as well and so I understand your position.
    It is great that you are continuously improving your extension(s).
    • CommentAuthorbmw
    • CommentTimeApr 10th 2008
     # 112
    Double M!

    This extension is fantastic. I found a minor bug.

    When you Add an Award, if you forget to populate the notes, a message comes up telling you that. However, at that moment, the person receiving the award switches from whomever you selected to yourself.

    example:
    1. Bryan gives award to Garrett
    2. Bryan forgets to populate notes, gets warning message (you can see at this point the user has switched)
    3. Bryan enters notes, award is added to Bryan

    I had two suggestions, one which I mentioned before (I'm waiting for the day that I can hack it, or you figure out how to do it) :)
    1. When you display the Award Icons, wrap it in a tag with a title parameter set to the notes or the name of the award
    2. Show all awards in the Comments, rather than just one of the awards

    Thanks for considering
  6.  # 113
    Thanks for your bug report.
    I'll try and post a fix next week and also take a look at your suggestions.
  7.  # 114
    Uploaded version 1.0.3 of UserAward.
  8.  # 115
    @bmw:

    I've fixed the problem you were having.
    Like your idea of adding a 'title' tag to the award. I'll try and include it in the next update.
    Showing more than one award on the 'Comments' page will need a fair bit of a rewrite. I know it needs doing, I'll try to get it done as soon as possible.
  9.  # 116
    I already translated to portuguese, there is the link for download: http://www.blogtuga.org/?dl_id=37
    • CommentAuthorbmw
    • CommentTimeApr 14th 2008
     # 117
    Danke double-M!

    I'll be watching. One of these days I have to learn Object Oriented PHP myself...
  10.  # 118
    Uploaded version 1.1 of UserAward.
    • CommentAuthorbmw
    • CommentTimeApr 15th 2008
     # 119
    Thank you double-M!

    I get this error, however when I updated to 1.1:

    Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/.batzi/cbabas/cbabaseball.com/board/extensions/UserAward/conf/settings.php on line 50

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/.batzi/cbabas/cbabaseball.com/board/extensions/UserAward/conf/settings.php on line 50

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/.batzi/cbabas/cbabaseball.com/board/extensions/UserAward/conf/settings.php on line 51


    I believe the problem is that line 50 reads:

    $result = mysql_query("SHOW columns FROM ".$Context->Configuration['DATABASE_TABLE_PREFIX']."UserAward like 'SortOrder'");


    But it should read:
    $result = mysql_query("SHOW columns FROM ".$Context->Configuration['DATABASE_TABLE_PREFIX']."UserAward like 'SortOrder'", $Context->Database->Connection);

    Once I did this, I no longer get the errors.
    •  
      CommentAuthormightymango
    • CommentTimeApr 15th 2008 edited
     # 120
    Thanks for the feedback. Not sure what went wrong with that line (it worked when I tested it on my system). Oh well!

    Just noticed a slight problem with the order of awards. I'll try and get this fixed as soon as possible.
    • CommentAuthorbmw
    • CommentTimeApr 15th 2008 edited
     # 121
    Arg! Sorry, my request broke the extension. :)

    Bug I think was introduced in 1.1
    When I have any Awards with an ID > 1, the following error appears for each comment.

    Notice: Undefined index: 2 in /home/.batzi/cbabas/cbabaseball.com/board/extensions/UserAward/default.php on line 112
    Notice: Undefined offset: 0 in /home/.batzi/cbabas/cbabaseball.com/board/extensions/UserAward/default.php on line 113
    Notice: Undefined offset: 0 in /home/.batzi/cbabas/cbabaseball.com/board/extensions/UserAward/default.php on line 114

    If the Award ID is 3, then it will say "Notice: Undefined index: 3"

    Bug I may have been introduced in a prior version
    I also got this on the back end:
    $Context->UserAwardAwards = array (
    'ID' =>
    array (
    1 => 2,
    2 => 2,

    3 => 3,
    ),
    'Title' =>
    array (
    1 => '1998 CBA Champion',
    2 => '1998 FL Champion',
    3 => '1998 UL Champion',
    ),
    'Icon' =>
    array (
    1 => '1.gif',
    2 => '2.gif',
    3 => '3.gif',
    ),
    );

    I think I achieved that by:
    1. Deleting all my current Icons until there was one left.
    2. Adding a new Icon (which must have then had an ID of 2)
    3. Deleting the last remaining original Icon (1)
    4. Adding more new icons, which then gave them the ids of 2 and 3 (for the end result of 2, 2, 3)
    • CommentAuthorbmw
    • CommentTimeApr 15th 2008
     # 122
    Also, I put a space in line 115 before the img tag:

    115: $imagereturn .= '
    • CommentAuthorbmw
    • CommentTimeApr 15th 2008 edited
     # 123
    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.)
    •  
      CommentAuthormightymango
    • CommentTimeApr 15th 2008 edited
     # 124
    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.
  11.  # 125
    Uploaded version 1.2 of UserAward.
    • CommentAuthorbmw
    • CommentTimeApr 16th 2008 edited
     # 126
    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.
    • CommentAuthorSpiral
    • CommentTimeApr 23rd 2008
     # 127
    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
  12.  # 128
    Are you using version 1.2?
    • CommentAuthorSpiral
    • CommentTimeApr 25th 2008 edited
     # 129
    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.
  13.  # 130
    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.
    • CommentAuthorSpiral
    • CommentTimeApr 29th 2008
     # 131
    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.
    • CommentAuthorjkrogma
    • CommentTimeMay 6th 2008 edited
     # 132
    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
    • CommentAuthorMr.Hyruki
    • CommentTimeMay 6th 2008
     # 133
    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...
  14.  # 134
    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.
  15.  # 135
    Uploaded version 1.3 of UserAward.
  16.  # 136
    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.
    • CommentAuthormiquel
    • CommentTimeMay 12th 2008
     # 137
    is the new version using the available framework database functions?
  17.  # 138
    Uploaded version 1.4 of UserAward.
  18.  # 139
    @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.
    • CommentAuthorkifo
    • CommentTimeMay 18th 2008
     # 140
    The downloaded links to the wrong file! I got UserGift instead of UserAward??
  19.  # 141
    Uploaded version 1.4 of UserAward.
  20.  # 142
    Sorry!

    Must have uploaded the wrong zip file by mistake.
    • CommentAuthorfysicsluvr
    • CommentTimeMay 20th 2008
     # 143
    When you have 9 addons, it's bound to happen!
    • CommentAuthorwohoo
    • CommentTimeJun 8th 2008
     # 144
    I'm getting this error right after enabling the extension?

    Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/wohoo/public_html/BLABLABLA/talkbox/extensions/UserAward/default.php on line 128
  21.  # 145
    Uploaded version 1.4.1 of UserAward.
  22.  # 146
    Getting the same Parse error even with 1.4.1 version...
Add your comments
    Username Password
  • Format comments as