vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - MyLs1 Gifts ( Send gifts or drinks! ) (https://vborg.vbsupport.ru/showthread.php?t=189788)

christian8a 09-01-2008 10:00 PM

MyLs1 Gifts ( Send gifts or drinks! )
 
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!

christian8a 09-02-2008 05:32 AM

reserved

Hornstar 09-02-2008 06:32 AM

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?

Endurer 09-02-2008 07:13 AM

Thanks for releasing it here.

emtee 09-02-2008 07:39 AM

How about adding it to postbit so people can see their gifts in postbit (preferably right above their signatures) ?

RedeemedWarrior 09-02-2008 07:54 AM

Yay! I'll be testing this out later on my textvb

choccyclaire 09-02-2008 08:00 AM

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

EDIT: Or won't it?

masons_mum 09-02-2008 08:06 AM

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.

RedeemedWarrior 09-02-2008 08:30 AM

same admincp issue here

masons_mum 09-02-2008 08:33 AM

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 :)

christian8a 09-02-2008 08:37 AM

Quote:

Originally Posted by RedeemedWarrior (Post 1612613)
same admincp issue here

Attached more screenshots of what should be the admincp for gifts.

Quote:

Originally Posted by masons_mum (Post 1612617)
this is what i have in my config file:
so i presume that means i dont have a prefix? I am using 3.7.0 :)

Yea, if you didnt set any should work perfect.

masons_mum 09-02-2008 08:41 AM

its not working perfectly, i dont have the admin cp gifts section, nor the ability to set permissions. All files were uploaded to the correct place, i have checked and rechecked. Tried uninstalling product then reinstalling. Everything else is displaying but the gifts section in the admin panel and the user group permissions

christian8a 09-02-2008 08:49 AM

I really dont see why It wouldnt, this never happened before on any of my sites.
I have 3.7.0 and no table prefix and it always worked perfect.

Did you refresh the browser or on the includes folder are the 2 files there?

RedeemedWarrior 09-02-2008 08:52 AM

Hello

the first part i have. (the Vboptions style one), the part under users and the part in usergroups doesn't show. i tried it on my main and Testvb to no affect sadly

its a very good mod though from what i've heard, i hope it can be made to work :)

Cybertims 09-02-2008 09:16 AM

same here, no usergroup permissions or admincp section

macc 09-02-2008 09:48 AM

same problem like in few posts above .... have vb 3.7.3

reg

macc

PaylaX 09-02-2008 09:53 AM

I have a problem

When I click on Give a gift link:
Quote:

you do not have permission to access this page. This could be due to one of several reasons
AND, installed but I have nowhere to gifts options in admin panel under the User options.

masons_mum 09-02-2008 10:56 AM

everything is definately uploaded as it should be. I notice it doesnt install the product with the product name, it misses out the capitals so installs ys1_ifts instead. I dont know if that has anything to do with it, probably not!

jlew24asu 09-02-2008 12:07 PM

very cool thanks. (you love you some facebook hehe) :up:

Butcher 09-02-2008 01:13 PM

same problem with adding gifts not visible in adminCP

g0dfather1984 09-02-2008 02:44 PM

Same as others, no gifts in the admin cp.

v12kid 09-02-2008 03:32 PM

waiting for a fix and then ill install :)

rinkrat 09-02-2008 04:11 PM

Works great for me :)

R-D 09-02-2008 04:37 PM

The missing admin menu can be easily fixed. Open the file cpnav_gifts.xml, located in includes/xml/

Find:
Code:

<navgroups product="cole_gifts">
And Replace With:
Code:

<navgroups product="myls1_gifts">


OR upload the attached file to includes/xml/


The Gifts menu will then appear in the admin CP between Users and Usergroups.

PaylaX 09-02-2008 04:49 PM

Quote:

Originally Posted by R-D (Post 1612919)
The missing admin menu can be easily fixed. Open the file cpnav_gifts.xml, located in includes/xml/

Find:
Code:

<navgroups product="cole_gifts">
And Replace With:
Code:

<navgroups product="myls1_gifts">
OR upload the attached file to includes/xml/


The Gifts menu will then appear in the admin CP between Users and Usergroups.


it is work for me, thanks

g0dfather1984 09-02-2008 04:55 PM

Quote:

Originally Posted by R-D (Post 1612919)
The missing admin menu can be easily fixed. Open the file cpnav_gifts.xml, located in includes/xml/

Find:
Code:

<navgroups product="cole_gifts">
And Replace With:
Code:

<navgroups product="myls1_gifts">


OR upload the attached file to includes/xml/


