PDA

View Full Version : Add-On Releases - Facebook Gifts Modification - Paid Gifts


Cole2026
06-19-2009, 10:00 PM
Facebook Gifts for vBulletin 3.8.x

This is what I would call the next release, so to speak, of the original gifts modification released by Christian8a. I was the coder of that product, and I am releasing this next iteration of the product with several more useful features.

In addition to being able to send gifts in the same fashion as facebook, this modification has several new features, including:

A new custom credits system that is integrated with Paypal. You can now charge for certain gifts using paypal seamlessly.
Mass Gifting and Crediting -- Administrators can now send out gifts in mass quantities through the admincp. They can send them out according to usergroup. In addition, the administrator can mass credit people (credits are used to buy gifts) and edit user's credits through the administrator control panel.
Usergroup Specific Gifts - Administrators can now define certain gifts as available for only "select" usergroups.


This release will be considered a beta until I can get accurate reports on bugs and problems with the system. I worked on this update over a year ago for a client and am now releasing it publically. I cannot remember how much I changed the codebase since I worked on this modification for Christian8a, so I am not sure which bugs currently still exist or which don't. In addition, this version is feature incomplete. I would like to get feature requests from users in order to figure out what would be a useful addition.

I do not have any web space currently for a demo. If anyone would be so kind as to provide links to their forum that has it installed--I'll put it up here.

Installation Instructions


Unzip the provided "Gifts Modification" zip file.
Upload the contents of the "upload" folder to your forumroot (with the gifts.php file going into the forum root, the gifts.php in the admincp folder to your admin folder, the two xml files to the includes/xml folder, and the images/gifts folder going into its respective area)
Import Product file (in the root of the zip file it is called product.xml) -- Currently I am not supporting upgrading from the old Gifts modification, so please do this at your own risk. I will not support upgrading until this comes out of beta.
Configure Gifts Settings (under Gifts category in admincp, click on Gifts Settings. Be sure to include your paypal email at the bottom if you plan on using credits, or else it will not work correctly).


I will provide support for this product as I have time.

I am not responsible for any data loss or damage caused by this product. It is provided "as-is" and install at your own risk. And of course, vBulletin.Org is the only place where a download is valid. Hosting this product at any other website is strictly prohibited without explicit permission from me. In addition, you are only permitted to use this product if you have a valid vBulletin license (which goes without saying).

Thanks, and have fun! :)
DO NOT INSTALL IF YOU USE VBCREDITS - There is a huge compatibility issue regarding common field names in the user table.

Sweeks
06-20-2009, 08:25 PM
Excellent! Has the mass uploading of gifts been added to this as that would top off this mod nicely, also I would like to request that a welcome gift on user registration to be added :D Great work!
________
CUMSHOT MOUTH (http://www.++++tube.com/categories/497/mouth/videos/1)

Cole2026
06-20-2009, 09:14 PM
The mass add feature is already in production for the second beta, and I'll add the welcome gift option to the list.

Hasann
06-20-2009, 09:26 PM
I'll wait the stable Gold version of this hack nice mod tought

TNCclubman
06-20-2009, 09:30 PM
Its about time. Cant wait for it to be stable and ready for a live board!!!

awesome!

DobieGillis?
06-20-2009, 09:47 PM
this screwed up vbcredits for me. I can't add credits through vbcredits, only through your system/ Meh!

Cole2026
06-20-2009, 09:54 PM
this screwed up vbcredits for me. I can't add credits through vbcredits, only through your system/ Meh!


This may be because both systems use common variables. I'll add the option to use vbcredits or my system in the next version, and I will fix this issue.

DobieGillis?
06-20-2009, 09:57 PM
This may be because both systems use common variables. I'll add the option to use vbcredits or my system in the next version, and I will fix this issue.

thanks mate! Appreciate it!

merk_aus
06-21-2009, 04:06 AM
like the idea but will wait for it not to mess with vbcredits

Cole2026
06-21-2009, 04:27 AM
like the idea but will wait for it not to mess with vbcredits
Yeah, I'll have that fixed in a day or two.

ShawneyJ
06-21-2009, 04:50 AM
Yeah, I'll have that fixed in a day or two.

sweet cant wait ;) thx

Veer
06-21-2009, 06:49 AM
Nice mod.

I'm using MyLs1 Gifts (https://vborg.vbsupport.ru/showthread.php?t=189788) and I will wait for the upgrade support, because I don't wanna lose old gifts and data.

popular
06-21-2009, 09:35 AM
need some kinda credit system could u make it work like say per 100 posts a user could send 1 gift free without the paypal?

Cole2026
06-21-2009, 02:22 PM
need some kinda credit system could u make it work like say per 100 posts a user could send 1 gift free without the paypal?
I'm not going to get complex with my credits system; however, I will implement vBCredits compatibility.

pein87
06-21-2009, 05:38 PM
Thanks installed cant wait for the gold.

saviola8x
06-21-2009, 07:53 PM
Thanks for you and thanks for mod.

Stevie Night
06-22-2009, 05:05 PM
Installed, but I get this message when trying to access gifts.php

Steve, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Darkwaltz4
06-22-2009, 05:14 PM
For those of you with vBCredits, but want this hack's functionality:

100% free you can use vBCommerce and the Icon itemtype from my site, which does exactly this and more. Link in sig or PM me for details.

saviola8x
06-22-2009, 05:53 PM
For those of you with vBCredits, but want this hack's functionality:

100% free you can use vBCommerce and the Icon itemtype from my site, which does exactly this and more. Link in sig or PM me for details.
i want it. Share for me. Thank so much

Chadi
06-22-2009, 06:05 PM
The mass add feature is already in production for the second beta, and I'll add the welcome gift option to the list.

Thanks for this mod.

Just curious, when can we expect the mass add feature to be implemented?

Please add ability to sort categories as well. Better yet, ajax implementation would rock :)

trancetopia
06-22-2009, 07:56 PM
Thanks for this.... i'd like to make a little request if I may.

Can an option be added to disable the giving of gifts so this can be used just as a credit system which my users can use to buy credits via paypal only?

I run a photography community and I want to use this for a new photo challenge feature but the only part of it I need is the credit buying piece....

If not, no worries.. anyone else know if of any other mods that will do just the above... allow members to pay for credits.. all I need is credit integer value in the db so I can integrate with my own photo challenge system.

Thanks.

Chadi
06-22-2009, 11:25 PM
I noticed there is no way to disable the credit system.

Am I missing something?

Cole2026
06-23-2009, 03:05 PM
Installed, but I get this message when trying to access gifts.php

Steve, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

You have to configure usergroup permissions for each usergroup. Sorry about that, I did not outline that in the directions.

Thanks for this mod.

Just curious, when can we expect the mass add feature to be implemented?

Please add ability to sort categories as well. Better yet, ajax implementation would rock :)

Okay, noted. This will be ready for a future release (hopefully the next one).

Thanks for this.... i'd like to make a little request if I may.

Can an option be added to disable the giving of gifts so this can be used just as a credit system which my users can use to buy credits via paypal only?

I run a photography community and I want to use this for a new photo challenge feature but the only part of it I need is the credit buying piece....

If not, no worries.. anyone else know if of any other mods that will do just the above... allow members to pay for credits.. all I need is credit integer value in the db so I can integrate with my own photo challenge system.

Thanks.

Certainly. Marked for future release.

I noticed there is no way to disable the credit system.

Am I missing something?

Yeah, you can't (yet). This is code nearly directly from a client, so the system is setup just for that client's needs. This first release was moreover for a technology preview so that everyone knew that this project was not dead. This will be in there for sure in the next release.

The next release should be released by the end of the week, just so everyone has an idea.

TNCclubman
06-23-2009, 03:45 PM
I can see this as mod of the month once all these cool ideas are implemented.

Thanks Cole!!!!

TNCclubman
06-23-2009, 03:46 PM
Can I suggest members get

1 free gift every 100 posts.
1 free gift every 100 photos uploaded to their albums.
1 free gift on their birthday.

(option to turn these 2 on and off in the admin cp)

Cole2026
06-23-2009, 06:26 PM
Can I suggest members get

1 free gift every 100 posts.
1 free gift every 100 photos uploaded to their albums.
1 free gift on their birthday.

(option to turn these 2 on and off in the admin cp)

Certainly, albeit it will be one credit every 100 posts instead, so to speak, since credits are the primary way of buying gifts.

trancetopia
06-24-2009, 08:45 AM
Certainly. Marked for future release.


Fantastic, i'll start to integrate this in with my photo challenge system right now. Thank you so much for taking on my request, it's extremelly appreciated.

SSG.D
06-24-2009, 12:27 PM
Great mod and thank you for your work.:D

You may view the mod here: http://www.masterofwar.net/forums


Click on the user name PHOENIX profile to see how it's displayed. (thats me) lol

Some notes:

Even though I uploaded everything in it's place. I had to use the add new gift function so the mod would see the gifts that originally came with the mod.

For those that have dark forums be prepared to edit your gifts in photo shop so you don't have the white background.

On pm notification: A image of the gift is not displayed, just the name of the gift.

When performing mass credit to user groups the credits are not deducted as gifts are sent. Unless I missed a setting which is most likely the issue :o

This is a fantastic start for a great mod addition.... Again thank you so much for your work!!!!:up:

As I make gifts I will help make them available to help pay this forward:)

TNCclubman
06-24-2009, 12:59 PM
Certainly, albeit it will be one credit every 100 posts instead, so to speak, since credits are the primary way of buying gifts.

Thats cool, just maybe in the notification pm they get when it happens if the phrase can say something like

"Congrats you've received a free $1 credit based on your forum activity so you can buy someone a gift, Enjoy!"

SnowBot
06-24-2009, 09:28 PM
Here are some gifts for peeps to use, enjoy :)

SSG.D
06-25-2009, 02:35 AM
Found the cause of no image in the PM..Wrong link to the image address... but not sure how to cure it.

In the pm after a gift is sent. the user just gets a blank image. Here is the cause:

The address is listed multiple times. Note: All the images show up just fine in the user profile pages

http://www.masterofwar.net/forums/http://www.masterofwar.net/forums/images/gifts/drinks/budweiser.gif

Looking at the gift_pm_template I can't see where this would cause this.


Hey {$recipient['username']},

You have received a new gift from: /member.php?u=$senderid]{$sender} ($vboptions{$gift[title]}
$gift[description]


https://vborg.vbsupport.ru/


And {$sender} had this to say along with it,

{$message}

All the best.
$vboptions[bburl]

Can anyone help?:confused:

Cole2026
06-25-2009, 03:23 AM
Found the cause of no image in the PM..Wrong link to the image address... but not sure how to cure it.

In the pm after a gift is sent. the user just gets a blank image. Here is the cause:

The address is listed multiple times. Note: All the images show up just fine in the user profile pages

http://www.masterofwar.net/forums/http://www.masterofwar.net/forums/images/gifts/drinks/budweiser.gif

Looking at the gift_pm_template I can't see where this would cause this.


Hey {$recipient['username']},

You have received a new gift from: /member.php?u=$senderid]{$sender} ($vboptions{$gift[title]}
$gift[description]


{$gift[image]}


And {$sender} had this to say along with it,



All the best.
$vboptions[bburl]

Can anyone help?:confused:

Go to your options and turn off the Prefix URL's option and see if that clears up the problem.

SSG.D
06-25-2009, 01:58 PM
Go to your options and turn off the Prefix URL's option and see if that clears up the problem.

Much thanks that did the trick:D

Feanor_87
06-28-2009, 10:29 AM
Installed and no problems here! Can't wait to see all the suggestions be put into this MOD :)

By the way, how would you go about changing the Paypal link?

gamli baykus
06-28-2009, 07:00 PM
thank you..but i will ask a question..Admins can not send a gift to other admin..what is the problem?

deadlySniper
06-28-2009, 07:04 PM
Awesome! Thanks!

Cole2026
06-28-2009, 09:17 PM
Installed and no problems here! Can't wait to see all the suggestions be put into this MOD :)

By the way, how would you go about changing the Paypal link?

The email? That is in the vBulletin Options for the Gifts modification.

thank you..but i will ask a question..Admins can not send a gift to other admin..what is the problem?

Make sure you setup permissions correctly. You MUST do this after installing.

And I'm almost done with the next release.

TNCclubman
06-28-2009, 09:37 PM
also, dont forget the upgrade from Chris' gift mod. Im kind of still with that version and waiting for your upgrade instructions.

Thanks!!!

CFodder
06-29-2009, 09:36 AM
Great mod thanks, have marked as installed :).

And cheers for those gifts SnowBot, a nice addition to the mod.

Peacelily
07-05-2009, 09:23 AM
Thanks Snowbot for the gifts!!!

Here are some from us if others would like to use them. Food, pretty stuff and pets.

http://www.zshare.net/download/622576107dc35920/


I too will be watching this for when we can upgrade from the old version.

eak
07-05-2009, 10:44 AM
I have one question

How to increase credit by post automaticly

TNCclubman
07-05-2009, 01:22 PM
Out of curiousity. Can I just uninstall the Chris gift mod by removing the product in the admin cp, and just install this? I dont mind losing all the old gift assignements and starting over. (never removed a product before)

crustymusic99
07-07-2009, 06:07 AM
I would like to get feature requests

Intergrate this with Vbexperience's credits system and it is perfect for me :D

DeanoUK
07-13-2009, 07:43 PM
Lovely system thanks, only options I really want are

1) Ability to credit single user accounts - people have donated already via a standard donation system and I'd like them to be credited accordingly

2) Post bit gifts info, similar to Yet Another Award System

Many thanks

Vinyljunky
07-14-2009, 11:32 AM
I'd love to use this :D but I need VBCredit support :)

Any chance of making it compatible, please please :D

Frank Sinatra
07-15-2009, 06:08 AM
Thanksss works great!
regards,

DeanoUK
07-18-2009, 08:42 AM
I've added a very simple 'give credit to single userID', but it's so simple I doubt you'll want it, it's just a change to the mass credit system but with a single user ID.

I did notice a tiny language bug, when giving a gift:

"Please select a gift categorie on the left."

'categorie' should be 'category'.

Anyway here's the changes.

1) Add phrase giftcp_userscredit for each language you use, English is: "Credit User".
2) Upload attached gifts.php to \admincp\ and overwrite existing.
3) Upload attached cpnav_gifts.xml to \includes\xml

You should then be able to credit single users (using their userid). It's the bottom option on the Gifts admincp nav bar.

DeanoUK
07-18-2009, 08:46 AM
By the way, it's installed on UK Cigar Forums: http://www.ukcigarforums.com

DeanoUK
07-18-2009, 08:51 AM
Two major additions I'd like if possible.

1) A post-bit display very much like how the Yet Another Awards System works, with the addition of icons for each image for the post-bit (see attached screen shot) - though I'd like it possibly to appear on the left under the username!

2) A link in the user's post-bit to Gift them as opposed to having to go into their profile.

I think both of these features will ensure the system gets used.

DeanoUK
07-18-2009, 09:08 AM
For option 2) above you can put a link via editing the postbit and adding:


<div><a href="gifts.php?$session[sessionurl]do=give&amp;r=$post[userid]">Send gift</a></div>


This will give you a 'Send gift' link.

I know these things are simple, but it doesn't hurt to share and save you a further 30 seconds!

DeanoUK
07-18-2009, 09:26 AM
Alternatively, I've added it under the User's name on the left hand of the post bit, using the postbit_profilefield template.

And added an icon too.


<div class="smallfont"><img src="http://www.yourforum.com//images/gifts/gift.png" alt="Send gift" border="0"> <a href="gifts.php?$session[sessionurl]do=give&amp;r=$post[userid]">Send gift</a></div>

nightbloom
07-29-2009, 07:54 PM
The only feature I would like to see implimented is a mass gift upload, something like the way smilies are added. It is the only reason I havent switched to this version. I do NOT want to re-add 200+ gifts one at a time....

DiageoLiam
08-04-2009, 05:53 PM
Save DeanoUK's gift image to your buttons directory then add this to postbit/postbit_legacy right before:

<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>"

Add the code:

<a href="gifts.php?$session[sessionurl]do=give&amp;r=$post[userid]"><img class="inlineimg" src="$stylevar[imgdir_button]/gift.png" alt="Send a gift to $post[username]" border="0"></a>

DiageoLiam
08-04-2009, 06:11 PM
I'm getting this error once I have ordered a gift for another user:

"
Fatal error: Cannot use object of type vB_DataManager_PM as array in /home/rhyy/public_html/forum/includes/class_bbcode.php(360) : eval()'d code on line 11
"

any ideas?

matthewhotdude
08-04-2009, 06:32 PM
It's installed but there are no gifts??

DiageoLiam
08-04-2009, 10:22 PM
I am able to order gifts for myself and another administrator but for all other users (including 2 further administrators) I am receiving the following error once I have selected a gift and proceed to buy it:

Fatal error: Cannot use object of type vB_DataManager_PM as array in /home/rhyy/public_html/forum/includes/class_bbcode.php(360) : eval()'d code on line 11

I get the error on page gifts.php?do=insert

I have literally tried everything... any ideas?

matthewhotdude
08-04-2009, 10:34 PM
Anyone any idea why I can't see any gifts?

mondiuk
08-05-2009, 08:56 AM
I installed this ok, but one thing there is only one opsion it sayes Send yourself a gift
the is no option to sedn gifts to other users..

any idea..

matthewhotdude
08-05-2009, 09:04 AM
Have you set the permissions. It's in the usergroup permissions at the bottom

matthewhotdude
08-05-2009, 09:35 AM
get it sorted? Wish I could get it to work. it looke like a awsome mod

matthewhotdude
08-05-2009, 02:56 PM
Got it sorted. The gifts show up in the user cp. but in the PM that gets sent to the person you recieves the gift it's just a red x

