Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-06-2006, 05:17 AM
sybarites sybarites is offline
 
Join Date: Jan 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Template issue

Can some one please tell me what is wrong with this code it seems so messed up. Also the contact user buttons are not working. (it is adapted from the MySpace mod)

Thanks Alot,

sorry I am new to this

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<if condition="$userinfo[field35]">
<style type="text/css">$userinfo[field35]</style>
<else />
$headinclude
</if>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
</head>
<body>
$header
$navbar
<if condition="$userinfo[userid] == $vbulletin->userinfo[userid]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="panel" align="center">
<div class="smallfont"><font color="#0000000"><phrase 1="$userinfo[username]">$vbphrase[x_you_are_viewing_your_profile]</phrase></font> <a href="usercp.php$session[sessionurl]">$vbphrase[user_cp]</a></div>
</td>
</tr>
</table>
</if>
 
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"> 
 
<tr> 
	<td valign="top" width="0%"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
 
<tr class="tcat"> <td colspan="2"><div align="Left" class="bigusername"><strong>$userinfo[username]</div></font></strong>
<div class="smallfont"><a href="$vboptions[bburl]/$userinfo[username]">$vboptions[bburl]/$userinfo[username]</a></td></div></tr>
<if condition="$userinfo['usertitle']"> 
<tbody> 
		 <tr class="tcat"> 
			<td class="text" colspan="2" style="" align="left" valign="bottom"></td> 
		 </tr> 
 
							</if> 
 
		 <tr class="alt2"> 
			 <td><div align="right"><center><if condition="$show['avatar']">
	<div class="smallfont">
	 &nbsp;<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" border="4" alt="" style="border-color:white;" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></center>
	</div>
				 </if></div><br /></center>
<strong><div align="center"><a href="/gallery/browseimages.php?do=member&amp;imageuser=$userinfo[userid]" title="View More Pics">View More Pics ($userimages[count])</td> </div></strong>
			<td align="left" valign="top" class="text"> 
<div class="smallfont" align="left">$userinfo[usertitle]</div> <br />
 
<strong>Sex:</strong> $userinfo[field5] <br /> <if condition="$show['age']"><strong>$vbphrase[age]:</strong> 
			 $userinfo[age]</if> <br /> <strong>Location:</strong> $userinfo[field2]<br /> 
			 <div>$userinfo[onlinestatus]</div> 
			 <br /> 
<div><strong>Last Online:</strong> $userinfo[lastactivitydate] at $userinfo[lastactivitytime]</div> </td> 
		 </tr> 
		</tbody> 
	 </table> 
	 <p> 
	 <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
		<tr class="tcat"> 
		 <td colspan="2"><strong>Contacting $userinfo[username]</td></font></strong>
		</tr> 
		<tr class="alt2"> 
		 <td height="5" nowrap="nowrap" width="50%"> <div align="left"> 
			 <a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]&quot;&gt;&lt;">
<img border="0" src="http://www.sevencityforums.com/foru..._mns/sendpm.gif" align="left" width="79" height="22"></a>
</td> 
		 <td height="5" nowrap="nowrap" valign="top" width="50%"> 
			<div align="left"><if condition="$userinfo['showicq']"> $userinfo[icqicon] 
			 <a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a> 
			 </if> </div></td> 
		</tr> 
		<tr class="alt2"> 
		 <td height="5" nowrap="nowrap" valign="top" width="50%"> 
			<div align="left"><div class="smallfont">
	 <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$userinfo[userid]&quot; rel=&quot;nofollow">
<img border="0" src="http://www.sevencityforums.com/foru...ndmailicon2.gif" align="left" width="79" height="22"></a></p> 
			</div></td> 
		 <td height="2" nowrap="nowrap" valign="middle" width="50%"> 
			<div align="left"><if condition="$userinfo['showaim']"> $userinfo[aimicon] 
			 <a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a> 
			 </if></div></td> 
		</tr> 
		<tr class="alt2"> 
		 <td height="5" nowrap="nowrap" valign="top" width="50%"> 
		 <div align="left"><div class="smallfont"><if condition="$show['addbuddylist']"> <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/foru...ns/addbuddy.gif" width="79" height="22"></a> 
			 <else /><div class="smallfont"><a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=buddy&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/foru..._mns/remove.jpg" align="left" width="79" height="22"></a>
			 </if> </div></td> 
		 <td height="5" nowrap="nowrap" valign="top" width="50%"> 
			<div align="left"><if condition="$userinfo['showmsn']"> $userinfo[msnicon] 
			 <a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a> 
			 </if></div></td> 
		</tr> 
		<tr class="alt2"> 
		 <td height="5" nowrap="nowrap" valign="top" width="50%"> 
			<div align="left"><div class="smallfont"><if condition="$show['addignorelist']"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/foru...c_mns/block.jpg" width="79" height="22" align="left"></a></p> 
			 <else /><div class="smallfont"><a href="profile.php?$session[sessionurl]do=removelist&amp;userlist=ignore&amp;u=$userinfo[userid]">
