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)

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


All times are GMT. The time now is 10:37 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.01456 seconds
  • Memory Usage 1,763KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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