The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
MyLs1 Gifts ( Send gifts or drinks! ) Details »» | |||||||||||||||||||||||||||
MyLs1 Gifts ( Send gifts or drinks! )
Developer Last Online: Nov 2023
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:
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
|
Comments |
#262
|
||||
|
||||
Thats what Im saying... its so easy to make your own, just google image what you want, crop it down to 70X70 and upload it. Hardly worth bothering the coder to do something so simple.
|
#263
|
||||
|
||||
Quote:
is there a way to show the gifts, each one on the postbit? can you give me a code i can make this happen please? i really need them to show on postbit_legacy thanks!!! |
#264
|
|||
|
|||
Found a minor bug:
If PM inbox of the gift recipient is full the gift will fail, having looked at the code it seems that this was thought about but not implemented correctly: Original Code (gifts.php) Code:
// Force the PM through $doit['adminpermissions'] = 2; // create the DM to do error checking and insert the new PM $pm->set('fromuserid', $senderid); $pm->set('fromusername', $sender); $pm->set('title', 'You have a new gift!'); $pm->set('message', $pmcontents); $pm->set_recipients($recipient['username'], $do); $pm->set('dateline', TIMENOW); $pm->save(); Code:
// Force the PM through $doit['adminpermissions'] = 2; // create the DM to do error checking and insert the new PM $pm->set('fromuserid', $senderid); $pm->set('fromusername', $sender); $pm->set('title', 'You have a new gift!'); $pm->set('message', $pmcontents); $pm->set_recipients($recipient['username'], $doit); $pm->set('dateline', TIMENOW); $pm->save(); EDIT 1: Also, although it would be great to show gift count in postbit the suggestion made is a really bad idea, especially if you have a busy forum. If you use this hack it will increase your SQL query calls dramatically as an additional query will be made for every member that has posted in a thread every time that thread page is displayed. EDIT 2: Just spotted that one of the templates is not being cached: Original Code (gifts.php): Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'GIFTS',
'gifts_list_bit',
'gifts_list_row_start',
'gifts_list_row_break'
);
Updated Code (gifts.php): Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'GIFTS',
'gifts_list_bit',
'gifts_list_row_start',
'gifts_list_row_break',
'gifts_add_category_select'
);
|
#265
|
||||
|
||||
Thanks for the tips Mr Eyes!
Chris, you might want to adjust and reupload that gifts.php file for future folks using this mod. |
#266
|
||||
|
||||
^ It won open the link when you click on My Gifts with that fix
|
#267
|
||||
|
||||
Christian, which fix causes that? I just noticed that error message myself.
Is it the $do and $doit, one? Should we do the other fix for the cache though? |
#268
|
|||
|
|||
Quote:
Which one of the two fixes? The template or the PM permissions? Also whats the error you see? EDIT 1: If it is the template fix it might be the comma that needs to be added after 'gifts_list_row_break'. Although I made it bold it wasn't immediately obvious it needed adding, so I have changed the post to mark the changes in red. |
#269
|
||||
|
||||
Quote:
|
#270
|
||||
|
||||
Yea now it worked fine.. What about that issue of the Postbit Gift count?
What do you mean, needs to be corrected or it will be an issue for busy forums? |
#271
|
||||
|
||||
Chris, what do we have to do to upgrade? Just overwrite the gifts.php file?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|