<img border="0" src="http://www.sevencityforums.com/foru...mns/addbudy.jpg" width="79" align="left" height="22"></a></p>
			 </if> </div></td> 
		 <td height="2" nowrap="nowrap" valign="middle" width="50%"> 
			<div align="left"><if condition="$userinfo['showyahoo']"> $userinfo[yahooicon] 
			 <a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a> 
			 </if></div></td> 
		</tr> 
	 </table> 
 
 
 
 
 
 
 
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
		<tr class="tcat"> 
		 <td><strong>User Information</td> </font></strong>
		</tr> 
		<tr class="alt2"> 
		 <td valign="top"></td> 
		</tr> 
 
<tr> 
		 <td class="alt2"><div class="smallfont"><a href="$userinfo[homepage]" target="_blank" 
dir="ltr">My Home Page</a></div></td>
		</tr> 
<tr> 
		 <td class="alt2"><div class="smallfont"><strong>MySpace URL:</strong><br /><a href="$userinfo[field9]">$userinfo[field9]</a></div></td>
		</tr> 
<tr> 
		 <if condition="$show['profileviews']">
<td class="alt2">
<div class="smallfont">
	<if condition="$show['profileviewsother']"><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>
</div>
</if>
		</tr> 
<tr> 
		 <td class="alt2"><div class="smallfont"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td> 
		</tr> 
<tr> 
		 <td class="alt2"><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]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td> 
		</tr> 
<tr> 
		 <td class="alt2"><div class="smallfont">$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
	 </td></div>
		</tr> 
<tr> 
		 <td class="alt2">
<if condition="$vboptions['usereferrer']">
<div class="smallfont">
<strong>$vbphrase[referrals]:</strong> $referrals
	</div>
</div>
</if> 
		</tr> 
<tr> 
		 <td class="alt2"><div class="smallfont"><a href="payments.php?$session[sessionurl]gift=true&userid=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[buy_x_a_sub]</phrase></a>
		</td>
	 </td></div>
		</tr> 
	 </table> 
<br />
 

<if condition="$userinfo[field10]"> 
	 <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
		<tr class="tcat"> 
		 <td class="text" wrap="" style="" align="left" height="10" valign="center" colspan="2"> 
			<span class=""><strong>$userinfo[username]'s Media </span> </td> </font></strong>
		</tr> 
		<tr class="alt2"> 
		 <td align="left" valign="top"> <div align="center"><EMBED SRC="$userinfo[field10]"></div></td> 
		</tr> 
	 </table> 
</if> 
		 
		</tr> 
	 </table> 
	 </if> 
	 
	 </table> 
<br />$FNB_HTML<br />
	 <p>$comment_panel</p></td> 
</tr></table></td> 
</table> 
<br />
<center>
<if condition="can_moderate()">Moderator Tools<br />
<td class="vbmenu_control"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[user_options]</a></td><br />
</if>
<!-- Hack: Username Management (MarcoH64) -->
<if condition="$mh_unm_can_change_other_name">
<td class="vbmenu_control"><a href="$mh_unm_modcp_link">$vbphrase[mh_unm_change_username]</a></td>
</if>
<!-- / Hack: Username Management (MarcoH64) -->
<if condition="$mh_upcd_last_changed">
	 <div style="padding:$stylevar[formspacer]px">
	 <strong>Profile last updated: $mh_upcd_last_changed</strong>
	 </div>
	</if>
</center>
$footer 
<br />
</body>
</html>
Reply With Quote
  #2  
Old 03-06-2006, 05:39 AM
Aesma Deva Aesma Deva is offline
 
Join Date: Feb 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Except for the contacting stuff, it works fine me. Now, the contacting images' sources aren't valid, they go like "http://www.sevencityforums.com/foru..._mns/something.gif", while you should write the whole path, replace them with text or give them an alt attribute.
Reply With Quote
  #3  
Old 03-06-2006, 06:04 AM
sybarites sybarites is offline
 
Join Date: Jan 2006
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I have done that except I{ cannot fine addbuddy.jpg and block.jpg.
I also need to restructure it so it is little squares not huge boxes for such little information.
THanks

Anybody?
Reply With Quote
  #4  
Old 03-13-2006, 09:59 PM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not try contacting the person that posted the hack?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:45 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.04008 seconds
  • Memory Usage 2,222KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete