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
  #102  
Old 09-13-2008, 01:09 PM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm very curious as to why the newly uploaded memberinfo template suddenly includes this:
Code:
<if condition="$show['member']">!<else />! <a href="http://www.newmusicstage.com/fcb.php" class="smallfont">(Buy it now!)</a></if>

A link to your paid product is only allowed when the product is a Lite version, and even then, promotional language such as "(Buy it now!)" is not allowed in the link.

Quote:
Originally Posted by vBorg rules
Lite versions of commercial modifications are permitted to be released here as long as:
E. A single link back to the commercial version is permitted, as long as no pricing or promotional language is used in the link or embedded into the lite version.
Reply With Quote
  #103  
Old 09-13-2008, 01:16 PM
Daisyboo Daisyboo is offline
 
Join Date: Jul 2008
Location: Somerset UK
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DS MrSinister View Post
in your config.php file open it and look for table prefix see if you enter any info..

Ahh I thought it was someting like that but I assumed that all databases had a prefix...so yes I do.
Would've loved this, will have to wait I guess!

Thanks for your reply
Reply With Quote
  #104  
Old 09-13-2008, 01:38 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Daisyboo View Post
Ahh I thought it was someting like that but I assumed that all databases had a prefix...so yes I do.
Would've loved this, will have to wait I guess!

Thanks for your reply

your welcome
Reply With Quote
  #105  
Old 09-13-2008, 01:49 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by christian8a View Post
sweetie, sorry you are still having problems. It worked fine on other sites what makes me wonder what the issues were, I double checked the files and I think I found something that needed to be fixed so I uploaded other version, try reuploading the files and reinstalling the product by selecting overwrite file on the product/manager.
Let me know if it works
Hi Chris =) do i need to do this editing again ? why you change it to this ?

Quote:
<bitfields product="cole_gifts">
Quote:
Originally Posted by EvilJohn View Post
Don't give up Katie. I had the same problems in the admin CP. Here is what I did to get it working.
Go to upload/includes/xml/bitfield_gifts and cpnav_gifts

Change this line in both documents.

<navgroups product="MYLs1_gifts"> to <navgroups product="myls1_gifts">

Then over write via FTP.
When I did this all worked fine. (Me waits on gift) LOL


Edit: Thanks for this mod BTW. How can I disable the "Send yourself a gift"
Reply With Quote
  #106  
Old 09-13-2008, 03:46 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to mass import (add) gifts based on folder name?
Reply With Quote
  #107  
Old 09-13-2008, 05:50 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas on when or if the table prefix bug will be fixed? I love this mod
________
Fisting Wife
Reply With Quote
  #108  
Old 09-13-2008, 06:56 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 katie hunter View Post
Hi Chris =) do i need to do this editing again ? why you change it to this ?
That was causing the problem, I renamed the product I forgot some files but now they are all named the same way, be sure to reupload the files not just reinstall, except for the images folder. Put overwrite when you reinstall and your settings will not change.

Quote:
Originally Posted by chadi View Post
Is there a way to mass import (add) gifts based on folder name?
The way you add smilies, that would be nice addon, hopefully soon.

Quote:
Originally Posted by J12610AFE2D3 View Post
Any ideas on when or if the table prefix bug will be fixed? I love this mod
Not yet man, sorry but hopefully somebody here would get a fix for that, I just dont know how to fix that.
Reply With Quote
  #109  
Old 09-13-2008, 08:35 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Chris =s this new update has more bugs then ever, first the gift are repeated twice in my profile, and let say you have 24 gifts in one category, only 20 of them will show.

p.s i had two gift xml in my product, it wasn't one ( i mean it didn't overwrite) it added anew xml product , i had to restore my forum because that new one caused db error in my admin cp =/
Reply With Quote
  #110  
Old 09-13-2008, 10:34 PM
EvilJohn's Avatar
EvilJohn EvilJohn is offline
 
Join Date: Apr 2006
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by R-D View Post
I'm very curious as to why the newly uploaded memberinfo template suddenly includes this:
Code:
<if condition="$show['member']">!<else />! <a href="http://www.newmusicstage.com/fcb.php" class="smallfont">(Buy it now!)</a></if>

A link to your paid product is only allowed when the product is a Lite version, and even then, promotional language such as "(Buy it now!)" is not allowed in the link.
I know this mod was for sale at one time. He has now released it for free. So just an oversight on his part.
Reply With Quote
  #111  
Old 09-14-2008, 04:47 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 katie hunter View Post
Hi Chris =s this new update has more bugs then ever, first the gift are repeated twice in my profile, and let say you have 24 gifts in one category, only 20 of them will show.

p.s i had two gift xml in my product, it wasn't one ( i mean it didn't overwrite) it added anew xml product , i had to restore my forum because that new one caused db error in my admin cp =/
Sorry to hear that, there are no bugs, in your case it might just got mixed with the other one. Please keep in mind that everytime you install a product you should use a test forum, untill it works perfectly you use it on your main site, by experience I tell you this
Did you try, uninstalling both, and reinstalling the new one, with its new files uploaded?

R-D if you are very curios about why, is because some after some people having problems with the one I installed on my site, I went over and exported the actual one that I have on my site wich had that link, theres no more sale for that product so I could care less about a promotional link there.
Instead because of you I added now a credit link (wich is allowed), for a bit of appreciation of our work so make sure you add it if you use the product, thanx.
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 01:22 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.11443 seconds
  • Memory Usage 2,329KB
  • 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
  • (11)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
  • (1)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