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)

solboy 12-21-2008 04:04 PM

Can you tell me what is causing this error message being sent to me from my forum?

Quote:

SELECT COUNT(*) FROM gifts AS gifts WHERE recipientid =;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near '' at line 3
Error Number : 1064
Request Date : Sunday, December 21st 2008 @ 01:00:39 PM
Error Date : Sunday, December 21st 2008 @ 01:00:39 PM
Script : http://mywebsite.com/showthread.php?p=304327
Referrer :
IP Address : **.**.**.***
Username : Unregistered
Classname : vB_Database
MySQL Version :

MissKalunji 12-22-2008 03:56 PM

i wonder the same thing

rob01 12-24-2008 10:20 PM

for all users of this mod you should do this

first open - Gifts Memberlist Cache (inside your plugin section)

and add this: $globaltemplates[] = 'gifts_list_member_nogifts';

so it should look like this :

$globaltemplates[] = 'memberinfo_block_gifts';
$globaltemplates[] = 'gifts_list_row_start';
$globaltemplates[] = 'gifts_members_list_bit';
$globaltemplates[] = 'gifts_list_row_break';
$globaltemplates[] = 'gifts_list_member_nogifts';

GlamRockTalk 12-25-2008 01:51 AM

rob01,

Any particular reason we have to add this line? What does it do? Remember, you're dealing with some beginners here in some cases :)

MissKalunji 12-25-2008 09:02 PM

it will cache it which means less queries and less wasted server loads

GlamRockTalk 12-26-2008 03:42 AM

Thanks rob01 and MissKalunji :D

amish_irish 01-02-2009 03:25 PM

Quote:

Originally Posted by solboy (Post 1690418)
Can you tell me what is causing this error message being sent to me from my forum?

I am getting the same error. Would love a fix. It seems that it isn't passing the userID to the query

edytwinky 01-05-2009 02:16 PM

Is there any plan to modify this to work with vbucks or icash or some points mod?

TNCclubman 01-08-2009 08:05 PM

Will this gifts mod work on vB 3.8?

acast 01-10-2009 04:32 AM

Hi friends, i am working in 3.6.6, the product works perfect, its great, but i have one problem. I dont have this code in my memberinfo:

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

So if i only put this:
$blocks[gifts]

I cant see anything in the member profile, also if i put all the code. Anybody knows what i have to put in my memberinfo template to see the gifts in member profiles?

Thanks if anybody can help me.

acast 01-10-2009 08:08 PM

I put the code of the GIFTS template in the member info template and now i see the tables there, but the code is not connected with the id of the user. If anybody can help me, please...

EDIT: Could be the problem that i have in vplaza another gifts??

christian8a 01-11-2009 01:12 AM

Quote:

Originally Posted by acast (Post 1707736)
I put the code of the GIFTS template in the member info template and now i see the tables there, but the code is not connected with the id of the user. If anybody can help me, please...

EDIT: Could be the problem that i have in vplaza another gifts??

Sorry man, I dont know how will it work on any version prior to 3.7.x There should be a way though but I dont know how :(

acast 01-11-2009 02:14 AM

Quote:

Originally Posted by christian8a (Post 1708061)
Sorry man, I dont know how will it work on any version prior to 3.7.x There should be a way though but I dont know how :(

Hi, friend, thanks for your answer.

I put a cap of my problem:

http://img83.imageshack.us/img83/4459/21pi9.jpg
https://vborg.vbsupport.ru/

As you can see in the second one is incomplete.

I cant connect there the user id with the data.

I put another code in a link on postbit and it worked, but there i cant do it.

Here is the code that i put in member info:

Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $userinfo[username]'s Gifts</title>

</head>
<body>



<table class="alt1" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder alt1">
<thead>
<tr>
<td class="tcat" colspan="$vboptions[gifts_perrow]">$username's $vbphrase[gifts]</td>
</tr>

<if condition="$userinfo['userid'] != $vbulletin->userinfo['userid'] AND $vbulletin->bf_ugp_forumpermissions['canpostnew']">
<tr>
<td class="alt2 smallfont" colspan="$vboptions[gifts_perrow]"> <a href="gifts.php?$session[sessionurl]do=give&amp;r=$userid" rel="nofollow">Send gift to $username</a> | <a href="member.php?$session[sessionurl]u=$userid">Back to $username's profile</a>
</tr>
<else />
<tr>
<td class="alt2 smallfont" colspan="$vboptions[gifts_perrow]"> <a href="gifts.php?$session[sessionurl]do=give&amp;r=$userid" rel="nofollow">Send yourself a gift</a> | <a href="member.php?$session[sessionurl]u=$userid">Back to $username's profile</a></td>
</tr>
</if>

</thead>
<tbody>
<tr><td colspan="4" class="tborder" style="padding:1px"></td></tr>
$gifts_bit
<tr><td colspan="4" class="tborder" style="padding:1px"></td></tr>

<if condition="$userinfo['userid'] != $vbulletin->userinfo['userid'] AND $vbulletin->bf_ugp_forumpermissions['canpostnew']">
<tr>
<td class="alt2 smallfont" align="right" colspan="$vboptions[gifts_perrow]"> <a href="gifts.php?$session[sessionurl]do=give&amp;r=$userid" rel="nofollow">Send gift to $username</a> | <a href="member.php?$session[sessionurl]u=$userid">Back to $username's profile</a>
</tr>
<else />
<tr>
<td class="alt2 smallfont" align="right" colspan="$vboptions[gifts_perrow]"> <a href="gifts.php?$session[sessionurl]do=give&amp;r=$userid" rel="nofollow">Send yourself a gift</a> | <a href="member.php?$session[sessionurl]u=$userid">Back to $username's profile</a></td>
</tr>
</if>

<tr><td colspan="4" class="tborder" style="padding:1px"></td></tr>

</tbody>
</table>
<if condition="$page_navigation"><div style="margin-top:4px">$page_navigation</div></if>
<br />

<if condition="$userinfo[userid] == $vbulletin->userinfo[userid]">
<form action="gifts.php" method="get">
<table cellspacing="$stylevar[cellspacing]" cellpadding="$stylevar[cellpadding]" class="tborder" border="0" width="100%">
<thead>
      <tr>
            <td class="tcat" colspan="4">Display Options</td>
      </tr>
</thead>
<tbody>
        <tr>
            <td class="alt1">
<div class="smallfont">
                        Sort By: <select name="sort">
                                                        <option value="sender"<if condition="$sort=='sender'"> select="selected"</if>>Giver</option>
                                                        <option value="dateline"<if condition="$sort=='dateline'"> selected="selected"</if>>Date/Time</option>
                                                        <option value="catid"<if condition="$sort=='catid'"> selected="selected"</if>>Category</option>
                                                        </select>
</div>
                                                </td>
                                                <td colspan="2" rowspan="2"class="alt1"><div class="smallfont">Amount of Items Perpage:
<input type="text" class="bginput" name="pp" size="6" value="$perpage" /></div></td>
                                                <td rowspan="2" class="alt1"><input type="submit" value="Show Media" class="button" /></td>
                                        </tr>
                                        <tr>
                                                <td class="alt1">
<div class="smallfont">
                                                        Sort Order: <select name="order">
                                                        <option value="ASC" <if condition="$order=='ASC'"> selected="selected"</if>>Ascending</option>
                                                        <option value="DESC"<if condition="$order=='DESC'"> selected="selected"</if>>Descending</option>
                                                        </select>
</div>
                                                </td>
                                        </tr>
                                        </table>
                                </form>
</if>



</body>
</html>

Thanks if anybody can help me.

acast 01-11-2009 06:46 AM

Another important question:

Is any form to integrate this with a cash system or to put a limit of gifts? Because users can make flood if arent limits...

Phoenixgal 01-13-2009 01:30 PM

I'm getting this code in PM's!

Quote:

<!-- BEGIN TEMPLATE: gifts_pm_template -->
<!-- END TEMPLATE: gifts_pm_template -->

I noticed someone else had this problem but was never responded to. :(

Veer 01-13-2009 02:13 PM

Hi, christian8a,
When it will be updated for vB 3.8, any plan?

christian8a 01-15-2009 10:29 AM

It works fine on 3.8.x no bugs reported but Im still waiting for the coder to get this updated.

TNCclubman 01-20-2009 11:49 PM

Anyone try sending a gift to someone that has 'no private messages' set in their options?

I thought it crashed my server...

GSeybold 01-21-2009 01:25 AM

Hello Christain,
THank you for this mode. I'm a newbie and I'm pretty sure I did everything right but I cannot get the followiing to show up in my ACP? Can someone help? Thank so much

Gabby

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 )

GSeybold 01-23-2009 01:49 AM

Can anyone help me with this? Thanks so much:)

Gabby

GSeybold 01-24-2009 11:31 AM

Okay I've spend the last four hours doubting myself and I just can't figure out what I'm doing wrong. My images will not show up in gift list no matter what I do. I've reinstalled and all may paths are set and everything upload. Can someone please take a look at the attachments and see if I'm doing something wrong? Very much appreciated. :D

Thanks so much,

Gabby

TNCclubman 01-24-2009 01:52 PM

make sure you enter images/gifts/drinks/shot_full.jpg or whatever the name of the gift is in the path. You're not entering the correct path, thats why its showing a broken image.

'right click' over the broken image and post what it says here so I can see what you're entering...

Veer 01-24-2009 02:48 PM

Quote:

Originally Posted by christian8a (Post 1713227)
It works fine on 3.8.x no bugs reported but Im still waiting for the coder to get this updated.

okay, will wait.

Please also include a new "Gifts Showcase" option in postbit to display gift images.

thanks.

GSeybold 01-24-2009 09:25 PM

Ok.. Thank you TNCclubman:)

I've right clicked over a non showing image in the lift of gift in the gift manager. This is what it's says. Ive entered that path and it's not working either. prior I had that path minus the admincp.

admincp/images/gifts/drinks/budweiser.gif

