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
  #2  
Old 09-02-2008, 05:32 AM
christian8a's Avatar
christian8a christian8a is offline
 
Join Date: May 2007
Location: Washington State
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

reserved
Reply With Quote
  #3  
Old 09-02-2008, 06:32 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks nice. On your buy now page on your site which is still up. It says it will not work if you have a table prefix (which I do). Is this fixed now?
Reply With Quote
  #4  
Old 09-02-2008, 07:13 AM
Endurer Endurer is offline
 
Join Date: Sep 2006
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for releasing it here.
Reply With Quote
  #5  
Old 09-02-2008, 07:39 AM
emtee emtee is offline
 
Join Date: Aug 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about adding it to postbit so people can see their gifts in postbit (preferably right above their signatures) ?
Reply With Quote
  #6  
Old 09-02-2008, 07:54 AM
RedeemedWarrior RedeemedWarrior is offline
 
Join Date: Apr 2008
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yay! I'll be testing this out later on my textvb
Reply With Quote
  #7  
Old 09-02-2008, 08:00 AM
choccyclaire choccyclaire is offline
 
Join Date: Jan 2008
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Judging by the screen shot, your profile layout is different. How would this show on the default skin?

EDIT: Or won't it?
Reply With Quote
  #8  
Old 09-02-2008, 08:06 AM
masons_mum masons_mum is offline
 
Join Date: Aug 2008
Location: Where the haggis run free
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed but i have nowhere to add gifts in admin panel or set permissions in user groups. I am fairly certain my vbulletin doesnt have a table prefix set.
Reply With Quote
  #9  
Old 09-02-2008, 08:30 AM
RedeemedWarrior RedeemedWarrior is offline
 
Join Date: Apr 2008
Posts: 415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same admincp issue here
Reply With Quote
  #10  
Old 09-02-2008, 08:33 AM
masons_mum masons_mum is offline
 
Join Date: Aug 2008
Location: Where the haggis run free
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is what i have in my config file:

Quote:
****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';
so i presume that means i dont have a prefix? I am using 3.7.0
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 08:09 PM.


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.05195 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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
  • (1)bbcode_php
  • (1)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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