Not signed in (Sign In)

Categories

Vanilla 1.1.4 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.
    • CommentAuthorklepto
    • CommentTimeJan 25th 2008
     # 51
    Me, too! -> Notice: Undefined variable: AccountUserID in /var/www/web636/html/vanilla/extensions/UserAward/default.php on line 507
    • CommentAuthoreugenet
    • CommentTimeFeb 5th 2008
     # 52
    i fixed the undefined AccountUserID issue by moving "$AccountUserID = ForceIncomingInt('u', $Context->Session->UserID);" outside the if(){} block it's in
  1.  # 53
    Sorry folks, not been on the board for some time, too busy with work I get paid for ;) and I'm just about to go on holiday for a week :)

    Will take a look at the problem and upload a fix when I get back next weekend.
  2.  # 54
    Uploaded version 0.8 Beta of UserAward.
    • CommentAuthorwetcircle
    • CommentTimeFeb 15th 2008 edited
     # 55
    works well for me .. but the hide function doesn't seem to work. any ideas? maybe if i could disable the notification or put them in an iframe. they start to stack up.
    • CommentAuthorwetcircle
    • CommentTimeFeb 16th 2008 edited
     # 56
    i fixed the problem by removing
    //Display notice on discussion and categories pages
    from /UserAward/default.php
    •  
      CommentAuthorscubaguy
    • CommentTimeMar 1st 2008
     # 57
    small bug where the options settings link is put in a category called ExtensionOptions all by itself. To fix this just add a space between the words on line 1014 of default.php like this:

    $ExtensionOptions = $Context->GetDefinition('Extension Options');
  3.  # 58
    Been having the same problem with (some) users not being able to remove notification of award, just FYI to mightymango.
    • CommentAuthoreugen
    • CommentTimeMar 17th 2008 edited
     # 59
    FIX NEEDED!

    Hi together...

    i got the same problem of not removing award notification messages on users who got one!
    If they press HIDE nothing happens ...

    Hint! If a user clicks on "Hide" he is producing an error:
    Server Logg says:
    File does not exist: /whatever/extensions/UserAward/functions.js

    Maybe this helps to fix the problem - waiting for an update because the users are annoyed by not getting rid of the award notifications.

    until then i gonna do same as wetcircle said :)

    thanks!
  4.  # 60
    Have you checked that that file exists?
    •  
      CommentAuthorHamed
    • CommentTimeMar 18th 2008
     # 61
    anyway to change every word in this to gift
    and make it userGift?
    • CommentAuthoreugen
    • CommentTimeMar 18th 2008
     # 62
    Hi minisweeper,

    that files (of course) does not exist. if it would he wouldnt error it :)
    But there is no function.js available ... where should it be from?
    there is no function.js in the "UserAward 0.8 Beta" included.

    any idea?
  5.  # 63
    I see eugen - interesting. Does anyone else have this extension installed and was that file included in the archive?
    •  
      CommentAuthorHamed
    • CommentTimeMar 18th 2008
     # 64
    i have it installed
    no error for me
    and i did not check if the file exists
    but i will check
    let me see..
    maybe i will post back soon
    • CommentAuthoreugen
    • CommentTimeMar 19th 2008
     # 65
    huh? am i blind?

    i just downloaded: "User Award 0.8 beta"
    from: http://lussumo.com/addons/index.php?PostBackAction=Download&AddOnID=350

    I DO NOT see any included function.js at all :(

    @hamed:
    are you realy sure you dont have the problem? i think you do but didnt checked it yet ;)

    -Please create a demo account on your vanilla.
    -Award this new created user an award.
    -Sign in on the new created user account.
    -You should see a notification message about a received award.
    - no try to click the "Hide" on the notification ... then u know what we are talking about ;)

    Several users complained about this "bug" and it would be a miracle if you wouldn´t got the same problem - if you are using 0.8 beta.

    Please check this hamed and give response. thx
    •  
      CommentAuthorHamed
    • CommentTimeMar 19th 2008
     # 66
    umm i did everything you said and i did not get a bug
    really i did not
    • CommentAuthoreugen
    • CommentTimeMar 19th 2008
     # 67
    thats weird ... ^^
    why does some users got that problem and some not?

    maybe the file was included in 0.7 and its missing in 0.8 ?
    so all users who used USER AWARD before 0.8 got the file and everything is working
    and all users who started with 0.8 got the problem? ... just speculation.

    mightymangoooo we neeeeed youuuu :)
    •  
      CommentAuthorHamed
    • CommentTimeMar 19th 2008
     # 68
    ok so what happens when you click hide?
    nothing happened to me, seriously, but wh3at happened to you?
    • CommentAuthoreugen
    • CommentTimeMar 19th 2008
     # 69
    hamed???

    did you just said nothing happens if you click on "Hide"?
    Then you got the same problem as stavthewonderchicken, wetcircle, me and many more.
    thought its working on your forum? he? :)

    yes, nothing happens, thats what we complain about.

    if you got the possibility to check your servers error logfiles please do so.
    maybe you got the same error message as i did.

    If a user clicks on "Hide" he is producing an error:
    Server Logg says:
    File does not exist: /whatever/extensions/UserAward/functions.js
  6.  # 70
    Yeah, functions.js is missing from the zipfile of the latest release. I tried to get to mightymango's site to see if I could find an old version of the add-on, but it seems to be down. Just have to wait until he notices this, I guess.
    • CommentAuthoreugen
    • CommentTimeMar 20th 2008
     # 71
    hi stavthewonderchicken!

    thx for that info ... maybe someone could upload the latest functions.js - else we could wait years ;)
    •  
      CommentAuthorHamed
    • CommentTimeMar 20th 2008
     # 72
    * eugen - umm dunno much about servers at this point.. so ...i did not get comprehend what you said there
    but it worked for me, when i clicked hide ( i think)

    i think did followed what you said
    • CommentAuthoreugen
    • CommentTimeMar 21st 2008
     # 73
    hamed.
    have you used this addon BEFORE 0.8 beta also?
    then i think i know why its working on your forum.
    beacuse you got the functions.js left on your server from an older version.

    know what i mean?
  7.  # 74
    Sorry folks, not been around for a while.

    Off work for the next few days so will take a look at the the above issues.
  8.  # 75
    Uploaded version 0.9 Beta of UserAward.
  9.  # 76
    Think version 0.9b fixes all your problems.
    Please let me know if not.

    functions.js was missing, which was the cause of the problems.
    When I checked it appears to have disappeared from my system completely. I have noticed when doing a 'system restore' on Vista (have had to do this several times!) Vista seems to delete files in 'My Documents' at random!
    •  
      CommentAuthorHamed
    • CommentTimeMar 21st 2008
     # 77
    oh i see
    but can you tell me why i did not get the error?

    umm or am i just not doing the right the thing to remove the error

    anyway thanks a bunch
    • CommentAuthoreugen
    • CommentTimeMar 21st 2008
     # 78
    hamed:

    i told you ... probably you used an earlier version prior 0.8 and so you got the missing file already on your server as u updated to 0.8 :)

    in my case. i started with 0.8 where the file is missing. thats why i got this error.

    sorry for my english, hope you know what i mean :/
    • CommentAuthoreugen
    • CommentTimeMar 21st 2008
     # 79
    @mightymango:

    just updated to 0.9 and its working fine now with an exisiting functions.js ;)))

    i just made a little design change to default.php:

    ### LINE 573:
    $NoticeCollector->AddNotice('<span><a href="./" id="RemoveMessage'.$Row['AwardID'].'" onclick="RemoveAwardMessage(\''.$Context->Configuration['WEB_ROOT'].'extensions/UserAward/ajax/remove.php\', \''.$Row['AwardID'].'\', \'RemoveMessage'.$Row['AwardID'].'\'); return false;">'.$Context->GetDefinition('UserAwardHide').'</a></span><img src="extensions/UserAward/icons/'.$Context->UserAwardAwards['Icon'][$Row['Award']].'?now'.time().'" /> <b>CONGRATULATIONS!</b> You have been awarded by <a href="'.GetUrl($Context->Configuration, 'account.php', '', '', '', '', 'u='.$Row['AwardedBy']).'">'.$UserAwardNotice->UserAwardGetAwardedBy($Row['AwardedBy']).'</a> with following reason:<br><i>"'.$Row['Notes'].'"</i><br>Please take a look at your <a href="account.php">account profile</a> to view your history of awards.');


    I think this makes the award notification message more conceptional and will look like this:
    [award picture] CONGRATULATIONS! You have been awarded by [user - clickable] with following reason:
    "[reason]"
    Please take a look at your account profile (clickable) to view your history of awards.


    you may add this or any kind of it to 0.10? ;)
  10.  # 80
    Thanks for the update mightymango!
    •  
      CommentAuthorHamed
    • CommentTimeMar 23rd 2008
     # 81
    @ eugen
    version 0.10?
    that is less than .9

    .9>.1

    you mean version 1, right?
    • CommentAuthoreugen
    • CommentTimeMar 23rd 2008
     # 82
    hey hamed,
    you are right, my fault ;)
    sorry
    •  
      CommentAuthorHamed
    • CommentTimeMar 23rd 2008
     # 83
    it is all cool
    no worries
    ^_^
    • CommentAuthorbmw
    • CommentTimeMar 24th 2008
     # 84
    Mr Mango,
    I was hoping to use this Extension for my baseball site, and have an award for each championship year.

    However, when you go to the Comments page only one award seems to show next to the persons name. Can you make an option that would show all the awards, in succession, attributed to a user?

    For example:

    BMW won the Championship in 2003 and 2004.
    Currently it looks like:
    BMW [2004]
    I'd like it to look like:
    BMW [2003] [2004]

    Thanks!
  11.  # 85
    At the moment only the latest or highest award appears on the 'Comments' page. All awards appear on the 'Account' page.

    This is a 'design' issue I know about and I'll take a look at it when I get a bit of free time.
    •  
      CommentAuthorkalikiana
    • CommentTimeMar 27th 2008
     # 86
    There are two bugs with translations I'd like you to fix.

    At line 1018 there's a typo.

    $ExtensionOptions = $Context->GetDefinition('Extension Options');

    must be

    $ExtensionOptions = $Context->GetDefinition('ExtensionOptions');

    Also line 774 is

    <a class="SortEdit" href="'.GetUrl($this->Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=UserAward&type=edit&id=').$this->Context->UserAwardAwards['ID'][$i].'">Edit</a>';

    but must be

    <a class="SortEdit" href="'.GetUrl($this->Context->Configuration, 'settings.php', '', '', '', '', 'PostBackAction=UserAward&type=edit&id=').$this->Context->UserAwardAwards['ID'][$i].'">'.$this->Context->GetDefinition('UserAwardEdit').'</a>';
    • CommentAuthorbmw
    • CommentTimeMar 27th 2008
     # 87
    If you can work that into the design, I will be able to unveil it on my site. Danke!
    •  
      CommentAuthorkalikiana
    • CommentTimeMar 28th 2008
     # 88
    Based on eugen's suggestion I have replaced line 573 with the following:

    $UserLink = '<a href="'.
    GetUrl($Context->Configuration, 'account.php',
    '', '', '', '', 'u='.$Row['AwardedBy']).'">'.
    $UserAwardNotice->UserAwardGetAwardedBy($Row['AwardedBy']).'</a>';
    $NoticeCollector->AddNotice('<span><a href="./" '.
    'id="RemoveMessage'.$Row['AwardID'].'" '.
    'onclick="RemoveAwardMessage(\''.$Context->Configuration['WEB_ROOT'].
    'extensions/UserAward/ajax/remove.php\', \''.$Row['AwardID'].'\', \'RemoveMessage'.
    $Row['AwardID'].'\'); return false;">'.
    $Context->GetDefinition('UserAwardHide').'</a></span><img '.
    'src="extensions/UserAward/icons/'.$Context->UserAwardAwards['Icon'][$Row['Award']].
    '?now'.time().'" /> <b>'.$Context->GetDefinition('UserAwardCongrats').
    '</b> '.str_replace('//1', $UserLink, $Context->GetDefinition('UserAwardNotice1')).
    '<br><i>"'.$Row['Notes'].'"</i><br>'.$Context->GetDefinition('UserAwardNotice2'));

    Then the following definitions need to be added to conf/language.php:

    $Context->SetDefinition('UserAwardCongrats', 'Congratulations!');
    $Context->SetDefinition('UserAwardNotice1', 'You have been awarded by //1 for the following reason:');
    $Context->SetDefinition('UserAwardNotice2', 'Please take a look at your <a href="account.php">account page</a> to view your history of awards.');
    •  
      CommentAuthorkalikiana
    • CommentTimeMar 28th 2008
     # 89
    One more little bug is the use of GetDefinition("UserExtensions") which is probably supposed to be GetDefinition('ExtensionOptions').
  12.  # 90
    Uploaded version 1.0 of UserAward.
    • CommentAuthoreugen
    • CommentTimeMar 28th 2008 edited
     # 91
    Hi mighty!

    great work ... but is there any detailed changelog?
    So everyone knows exactly what has changed or fixed to decide if its necessary to update?
    I did some changes on 0.9 on my own and if i update now i am in trouble :P
  13.  # 92
    The default.php file lists all changes (not in any great detail though). If you let me know what changes you have made I can point you in the right direction :)
    •  
      CommentAuthorkalikiana
    • CommentTimeMar 29th 2008
     # 93
    Great news, thanks for working on this!

    Personally I don't like the layout of the notification. I find there should be a line break between the AwardNotice message and the reason and also I don't really like how the AwardListNotice is a separate paragraph/ box now.
    Maybe you can add some trick so this can be changed in the theme in a future version?
  14.  # 94
    Sorry but I'm afraid I didn't like your layout either. Nothing lined up (because of the icon) and I felt it was a bit untidy.
    The reason for putting the AwardListNotice in a box of it's own is that it is unnecessary to have that information repeated if you have more than one award and it also clutters up the award notice.

    It is already possible to change the layout without using a theme. If you would like to use your layout just put the following in your 'myforum/conf/language.php' file:

    $Context->SetDefinition('UserAwardNotice', 'An award has been made to you by {awardedby} with the following message:
    <br/><i>{awardnotes}</i><br/>Please take a look at your <a href="account.php">account page</a> to view your history of awards.');

    $Context->SetDefinition('UserAwardListNotice', '');


    You will need to install version 1.0.1 to remove the separate 'UserAwardListNotice'.
  15.  # 95
    Uploaded version 1.0.1 of UserAward.
    •  
      CommentAuthorkalikiana
    • CommentTimeMar 29th 2008
     # 96
    I did already suspect you don't like my layout since you made it differently. That's just why I asked for a theme trick. :)

    Now well, actually I find it extremely awkward to hack the layout into the language. This is not an advantage but a disadvantage. I mean, what if I have two themes and two languages. Should I decide per language what style of notification users see?
    So what I mean is, if you could mark the notification up nicely so it is changeable via a style definition, that would be really great.
    •  
      CommentAuthormightymango
    • CommentTimeMar 29th 2008 edited
     # 97
    How about a word of thanks now and again rather than just criticism?

    I think the language.php method is fine (if not perfect and perhaps a temporary solution).

    I've provided you with a way of having your layout but at the same time being able to have my own layout.

    I'm sorry if this sounds a bit short but I get a bit hacked off with providing my work to people free of charge for them to then continually complain about the way I have done things.

    I'm not saying that your idea of using the 'theme trick' is not a good one it's just that due to pressure of work I don't have time to implement it just now.
    •  
      CommentAuthorWanderer
    • CommentTimeMar 30th 2008
     # 98
    Hey mightmango, why not just give the whinger his money back in full?
  16.  # 99
    I am glad you have made this it has increased members on board. We started a forum at the begining of the month and we have 25 users and over 800 posts and they all like the awards. So i would like to say thank you for you wonderful job. The only problem that i heard from the users is that all the awards are in the front page. And none of them will hide.

    Thanks again for making this so wonderful.
  17.  # 100
    Thanks ogmaster :)

    There was a problem with awards not been hidden because there was a file missing. This should now be fixed. Just try using the latest version 1.0.1.

    If this does not fix things please let me know.