View Single Post
  #524  
Old 04-11-2006, 08:59 PM
GamerJunk.net's Avatar
GamerJunk.net GamerJunk.net is offline
 
Join Date: Jan 2004
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CodeRed
Hey guys I've gotten a few PMs from people asking about my profile page that i had listed in the older thread so I thought i would post up the info here as well in case others are interested as well...


Click to see full size Profile Page ~450k

Link points to JPG screen capture since Guests can not view our forum's profile pages...

Installed hacks (that i can remember anyways!):

Who Viewed My Profile:
https://vborg.vbsupport.ru/showthread.php?t=91772

Userprofile Changed Date in Member Profile & recent changed on forumhome:
https://vborg.vbsupport.ru/showthread.php?t=101462

Parse BBCode in Custom Profile Fields:
(i believe this is the one that allowed paragraphs breaks in custom fields - you have include the fields you want parsed in the edit plugin section)
https://vborg.vbsupport.ru/showthread.php?t=103460

PhotoPost Recent Images on Profile Page:
(need PhotoPost forum access to get thread)
http://www.photopost.com/forum/showthread.php?t=121321

Link To Users Gallery In Profile [Updated]:
(need PhotoPost forum access to get thread - also think i used the previous version of this hack)
http://www.photopost.com/forum/showthread.php?t=118831

iTrader Hack v2.0.1:
https://vborg.vbsupport.ru/showthread.php?t=102965

Here is my MEMBERINFO code:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
</head>
<body>
$header
$navbar



<table width="100%" align="center" class="tborder" cellspacing="1" cellpadding="6">
	<tr>
		<td class="tcat"><b>$userinfo[musername]'s Profile Page</b>
		</td>
	</tr>
</table>
<table width="100%" class="tborder" cellspacing="1" cellpadding="6">
	<tr>
				<td class="alt1" valign="top" width="75%" rowspan="2">
					<!-- START USER AVATAR -->
					<if condition="$show['avatar']"> 
					<div style="float:left;"><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1=" $userinfo[username]">$vbphrase[xs_avatar]</phrase>" 
					border="0" style="border:1px solid $stylevar[tborder_bgcolor]; 
					border-top:none" /></div> </if>
					<!-- END USER AVATAR -->
					<!-- USER INFORMATION -->
					<div style="font-size:18pt">$userinfo[musername] $userinfo[onlinestatus]</div>
					<div class="smallfont">
					<b>$userinfo[usertitle]</b><br />
					<b>$vbphrase[join_date]:</b> $userinfo[datejoined]<br />
					<b>Location:</b> $userinfo[field2]<br />
					<if condition="$show['lastactivity']">
					<div><b>Last Online At:</b> $userinfo[lastactivitydate] - <span class="time">$userinfo[lastactivitytime]</span></div>
					</if>
					<!-- Hack: Userprofile Changed Date(MarcoH64) -->
					<if condition="$mh_upcd_last_changed">
					<b>$vbphrase[mh_upcd_last_change_date]:</b> $mh_upcd_last_changed
					</if>
					<!-- / Hack: Userprofile Changed Date(MarcoH64) -->
		            </div>
						<table width="100%" class="tborder" cellspacing="1" cellpadding="6">
								<tr>
									<td class="thead"><b>$userinfo[username]'s Information:</b></td>
								</tr>
								<tr>
									<td class="alt1">
										<div class="smallfont">
										<b>$vbphrase[age] :</b>  $userinfo[age]<br />
										<b>Sex :</b> $userinfo[field5]<br />
										<b>Occupation :</b> $userinfo[field4]<br />
										<b>Interests :</b> $userinfo[field3]<br />
										</div>
									</td>
								</tr>
								<if condition="$userinfo[field6]">
								<tr>
									<td class="thead"><b>About Me:</b></td>
								</tr>
								<tr>
									<td class="alt1"><div class="smallfont">$userinfo[field6]</div></td>
								</tr>
								</if>
								<if condition="$userinfo[field12]">
								<tr>
									<td class="thead"><b>Favorite Aspect of Photography:</b></td>
								</tr>
								<tr>
									<td class="alt1"><div class="smallfont">$userinfo[field12]</div></td>
								</tr>
								</if>								
								<if condition="$userinfo[field7]">
								<tr>
									<td class="thead"><b>Photo Gear:</b></td>
								</tr>
								<tr>
									<td class="alt1"><div class="smallfont"><div style="white-space:pre;">$userinfo[field7]</div></div></td>
								</tr>
								<if condition="$show['signature']">
								<tr>
									<td class="thead"><b>$vbphrase[signature]</b></td>
								</tr>
								<tr>
									<td class="alt1">$userinfo[signature]</td>
								</tr>
								</if>
						</table>
				</td>
		<td align="left" valign="top" class="alt1" width="25%" rowspan="2">
			<if condition="$show['profilepic']">
			<img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="$userinfo[username]" border="0" style="border:1px solid $stylevar[tborder_bgcolor]" /> <else /> <img src="http://www.texasphotoforum.com/forum/images/noimage.jpg" alt="$userinfo[username]" border="0" style="border:1px solid $stylevar[tborder_bgcolor];" />
			</if>