The Gifts menu will then appear in the admin CP between Users and Usergroups.

That does work. Would you know why it isn't showing up to enable for group permissions?

PaylaX 09-02-2008 04:58 PM

Group permission isn't appear now ,

**********************************

fixed!

upload the attached file to includes/xml/

R-D 09-02-2008 05:12 PM

Quote:

Originally Posted by PaylaX (Post 1612937)
Group permission isn't appear now ,


**********************************

fixed!

upload the attached file to includes/xml/

I never even checked for that one. Thanks! :)

Veer 09-02-2008 05:16 PM

Nice hack but why are you limiting it by saying..

Quote:

This product will not install properly if you have set a table prefix for your site. Please double check. If everything is ok, proceed
So doesn't work for me, as my config.php file has a table prefix.

Please provide a fixed verson for this issue also.

thanks.

MissKalunji 09-02-2008 06:25 PM

for those with prefix : you might be able to hard code the database name (yourself) in the files (php and product)

Thats one alternative

fattony69 09-02-2008 06:44 PM

Is there anyway of integrating this with vbcredits?

christian8a 09-02-2008 06:59 PM

Quote:

Originally Posted by R-D (Post 1612919)
The missing admin menu can be easily fixed. Open the file cpnav_gifts.xml, located in includes/xml/

Find:
Code:

<navgroups product="cole_gifts">
And Replace With:
Code:

<navgroups product="myls1_gifts">


OR upload the attached file to includes/xml/


The Gifts menu will then appear in the admin CP between Users and Usergroups.

Thank you ;)

Im terribly sorry for missing that part, I uploaded a new zip file fixed.
Thanx again for letting me know

R-D 09-02-2008 07:05 PM

Quote:

Originally Posted by christian8a (Post 1613012)
Thank you ;)

Im terribly sorry for missing that part, I uploaded a new zip file fixed.
Thanx again for letting me know

An easy mistake to make. Thanks for releasing it. :)

F0xy 09-02-2008 07:44 PM

this would be great if it could be implemented with vbcredits were it would charge you forum credits to send gifts

The Chief 09-02-2008 08:00 PM

thanks for the release, looks great!

R-D 09-02-2008 08:56 PM

Quote:

Originally Posted by F0xy (Post 1613043)
this would be great if it could be implemented with vbcredits were it would charge you forum credits to send gifts

I was thinking of a similar idea, but instead of buying credits, it'd be more like using postcounts to enable gifts - eg. you make 10 posts, it unlocks something. At 15 posts, it unlocks something else (something better and worth more in real life) and so on...

I'll probably just end up modifying the script later this week to suit my board. I've got no use for credits, so encouraging posting would be far more useful for me.

This idea/mod has gone down very well with my staff, so thanks again, Chris. :)

massizero 09-02-2008 11:20 PM

Quote:

Originally Posted by F0xy (Post 1613043)
this would be great if it could be implemented with vbcredits were it would charge you forum credits to send gifts

With vbcredits it would be great!

apiasto 09-03-2008 12:31 AM

installed it but getting data base error on every option but setting.i am using 3.7.3

Invalid SQL:

SELECT
gift_type.gifttypeid, gift_type.title, gift_type.description,
gift_type.image, gift_type.active, gift_type.categoryid,
gift_categories.title AS categorytitle
FROM vb_gift_type
LEFT JOIN vb_gift_categories AS gift_categories ON gift_type.categoryid = gift_categories.categoryid
ORDER BY categoryid DESC;

MySQL Error : Table '******_db.vb_gift_type' doesn't exist

christian8a 09-03-2008 12:48 AM

Quote:

Originally Posted by apiasto (Post 1613205)
installed it but getting data base error on every option but setting.i am using 3.7.3

Invalid SQL:

SELECT
gift_type.gifttypeid, gift_type.title, gift_type.description,
gift_type.image, gift_type.active, gift_type.categoryid,
gift_categories.title AS categorytitle
FROM vb_gift_type
LEFT JOIN vb_gift_categories AS gift_categories ON gift_type.categoryid = gift_categories.categoryid
ORDER BY categoryid DESC;

MySQL Error : Table '******_db.vb_gift_type' doesn't exist

Read the note on the install instructions on this thread, sorry at this time it wont install if you have a table prefix.

Jeordie015 09-03-2008 01:49 AM

Quote:

Originally Posted by massizero (Post 1613181)
With vbcredits it would be great!

Or even real money like facebook does it. Like have some free ones and some that cost $1.


All times are GMT. The time now is 02:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01504 seconds
  • Memory Usage 1,836KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete