The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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&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", "»", "profile.php?u=2&do=loadtab&tabid={1:tabid}"); //--> </script> </div> </div> </td> </tr> </table> </div> $footer </body> </html> |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Ah I sorted it out Turned out the '$blocks[messages]' wasn't in there. Thanks for the suggestions though
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|