Thank you very much for your help.

Gabby




Quote:

Originally Posted by TNCclubman (Post 1723290)
make sure you enter images/gifts/drinks/shot_full.jpg or whatever the name of the gift is in the path. You're not entering the correct path, thats why its showing a broken image.

'right click' over the broken image and post what it says here so I can see what you're entering...


TNCclubman 01-24-2009 10:48 PM

It should be

images/gifts/drinks/budweiser.gif

is your vbulletin in a folder or in the root? Like is it yoursite.com/forum or something like that? If so, add that to the front as well like

forum/images/gifts/drinks/budweiser.gif

try both of those... if they still dont work, try adding a forward slash too at the begining like

/images/gifts/drinks/budweiser.gif

or

/forum/images/gifts/drinks/budweiser.gif

try those 4 ways

GSeybold 01-25-2009 12:38 AM

HI TN,
Thank you for your reply. My forum is in the root. I've tried all those that you selected, I still the same thing.

Gabby

TNCclubman 01-25-2009 11:18 PM

check the permissions of the folder and the files. Make sure they're 644 (you can change the permissions with the ftp program you use to upload the files.

TNCclubman 01-25-2009 11:19 PM

whats your website, let me have a look

ngham4host 01-27-2009 05:28 PM

hello,

i did all the steps also i did the plugins that christian8a said in
https://vborg.vbsupport.ru/showpost....&postcount=159

How can disply the gifts pic or icons in Postbit Legacy

GSeybold 02-05-2009 01:53 AM

Here is a sheet load of gifts. Website opens right up to all the gifts. I hope they help someone.

http://pages.mckoss.com/gifts.htm

TNCclubman 02-05-2009 03:05 AM

Thats a great resource for people, good find

GlamRockTalk 02-05-2009 09:58 PM

Wow GSeybold thanks for sharing! :D

TNCclubman 02-05-2009 10:23 PM

Ever since I upgraded to vB 3.8.1, and installed a different syle (New Facebook) I lost my gifts, they're no where to be seen.

Are you supposed to re-install this gift mod? Whats the procedure to get all the gifts showing again... Keep in mind it shouldnt be located in the middle of the profile, but instead on a block under the 'ALBUMS' on the left side...

anyone do this yet?

GSeybold 02-07-2009 03:57 AM

Here is another site you can get some ANIMATED gifts from. There's alot to sift through but I've found some I use and my members enjoy. This will probably take at least an hour to sift through everything and pick out what suits your fancy.

http://www.geocities.com/victoriahollylynn//index.html

tigrattack 02-07-2009 04:05 PM

Is there a version of this that will work with 3.6.x?

I got it working most of the way...the only thing is it doesn't show the member's gift images in their profiles

ViciousCode 02-13-2009 04:35 PM

is there way to import the images of the gifts by reading the directory instead of adding one by one?

DS MrSinister 02-14-2009 03:07 AM

Quote:

Originally Posted by TNCclubman (Post 1735592)
Ever since I upgraded to vB 3.8.1, and installed a different syle (New Facebook) I lost my gifts, they're no where to be seen.

Are you supposed to re-install this gift mod? Whats the procedure to get all the gifts showing again... Keep in mind it shouldnt be located in the middle of the profile, but instead on a block under the 'ALBUMS' on the left side...

anyone do this yet?

add a new plugin

Product - gift system

Hook Location - member_build_blocks_start

Title - Gifts: In MEMBERINFO Edit

Execution Order - 6

used this code

Code:

eval('$template_hook[profile_right_album] .= "' . fetch_template('memberinfo_block_gifts') . '";');

MissKalunji 02-14-2009 08:49 PM

Quote:

Originally Posted by GSeybold (Post 1734806)
Here is a sheet load of gifts. Website opens right up to all the gifts. I hope they help someone.

http://pages.mckoss.com/gifts.htm

Thanks!

tigrattack 02-22-2009 03:23 PM

Hi all,

I've gotten this to work for the most part with vb 3.6.5...

The only part that is not working is the showing of the gifts in a profile...

Although, if you 'View Members Gifts' they show...

Is there something I can do to have them show on the main page of the members profile?

This is what it looks like in the profile:

http://www.gaming-forum.org/temp/Gifts1.jpg

Gamelobby 03-04-2009 06:31 PM

Is there any reason the $blocks[gifts] goes before the <div ..?


All that seems to do is put it on top, but what if we wanted it to show lower in the blocks.?
Is there a problem with setting it lower.?

Quote:

Add this before the <div id="profile_tabs">:

$blocks[gifts]
<div id="profile_tabs">
$template_hook[profile_left_first]
$blocks[visitor_messaging]
$blocks[aboutme]
$blocks[stats]
$blocks[gifts] <-- is this going to screw something up.?
$blocks[friends]
$blocks[infractions]
$blocks[contactinfo]
$template_hook[profile_left_last]
</div>


All times are GMT. The time now is 04:50 PM.

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.01595 seconds
  • Memory Usage 1,853KB
  • 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
  • (2)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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