Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
  #1  
Old 04-26-2010, 06:44 PM
LostForWords LostForWords is offline
 
Join Date: Mar 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Visitor Messages not working in custom style.

So basically I'm having issues with a custom style my friend gave me. It is perfect for my site however for some reason visitor messages won't work within the memberinfo. Click here to visit a member profile - as you can see there is no visitor messages tab and when you click the link in the statistics - a blank page comes up.

I know this is a style issue as when I revert to the vbulletin default - visitor messages work fine. I was just wondering if anyone had any idea why messages won't show up? Any common issues? - I've provided my memberinfo layout to make sure I'm not missing anything blindingly obvious.

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude

$usercss
$memberinfo_css
<style type="text/css" id="vbulletin_tabctrl_css">
@import url("clientscript/vbulletin_tabctrl.css?v=$vboptions[simpleversion]");
<if condition="$show['rtl']">@import url("clientscript/vbulletin_tabctrl_rtl.css?v=$vboptions[simpleversion]");</if>
</style>

<script type="text/javascript" src="clientscript/vbulletin_tabctrl.js?v=$vboptions[simpleversion]"></script>

<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>

<if condition="$userinfo['userid'] == $bbuserinfo['userid']">
<script type="text/javascript" src="clientscript/vbulletin_profilefield_edit.js?v=$vboptions[simpleversion]"></script>
</if>
<script type="text/javascript">
<!--
vbphrase['server_failed_respond_try_again'] = "$vbphrase[server_failed_respond_try_again]";
vbphrase['edit_value'] = "$vbphrase[edit_value_js]";

<if condition="$show['post_visitor_message']">
function goto_post_pm()
{
	vB_TabCtrls['profile_tabs'].switch_tab('visitor_messaging');
	fetch_object('visitor_messaging').scrollIntoView();

	var textarea = fetch_object('visitor_message_form_textarea');
	if (textarea)
	{
		textarea.focus();
		textarea.select();
	}
	return false;
}
</if>
-->
</script>

</head>
<body>

$header
$navbar

<div align="center">

<div id="content_container">
<table border="0" bordercolor="" width="100%" bgcolor="" cellspacing="10px">
<tr>

<td valign="top">


<div id="main_userinfo">
			<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
			<tr>
				<td class="tcat" align="center">$prepared[username]
					<if condition="can_moderate()">
						<div class="smallfont"><b><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]" target="_blank">$vbphrase[edit_user_profile]</a></b></div>
					</if>
				</td>
			</tr>
			<tr>


<td class="alt1" align="center" valign="top" border="0" style="border-left: 0px">

								
<br>

					<if condition="$prepared['avatarurl']">
						<img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" style="border:1px solid $stylevar[tborder_bgcolor];" />
					<else />
						<img src="images/avatars/noavatar.jpg" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" style="border:1px solid $stylevar[tborder_bgcolor];" />
					</if>
								<h2>$prepared[rank]</h2>
								<if condition="$prepared['usertitle']"><div class="smallfont">$prepared[usertitle]</div></if>
<if condition="is_member_of($userinfo, 6)"> stuff </if>
<div class="smallfont">$prepared[onlinestatus]</div>
				<br>
				</td>
			</tr>
			</table></center>
	</div>

<div class="alt2 block_row">
	$template_hook[profile_stats_first]
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" align="center">$vbphrase[total_posts]</td>
	</tr>
	<tr>
		<td class="alt1"><div class="smallfont">
			
<if condition="$userinfo['field5']"><b>Name:</b> $userinfo[field5]<br></if>
						<if condition="$prepared['birthday']"><b>$vbphrase[birth_date]:</b> $prepared[birthday] <if condition="$prepared['age']">($prepared[age])</if><br></if>
						<if condition="$userinfo['field6']"><b>Gender:</b> $userinfo[field6]<br></if>
						<if condition="$userinfo['field2']"><b>Location:</b> $userinfo[field2]<br></if>
						<if condition="$userinfo['field4']"><b>Occupation:</b> $userinfo[field4]<br></if>
						<if condition="$userinfo['field3']"><b>Interests:</b> $userinfo[field3]<br></if>
						<if condition="$userinfo['field1']"><b>Biography:</b> $userinfo[field1]<br></if>
						<if condition="$userinfo['field17']"><b>Favorite Character:</b> $userinfo[field17]<br></if>
						<if condition="$userinfo['field19']"><b>Favorite Book:</b> $userinfo[field5]<br></if>
						<if condition="$userinfo['field18']"><b>Favorite Ship:</b> $userinfo[field6]<br></if>
						<if condition="$userinfo['field21']"><b>Past Usernames:</b> $userinfo[field21]</if>

</td>
	</tr>
</table>

</div>





 </td>



<td width="70%" valign="top">
	<div id="content">
		
	<div id="profile_tabs">
		$template_hook[profile_left_first]
		$template_hook[profile_left_last]
		$blocks[friends]
		$blocks[contactinfo]
		$blocks[stats]
		$blocks[groups]
	</div>

	<script type="text/javascript">
	<!--
	vBulletin.register_control("vB_TabCtrl", "profile_tabs", "$selected_tab", "&raquo;", "profile.php?u=2&do=loadtab&tabid={1:tabid}");
	//-->
	</script>

</div>
</div>

</td>




</tr>
</table>

</div>

$footer

</body>
</html>
Reply With Quote
  #2  
Old 04-27-2010, 01:21 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you fixed this issue? I looked at the site and I can plainly see the tab & the tab area after I click on it, so I do not see what problem you are having. Here are a few things that you can check on your end though.

1. What browser are you using? IE? If so then it maybe a browser issue as I'm using FireFox.
2. Have you tried doing a hard refresh on your browser? To do this click your CTRL and then your F5 button on your keyboard. This will hard refresh in any browser that you use to my knowledge.
3. Try clearing the cache in your browser and your history, temp files, cookies, etc.
4. If no one else is having this issue and you are using a Windows operation system then if all else fails try to reboot your PC. Sometimes rebooting in windows helps multitudes of problems.
Reply With Quote
  #3  
Old 04-27-2010, 07:45 AM
LostForWords LostForWords is offline
 
Join Date: Mar 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah I sorted it out Turned out the '$blocks[messages]' wasn't in there. Thanks for the suggestions though
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 02:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03482 seconds
  • Memory Usage 2,198KB
  • 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
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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