??

mondiuk
08-05-2009, 09:50 PM
oh man is workin grate thank's.. i managed to setet all up and allso translated all in my lunguage, the users loved..

thank's milion times

mondiuk
08-05-2009, 09:52 PM
is there any way to upload many gifts on the same time in stead of one..

i mean like avatars you apload them to images directory then you conwert them from admincp

webgroup
08-10-2009, 03:25 AM
Database error in vBulletin 3.8.2:

Invalid SQL:
SELECT user.* FROM vbnewuser WHERE usergroupid = 6;

MySQL Error : Unknown table 'user'
Error Number : 1051
Request Date : Monday, August 10th 2009 @ 12:11:21 AM
Error Date : Monday, August 10th 2009 @ 12:11:22 AM
Script : http://www.mysite.net/foruml/admincp/gifts.php?do=processcredits
Referrer : http://www.mysite.net/forum/admincp/gifts.php?do=masscredit


The script is looking for table 'user" which don't exists, I use a prefix for my vbulletin tables.

How can I fix this?

webgroup
08-13-2009, 07:00 PM
nobody??

matthewhotdude
08-13-2009, 07:24 PM
Would have been a awsome mod if it had been supported

webgroup
08-16-2009, 02:32 AM
bumpy bumpy

klaush
09-23-2009, 09:16 PM
Same here...


Database error in vBulletin 3.8.2:

Invalid SQL:
SELECT user.* FROM vbnewuser WHERE usergroupid = 6;

MySQL Error : Unknown table 'user'
Error Number : 1051
Request Date : Monday, August 10th 2009 @ 12:11:21 AM
Error Date : Monday, August 10th 2009 @ 12:11:22 AM
Script : http://www.mysite.net/foruml/admincp/gifts.php?do=processcredits
Referrer : http://www.mysite.net/forum/admincp/gifts.php?do=masscredit


The script is looking for table 'user" which don't exists, I use a prefix for my vbulletin tables.

How can I fix this?

klaush
09-23-2009, 09:35 PM
Disable the "Advanced BBCode Permisisions"; that should fix it.

I'm getting this error once I have ordered a gift for another user:

"
Fatal error: Cannot use object of type vB_DataManager_PM as array in /home/rhyy/public_html/forum/includes/class_bbcode.php(360) : eval()'d code on line 11
"

any ideas?

DS MrSinister
09-24-2009, 12:19 AM
Database error in vBulletin 3.8.2:

Invalid SQL:
SELECT user.* FROM vbnewuser WHERE usergroupid = 6;

MySQL Error : Unknown table 'user'
Error Number : 1051
Request Date : Monday, August 10th 2009 @ 12:11:21 AM
Error Date : Monday, August 10th 2009 @ 12:11:22 AM
Script : http://www.mysite.net/foruml/admincp/gifts.php?do=processcredits
Referrer : http://www.mysite.net/forum/admincp/gifts.php?do=masscredit


The script is looking for table 'user" which don't exists, I use a prefix for my vbulletin tables.

How can I fix this?

download the attachment and place it in the admincp folder.

klaush
09-24-2009, 06:12 AM
You made my day! Thanks!

download the attachment and place it in the admincp folder.

DS MrSinister
09-24-2009, 08:32 PM
You made my day! Thanks!

your very welcome...

TNCclubman
10-21-2009, 06:53 PM
is this still in beta stage or can we upload this over our old christian 'gifts' mod.

should one uninstall that one, then import this one?

I dont mind losing all the old gifts, havent used that mod since I went from 3.7 to 3.8...

Julie
10-22-2009, 02:00 PM
I did notice a tiny language bug, when giving a gift:

"Please select a gift categorie on the left."

'categorie' should be 'category'.


If anyone is wondering where they can change this language bug, go into

Style manager, select edit templates from your style(s), scroll down the list to Gift Templates, expand that list, open gifts_add_category_select.

Edit: On fresh install, what is it that sets up the inital credits? I looked through my database user table, and found that 7 totally random users have totally random values of credits :S

Edit 2: When editing a user in the admin panel, the credits field/box has attached itself to another 'box'. I have the Quick Account Switch (https://vborg.vbsupport.ru/showthread.php?t=217771&highlight=switch) mod installed, and Credits has attached itself to that. See the screenshot attached... Not a biggie, just a small FYI :)

Julie
10-22-2009, 02:49 PM
<i>Edited because I'm not sure if what I wrote (SQL) is valid anymore!</i>

great kitten
08-31-2011, 04:02 AM
and works by% 100 and you can put some caption of image, thanks