<br />
				<table width="100%" class="tborder" cellspacing="1" cellpadding="6">
					<tr>
						<td class="thead"><b>General Information:</b></td>
					</tr>
					<tr>
						<td class="alt1"><div class="smallfont"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">Send An E-Mail To $userinfo[username]</phrase></a></div></td>
					</tr>
					<tr>
						<td class="alt1"><div class="smallfont"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">Send Private Message To $userinfo[username]</phrase></a></div></td>
					</tr>
					<tr>
						<td class="alt1"><div class="smallfont"><if condition="$show['profileviews']"><a href="#" onClick="openWindow('misc.php?$session[sessionurl]do=profileviews&u=$userinfo[userid]', 300, 400); return false;">$vbphrase[profile_views]</a><else />$vbphrase[profile_views]</if>: $userinfo[profileviews]</div></td>
					</tr>
					<if condition="$userinfo[homepage]">
					<tr>
						<td class="alt1"><div class="smallfont"><b>$userinfo[username]'s Personal Homepage:</b><br /><a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a></div></td>
					</tr>
					</if>
					<if condition="$userinfo[field8]">
					<tr>
						<td class="alt1"><div class="smallfont"><b>MySpace Profile Page:</b><br /><a href="$userinfo[field8]" target="_blank" dir="ltr">$userinfo[field8]</a></div></td>
					</tr>
					</if>
					<if condition="$userinfo[field9]">
					<tr>
						<td class="alt1"><div class="smallfont"><b>Model Mayhem Profile Page:</b><br /><a href="$userinfo[field9]" target="_blank" dir="ltr">$userinfo[field9]</a></div></td>
					</tr>
					</if>
					<if condition="$userinfo[field10]">
					<tr>
						<td class="alt1"><div class="smallfont"><b>One Model Place Profile Page:</b><br /><a href="$userinfo[field10]" target="_blank" dir="ltr">$userinfo[field10]</a></div></td>
					</tr>
					</if>
					<if condition="$userinfo[field11]">
					<tr>
						<td class="alt1"><div class="smallfont"><b>Sports Shooter Profile Page:</b><br /><a href="$userinfo[field11]" target="_blank" dir="ltr">$userinfo[field11]</a></div></td>
					</tr>
					</if>
						
				</table>
				<br />
				<table width="100%" class="tborder" cellspacing="1" cellpadding="6">
						<tr>
							<td class="thead">Forum Information</td>
						</tr>
						<tr>
							<td class="alt1"><div class="smallfont">$vbphrase[total_posts]: $userinfo[posts]  (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)</div></td>
						</tr>							
						<tr>
							<td class="alt1"><div class="smallfont">Total User Images: $userimages[count]</div></td>
						</tr>
						<tr>
							<td class="alt1"><div class="smallfont"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">Find All Posts By $userinfo[username]</phrase></a></div></td>
						</tr>
						<tr>
							<td class="alt1"><div class="smallfont"><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]" rel="nofollow"><phrase 1="$userinfo[username]">Find All Threads Started By $userinfo[username]</phrase></a></div></td>
						</tr>
						<tr>
							<td class="alt1"><div class="smallfont"><a href="/gallery/showgallery.php?cat=500&ppuser=$userinfo[userid]" title="View Gallery">View $userinfo[username]'s Gallery</a></div></td>
						</tr>
						<if condition="$vboptions['usereferrer']">
						<tr>
							<td class="alt1"><div class="smallfont"><b>$vbphrase[referrals]:</b> $referrals</div></td>
						</tr>
						</if>
					</table>
					<br />
					              <if condition="$show['hasimicons']"> 
						        <table width="100%" class="tborder" cellspacing="1" cellpadding="6"> 
						          <tr> 
						            <td class="thead">Instant Messaging</td> 
						          </tr> 
						          <tr> 
						            <td class="alt1"><div align="center">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></td> 
						          </tr> 
						        </table> 
						        <br /> 
						      </if>  
										
	</td>
	</tr>
</table>
<if condition="$profileimagebits">
<table align="center" width="100%" border="0" cellpadding="6" cellspacing="1" class="tborder">
<tr>
    <td class="tcat" colspan="6"><a href="http://www.texasphotoforum.com/gallery/index.php?$session[sessionurl]">Recent Gallery Additions</a>
    </td>
</tr>
<tr>
$profileimagebits
</tr>
</table>
<br />
</if>

	<if condition="can_moderate()">
		
<div align="center" class="smallfont"><b>Moderator Control:</b> <a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></div>
	</if>
$footer 
<br />
</body>
</html>
The one thing that still doesnt work in the profile page is the Total User Images: portion. It's suppose to display the total number of images the user has in the PhotoPost Gallery. I have not been able to figure that one out yet so if anyone can find the fix I'd greatly appreciate it!

It may not be perfect but it seems to work ok on my end for what its worth (3.5.1)... use at your own risk.

Hope this helps some...

Using 3.5.4 I get this error when saving the template

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/*********/public_html/forum/includes/adminfunctions_template.php(3537) : eval()'d code on line 80
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02249 seconds
  • Memory Usage 1,842KB
  • 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