Thread: Profile Enhancements - MyLs1 Gifts ( Send gifts or drinks! )
View Single Post
  #294  
Old 01-11-2009, 02:14 AM
acast acast is offline
 
Join Date: Aug 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by christian8a View Post
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:




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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01600 seconds
  • Memory Usage 1,800KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete