Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
MyLs1 Gifts ( Send gifts or drinks! ) Details »»
MyLs1 Gifts ( Send gifts or drinks! )
Version: 1.0.2, by christian8a christian8a is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.x Rating:
Released: 09-01-2008 Last Update: 11-30-2008 Installs: 124
Uses Plugins Template Edits
Additional Files  
No support by the author.

MyLs1.com Gifts ( Facebook Style )

This is a product that will allow members to send gifts to each other, The way Facebook does

This 1.0.2 Update just replace the gift.php file on the root directory.

This product was for sale before but now is finally released for free.
Brought to you by Myls1.com :up:

- MyLs1 Gifts Version 1.0.2

Demo Corvette Site:

http://www.eicorvette.com
Chevrolet corvette forums, ZR1, Stingray, C6, Z06, C5, C4, C3, C2, C1 - photos and more!

- All the credit goes to Cole2026 he is the designer/coder of this product. Very recomended person to work with :up:

- Special thanx to DS MrSinister for fixing the Table Prefix Issue.

#################### INSTALL ####################


1- Upload files to their respective folders:

admincp / gifts.php

images / gifts

includes / xml / bitfield_gifts
cpnav_gifts

root directory / gifts.php

2- Import product:

MyLs1_Gifts.xml

3- Memberinfo Template edit, find:

<div id="profile_tabs">
$template_hook[profile_left_first]
$blocks[visitor_messaging]
$blocks[aboutme]
$blocks[stats]
$blocks[friends]
$blocks[infractions]
$blocks[contactinfo]
$template_hook[profile_left_last]
</div>

Add this before the <div id="profile_tabs">:

$blocks[gifts]

So it will look like this-->

$blocks[gifts]

<div id="profile_tabs">
$template_hook[profile_left_first]
$blocks[visitor_messaging]
$blocks[aboutme]
$blocks[stats]
$blocks[friends]
$blocks[infractions]
$blocks[contactinfo]
$template_hook[profile_left_last]
</div>


4- Style manager:

Add this to Additional CSS Definitions


.explanation {
background-color:#FFFFCC; padding:3px;
}

#################### HOW TO USE ####################

--- How to set ---

Set your settings on the admin cp
Add gifts as follows:

example:

- Name of the gift: Beer
- Description of gift: Budweiser
- Choose category: drinks
- enter url ( images / gifts / drinks / budweiser.gif )


Provided are 2 folders, one for drinks and one for love
There are few drinks in a .gif format and some roses in a .gif format, but you will have to add your own gifts / icons

--- /How to set ---


--- How to use ---

On the members profile there will be the block called gifts
There are 2 links, Give a gift and View all.
When they click on Give a gift, it will take them to a page where the categories are.
Click on the categorie, check the gift to send, add messages and Give.

--- /How to use ---


Instructions provided on zip file.

The following is extra:

#################### GIFT COUNT ON POSTBIT ####################

To display gifts count on postbit's:

Add new plugin

Hook Location: showthread_postbit_create
Title: Gifts in Postbit Legacy
Execution Order: 5
Plugin PHP Code:
PHP Code:
$num_gifts $db->query_first(
    SELECT COUNT(*) 
    FROM " 
TABLE_PREFIX "gifts AS gifts 
    WHERE recipientid = " 
$post['userid'
,
DBARRAY_NUM); 
$post['gifts'] = $num_gifts[0]; 
Plugin is active: yes

Then on the postbit where you want to display it just put

(<a href="member.php?$session[sessionurl]u=$post[userid]">$post[gifts]</a>) gifts

#################### /GIFT COUNT ON POSTBIT ####################

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 11-11-2008, 11:37 AM
smooth-c smooth-c is offline
 
Join Date: Jan 2008
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any support?
Reply With Quote
  #213  
Old 11-11-2008, 02:12 PM
Prisim Prisim is offline
 
Join Date: May 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So wot about postbit or postbit_legacy templet
Reply With Quote
  #214  
Old 11-11-2008, 04:29 PM
tonyswifey tonyswifey is offline
 
Join Date: Apr 2008
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really don't want to uninstall this, it was easy to do for me but I'm missing the part where you enter the url for gifts. No gifts show up when I click on category. I missed a step and want to know how to fix it so I don't have to uninstall this thing.

Thanks to anyone who can help.
Reply With Quote
  #215  
Old 11-11-2008, 08:07 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smooth-c View Post
Code:
Database error in vBulletin 3.7.3:

Invalid SQL:

	SELECT
		gifts.gifttypeid, gifts.giftid, gifts.comment, gifts.message,
		gifts.private, gifts.recipient, gifts.recipientid, gifts.sender,
		gifts.senderid, gift_type.image
	FROM vb_gifts AS gifts
	LEFT JOIN vb_gift_type AS gift_type ON(gifts.gifttypeid = gift_type.gifttypeid)
	WHERE recipientid = 1136
	ORDER BY dateline DESC
	LIMIT 4;

MySQL Error   : Table 'discussdb.vb_gifts' doesn't exist
Error Number  : 1146
Request Date  : Sunday, November 9th 2008 @ 03:22:36 PM
Error Date    : Sunday, November 9th 2008 @ 03:22:36 PM
Script        : http://www.maximum-jackson.com/discussion/member.php?u=1136
Referrer      : http://www.maximum-jackson.com/discussion/index.php
IP Address    : xx.xx.xx.xxx
Username      : smooth-c
Classname     : vB_Database
MySQL Version : 5.0.45-log
Any ideas?
looks like you have something wrong with your tableprefix.. try this one it might help..

https://vborg.vbsupport.ru/showpost....&postcount=164

Quote:
Originally Posted by tonyswifey View Post
I really don't want to uninstall this, it was easy to do for me but I'm missing the part where you enter the url for gifts. No gifts show up when I click on category. I missed a step and want to know how to fix it so I don't have to uninstall this thing.

Thanks to anyone who can help.
in the admincp you need to go to gifts and add a new gift. don't forget to set the usergroup Permissions for each group..
Reply With Quote
  #216  
Old 11-11-2008, 08:29 PM
smooth-c smooth-c is offline
 
Join Date: Jan 2008
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DS MrSinister View Post
looks like you have something wrong with your tableprefix.. try this one it might help..

https://vborg.vbsupport.ru/showpost....&postcount=164



in the admincp you need to go to gifts and add a new gift. don't forget to set the usergroup Permissions for each group..
I re-installed it and looked at a profile and noticed there were no errors, was about to say a massive thanks (still will hehe) but when I looked in the gift settings in the AdminCP I was confronted with these errors;

Code:
atabase error in vBulletin 3.7.3:

Invalid SQL:

		SELECT
			gift_categories.title, gift_categories.categoryid, gift_categories.description
		FROM vb_gift_categories
		ORDER BY categoryid DESC;

MySQL Error   : Unknown column 'gift_categories.title' in 'field list'
Error Number  : 1054
Request Date  : Tuesday, November 11th 2008 @ 10:26:17 PM
Error Date    : Tuesday, November 11th 2008 @ 10:26:17 PM
Script        : http://www.maximum-jackson.com/discussion/admincp/gifts.php?do=listcategories
Referrer      : http://www.maximum-jackson.com/discussion/admincp/index.php?do=nav
IP Address    : xx.xx.xx.xxx
Username      : smooth-c
Classname     : vB_Database
MySQL Version : 5.0.45-log
Any help in resolving this issue would be greatly appreciated

Thank you very much
Reply With Quote
  #217  
Old 11-11-2008, 08:39 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you downloaded the zip file from the first post? try re download the file and upload them and overwrite them see if that helps..
Reply With Quote
  #218  
Old 11-11-2008, 09:32 PM
tonyswifey tonyswifey is offline
 
Join Date: Apr 2008
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DS MrSinister View Post


in the admincp you need to go to gifts and add a new gift. don't forget to set the usergroup Permissions for each group..

I am in the admincp and I am in user gifts and I just do not see the place to set url's and add a new gift. Sorry am I just overlooking something? and how would I Edit Usergroup Permissions for this mod? Thanks for your help!
Reply With Quote
  #219  
Old 11-12-2008, 01:18 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tonyswifey View Post
I am in the admincp and I am in user gifts and I just do not see the place to set url's and add a new gift. Sorry am I just overlooking something? and how would I Edit Usergroup Permissions for this mod? Thanks for your help!

ok for the image url'

Log in to the admincp expand the gift goto add new gift see where it says Image URL. thats where you enter the paths of the image.

for usergroup permissions login to the admincp to expand usergroup go to usergroup manager and edit each group..
Reply With Quote
  #220  
Old 11-13-2008, 01:03 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to limit the amount of gifts a user can give in a day or to a certain user?
Reply With Quote
  #221  
Old 11-13-2008, 02:13 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reeve of shinra View Post
Is there a way to limit the amount of gifts a user can give in a day or to a certain user?
not yet that i know of..
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08754 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete