Gifts Plugin v0.1.1

Release Notes

Hi,

Changelog

v0.1.1 2009-09-07
    + Fix: IE8 Send Button not working

v0.1.0 2009-09-07
    + Add: River icon
    + Add: New administration area
    + Add: Write a message to your gift
    + Add: "Sent gifts"-page
    + Add: Upload pictures for gifts
    + Add: Gifts Widget for profile
    + Fix: My Gifts Page not showing all my gifts
    + Fix: Gift URL was wrong on river
    + Add: Gift preview
    + Add: You can configure if the "All Gifts"-page is shown
    + Add: Userpoint API Support
    
v0.0.2 2009-09-02
    + Better River Support (thanks to DDFUSION)
    + Add: Mail Notification for new gifts
    + Add: User Profile Menu Item "Send gift"
    + Removed noimage notification for gifts with no imagefile

v0.0.1 2009-09-01
    + Initial Release

README.TXT

Included Languages:
English, German, Hebrew (thanks to Susan)

Installation:

1. Copy the gifts plugin to you mod folder
2. !!!! Set the folder permissions of gifts/images to be writeable by the webserver (chmod 777) !!!!
3. Enable the gifts plugin in your "Tool Administrator"
5. Configure your Gifts in the Gifts Settings

Important!
If you are using a version below 0.1.0 and uploaded pictures to the images folder,
you have to upload the picutres again within the Gifts admin menu

!!! Please check the permissions of the images directory !!!
=======================================================
For RTL languages change left to right in gifts/views/default/gifts/css.php
from
.river_user_gifts {
    background:transparent url(<?php echo $vars['url']; ?>mod/gifts/river_icon_gifts.gif) no-repeat scroll left -1px;
}

to
.river_user_gifts {
    background:transparent url(<?php echo $vars['url']; ?>mod/gifts/river_icon_gifts.gif) no-repeat scroll right -1px;
}

  • nice one. working perfectly 

  • Hi,

    Thanks for your work with this plugin. I'll install it within the next days, I just have one question...

    I assume we have to upload our own gift images. What size do they have to be?

  • @woodward

    i beleive they can be what you want, i used lage and small images with no problem

  • @antifm

    did you upload your gifts in the admin panel? did you set peermissions for the images folder?

    if you were using the first version of the plugin you need to reupload images in admin paanel.

  • I seem to have run into a problem. Screenshots will explain i think.

    Using: elgg 1.5. New install, no other plugins enabled except the default ones.

    Gift settings

    Gift Settings 2

  • Hi,

    I'm currently away for three days and will be home on sunday, I will take a look on this problems when I'm back.

    Thanks,

    Christian

  • Where can I finde the code to change the landing page when a user clicks on the "gifts" link?

    Tnx... Yoram!

  • @ antifmradio

    I checked my TinyMCE version... it's Version: 1.5 and the gifts plugin is directly Below it.

    Seems that's not the problem :(  Any more suggestions anyone?

  • I use this plugin and have question, what about gift delete from admin panel? Are You going to add this in next version?

  • Hi All,

    @Yoram: Look at start.php line 27

    @nettracer: Perhaps ;) It is on the Todo List

    @antifmradio: I've no idea why this happens. I've checked the Plugin with a clean version of elgg 1.5 and 1.6.1. But it seems, that your php interpreter doesn't parse the code. Which Version of php are you using?

  • @Christian ... Thanks for this Plugin ...  the users on my plattform likes it!!!

    I have some further recommendations for a next version (if you don't mind)...

    1) is it possible, to replace the word "gift" and "gifts" by a variable, so that I can replace it once. As Example by "karma" and "karmas" and that I don't have to go through the whole language files.

    2) It would be nice if the name and the description of the gifts could be multilingual.

    3) Reorder the gifts (up and down) ... nice to have ...

    Thanks!!! Also from our users!!!

  • 4) a Selection who is allowed to see the comment

  • If you like to use accessrights for gifts, only the following changes are needed:

    --------------------------------------------------
    v0.1.2 2009-09-18

        + Accessright
    --------------------------------------------------
        Add/Change the following Code
    --------------------------------------------------
        File mod/gifts/views/gifts/form.php
        Line 137:      <div id="access">
                    <?php
                        $access = get_default_access();
                        $out = '<p><label>'.elgg_echo("access").'<br />';
                        $out .= elgg_view("input/access",array('internalname' => 'access','value'=>$access));
                        $out .= '</label></p>';
                        echo $out;
                    ?>
                    </div>    
    --------------------------------------------------
        File mod/gifts/actions/send.php
        Line 21:    $access = get_input('access'); //Add
        Line 51:    $gift->access_id = $access;   //Change
    --------------------------------------------------

  • @Christian I am having the same problem as WildShot. I'm running php 5.3.0

  • @Christian Great plugin thanks.

    @Galdrapiu thanks for the access rights edit.

  • @Christian, while editing to give access rights I noticed comments about "user points". Does this plugin work in sync with the Userpoints standard plugin from Divagater?

  • Is there a way to have the "gifts" sent only to an administrator, or other account exclusively? Instead of a gift system, it would be more akin to redemption.

  •  anyone else get this error, have i missed something obvious?

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  • I'm pretty new to Elgg, I have experience using some PHP, I just want to ask how difficult it would be to create a category system for the gifts or would it just be easier to build a new gift system on my own?

  • hi Christian,

    i am not sure what is going on but i am having trouble testing this on my local wampserver.. I am running 1.5 and wamp2.0g

     

    it comes up with this ...

    Gifts

    showallgifts; $useuserpoints = $plugin->useuserpoints; $giftcount = $plugin->giftcount; $action = $vars['url'] . 'action/gifts/settings'; $form = "

    ".elgg_echo('gifts:settings:showallgifts'); $form .= '

    \n\r"; // Userpoints // Check if Userpoint Api is enabled if (is_plugin_enabled('userpoints')) { $form .= elgg_echo('gifts:settings:useuserpoints'); $form .= '

    \n\r"; } $form .= elgg_echo('gifts:settings:number'); $form .= "
    "; $form .= "

    ".elgg_view('input/submit', array('value' => elgg_echo("save"))); $form .= "

    "; echo elgg_view('input/form', array('action' => $action, 'body' => $form)); /* $gift_count = $giftcount; for ($i=1;$i<=$gift_count;$i++) { echo elgg_echo('gifts:settings:title')." #$i"; echo elgg_view('input/text',array('internalname'=>'params[gift_'.$i.']','value'=>get_plugin_setting('gift_'.$i, 'gifts'))); }*/ ?>

  • sorry the above is on the admin page

Stats

  • Category: Uncategorized
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 4494
  • Recommendations: 4

Other Projects

View Christian Heckelmann's plugins