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

Quote:
Originally Posted by J12610AFE2D3 View Post
I used the original product file from the coder and no I dont have a table prefix

I think what was causing the problem was a plugin the coder wrote earlier in this thread for the postbit display of gift count.

What it was causing was for certain pages from threads to throw up a DB error. It didnt affect all of them only a few.
Thats weird, I never had that problem
Reply With Quote
  #193  
Old 10-12-2008, 11:52 PM
christian8a's Avatar
christian8a christian8a is offline
 
Join Date: May 2007
Location: Washington State
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by crkgb View Post
What is the difference between this mod and the $35 one?
Free for all the members on here and with a valid vbulletin license.
Reply With Quote
  #194  
Old 10-13-2008, 01:20 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

J12610AFE2D3

see if this one any better for you ...........

https://vborg.vbsupport.ru/showpost....&postcount=164
Reply With Quote
  #195  
Old 10-13-2008, 01:28 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, would be great for more gifts but thanks
Reply With Quote
  #196  
Old 10-18-2008, 08:42 PM
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
Location: YeMeN
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

please add gifts in post

$post[gifts]

put the same blocks in Memberinfo
Reply With Quote
  #197  
Old 10-21-2008, 12:07 PM
christian8a's Avatar
christian8a christian8a is offline
 
Join Date: May 2007
Location: Washington State
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7lanet View Post
please add gifts in post

$post[gifts]

put the same blocks in Memberinfo
what do you mean
Reply With Quote
  #198  
Old 10-24-2008, 11:40 AM
christian8a's Avatar
christian8a christian8a is offline
 
Join Date: May 2007
Location: Washington State
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaycob View Post
Excellent, would be great for more gifts but thanks
Yep, soon
Reply With Quote
  #199  
Old 10-24-2008, 06:40 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the memberinfo block template has a link to your website when someone isn't logged in can i remove it?
Reply With Quote
  #200  
Old 11-04-2008, 02:17 PM
Miknan Miknan is offline
 
Join Date: Jun 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I get when I try to send a gift or view gifts:

Quote:
Val, 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.
No problems to this point, great mod by the way! So how do I give permissions?
Reply With Quote
  #201  
Old 11-04-2008, 08:41 PM
Cobra-J82's Avatar
Cobra-J82 Cobra-J82 is offline
 
Join Date: Apr 2008
Location: Montreal
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Table Prefix is Fixed
Permissions is given from the Usergroup admincp link
More gifts can be downloaded from facebook as .png which wil give better quality images muhaha
I purchaced this hack like 2 months ago I guess
Never had a problem
but make sure if you have diferent template to include the gifts in the template images folder.

If you have problem with the $postbit

---
You have to add a new plugin to display gifts on the postbit legacy...

Hook Location: showthread_postbit_create

Title: Gifts in Postbit Legacy

Execution Order: 5

Plugin 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
---

Cheers Christian love ur work
hope you can create more of facebook stuff for vb
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 11:13 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.04925 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
  • (1)bbcode_php
  • (5)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