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.
    •  
      CommentAuthormightymango
    • CommentTimeApr 4th 2008 edited
     # 1
    Allows a user to send a gift to another member.

    This is a role based feature. Just check 'Can give a gift to a user' on the 'Roles & Permissions' page for those roles you wish to be able to give gifts. 'Give a gift' will appear as a link on the 'Account Options' side panel menu list.

    Sending a gift
    A 'gift' link will appear next to each comment. Click on the link to send a gift to the author.
    It is also possible to send a gift by using the link on the 'side bar' when viewing a user's account profile.

    Compatability with UserAward
    Version 1.0.2 or later of UserAward should be used if this extension is to be used at the same time as UserGifts.

    User Preferences
    Users can select how their gifts are displayed from the Account|Forum Preferences form.

    Included Gifts
    NB For copyright reasons, the included gifts must not be used in a commercial site.

    Important
    The format of the 'gifts.php' file will change to cope with gift levels etc. (see below) so only upload your own gifts if you are using a test site.

    If you have created your own gifts do not upload the gifts folder and gifts.php to your server.

    Version History
    Version 0.8b
    - Fixed unexpected & error

    Version 0.7b
    - Fixed error on sign-in
    - Fixed error where gifts icon not appearing on account page

    Version 0.6b
    - Fixed error message when deleting gift type

    Version 0.4b
    - Sorted problem with repeated sorting of the awards.
    - Fixed problem with deleting award types and then adding a new award type which resulted in the incorrect gift being displayed.
    - Removed need to override image cache. Each gift image is now unique.
    - Can now delete all gift types

    Version 0.3b
    - Added 'Do not accept gifts' and 'Make gifts I receive visible to all' settings to the forum preferences form
    - Only show Real Name if user has enabled the option to make their name visible
    - Fixed problem where not entering a gift message was returning to the wrong user
    - No longer necessary to include a message
    - Removed settings page (not needed for the time being)
    - Added simple pagination - show 3 newest gifts

    Version 0.2b
    - Minor code changes

    Version 0.1b
    - First beta release

    Things I'm working on:
    - Send an automatic email when a gift is sent.
    - Users to qualify for different levels of gifts depending on the number of posts made.
    - Improve pagination to include multiple pages.
    - A way of limiting the number of gifts a user can send.

    Donations
    If you find this extension useful please consider making a donation. Then at least I would have something to show my wife for all the hours I spend writing Vanilla Extensions!

  1.  # 2
    Uploaded version 0.2 Beta of UserGifts.
    •  
      CommentAuthorHamed
    • CommentTimeApr 4th 2008
     # 3
    AWESOME!!!!!
    thanks a bunch
    •  
      CommentAuthorgarvin
    • CommentTimeApr 6th 2008 edited
     # 4
    Any screen shots? I want to see this in action. Nevermind. Saw it on the add-on page. Looks cool.
    • CommentAuthorLoOkHerE
    • CommentTimeApr 6th 2008
     # 5
    Great add-on mm. In terms of your roadmap for features, can I suggest some form of pagination (maybe 3 or 5 of the latest gifts displayed on the account page, with a link to the older ones... like The Wall add-on has)?
    •  
      CommentAuthorHamed
    • CommentTimeApr 6th 2008
     # 6
    I agree LoOkHerE, great idea. or maybe better yet, the admin can decide how many gifts he wants to show up on the users account tabs by specifying it in the settings page somewhere
  2.  # 7
    [settings] -> [application settings] -> [discussion and control panel listings] would be the best place for that setting.
    •  
      CommentAuthormightymango
    • CommentTimeApr 12th 2008 edited
     # 8
    Excellent idea.
    How about admin sets default number of gifts to show with the option for the user to override this?

    Away from my computer at the moment and only have Internet access via my iPod Touch. Will post an update sometime next week.
  3.  # 9
    Version number changed from 0.2 Beta to 0.3 Beta.
  4.  # 10
    Uploaded version 0.3 Beta of UserGifts.
    •  
      CommentAuthorDan C
    • CommentTimeApr 15th 2008
     # 11
    Fantastic add-on. Thanks very much!

    I think it'd be useful if the admin could set a limit on how many gifts a user can send within a given time frame. At the moment my users are spamming each other silly with hundreds of gifts.
    •  
      CommentAuthormightymango
    • CommentTimeApr 15th 2008 edited
     # 12
    Good idea.

    I'll look into it. Bit tied up at the moment fixing a bug in UserAward. Hope to have this sorted by tomorrow as soon as possible.
  5.  # 13
    Uploaded version 0.4 Beta of UserGifts.
  6.  # 14
    Uploaded version 0.6 Beta of UserGifts.
    •  
      CommentAuthorHamed
    • CommentTimeMay 1st 2008
     # 15
    so umm
    where did you get your images from (the gift one)
    i wanted to find some more to add,
    thanks
    •  
      CommentAuthormightymango
    • CommentTimeMay 3rd 2008 edited
     # 16


    NB The icons can only be used free on non-commercial sites.
    •  
      CommentAuthorHamed
    • CommentTimeMay 3rd 2008 edited
     # 17
    thanks
    how did you change the format form .ico to png, also how did you make it smaller size
    i put it in the ftp and changed it to png
    but i dunno if that is right

    * i think you should add categories so that we can have different categories with different gifts in them
    also page numbers within each category or even if not in the category in the base folder (maybe you have some uncategorized gifts or whatever) and you can have page numbers there too

    sound confusing?
  7.  # 18
    I uploaded a picture to the upload picture and it crashes the forum everytime. So i had to delete the extension and reinstall it but keep it unchecked. Do you know why it keeps crashing.
  8.  # 19
    From your post I can't know what the problem is.
    Do you get any error messages?
  9.  # 20
    Yeah i can post after midnight tonight.
  10.  # 21
    this is the error i get when logging into the test account
    Fatal error: Using $this when not in object context in /home/chadamga/public_html/forum.chadamgames.com/extensions/UserGifts/default.php on line 544

    Please tell me what happend
    this is happening to at least 3 people.
    rest works
    • CommentAuthorMr.Hyruki
    • CommentTimeMay 6th 2008
     # 22
    I encountered the same error as Chadamgames. Any time a gift was sent to anyone, that user was unable to log in. I had to go into mySQL and delete the gifts from there (I myself couldn't log in).
    • CommentAuthorslax
    • CommentTimeMay 7th 2008
     # 23
    I have a simple fix, but the gift images dowsent show on the profile page.
    The error is showing on php5 because oop is different.
    $this can only be used inside an object.
    It's a reference to itself, as you could guess.

    From outside the object, you must use the instance name of the object.
    there have been a lot of changes between php4 and php5.


    code: (at line 544)
    $NoticeCollector->AddNotice('<span><a href="./" '.'id="RemoveMessage'.$Row['GiftID'].'" '.'onclick="RemoveGiftMessage(\''.$Context->Configuration['WEB_ROOT'].'extensions/UserGifts/ajax/remove.php\', \''.$Row['GiftID'].'\', \'RemoveMessage'.$Row['GiftID'].'\'); return false;">'.$Context->GetDefinition('UserGiftsHide').'</a></span>'.GetImage($Context->Configuration['WEB_ROOT'].'extensions/UserGifts/gifts/'.$Context->UserGiftsGifts['Icon'][$Row['Gift']]).'<br/>'.$Giftmessage);
  11.  # 24
    Uploaded version 0.7 Beta of UserGifts.
    • CommentAuthorwohoo
    • CommentTimeJun 8th 2008
     # 25
    Getting this error right after enabling the extension?

    Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /home/wohoo/public_html/BLABLA/talkbox/extensions/UserGifts/default.php on line 663
    • CommentAuthorcircuit
    • CommentTimeJun 22nd 2008
     # 26
    same here - took my whole forum down as soon as i activated it.
  12.  # 27
    Uploaded version 0.8 Beta of UserGifts.
Add your comments
    Username Password
  • Format comments as