Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2008, 01:39 AM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Desperate Help Please

What is wrong here?
Check out this link here
Please note, that if you use Internet Explorer, you will have to check it in another browser as it seems to work fine in IE.

Here is the code I am using for the page:

PHP 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"></script>

<
title>$vboptions[bbtitle]</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]";

<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();
    }
}
</if>
-->
</
script>

</
head>
<
body>

$header
$navbar

<div align="center">
<
h1>$prepared[musername]</h1>
<
br />
<if 
condition="$userinfo[field13]">$userinfo[field13]<else />No Personal Quote Defined.</if>



</
div>
<!-- 
begin user css -->
<
br />
<
div id="content_container" style="text-align: center; width: 100%;">
    <
div id="content" style="text-align: center; width: 100%;">
        <
div id="main_userinfo" style="text-align: center; width: 100%;">
        
            <if 
condition="$prepared['profilepicurl']">
                    <
td id="profilepic_cell" class="tborder alt2">
                        <
img src="$prepared[profilepicurl]$prepared[profilepicsizealt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />
            

<else />

<
img src="/nopic.jpg">
</
td></if>

<
br />
        <
a href="/album.php?u=$userinfo[userid]">View Gallery</a> <br>
<
a href="/blog.php?u=$userinfo[userid]">View Blog</a>
<
br /><br />

<!--
USER PROFILE FIELDS QUICK STATS-->

<
div id="additional_userinfo" style="text-align: left; width: 100%;">
<
center>
<!-- 
Jack's note - I'm putting this in a table to correctly align in center -->
<
table width="400" border="0">
<!--
LAST ONLINE-->
<
tr><td width="220">
<if 
condition="$prepared['lastactivitydate']">
<
div id="last_online">


<
b>Last Activity:</b></td><td width="180">$prepared[lastactivitydate]                    </if></div>        
</--
LAST ONLINE-->

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

<
b>Account Type:</b></td><td>
<if 
condition="$prepared['usertitle']">$prepared[usertitle]</if>

<
br />

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

<
b>Sex:</b></td><td>
<if 
condition="$userinfo[field5]">$userinfo[field5]<else />Undisclosed</if>
<
br>

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

<
b>Age:</b></td><td>
<if 
condition="$userinfo[field11]">$userinfo[field11]</if>
<
br>
</
td></tr>

<
tr><td>
<
b>Location:</b></td><td>
<if 
condition="$userinfo[field2]">$userinfo[field2]<else />Undisclosed</if>
<
br>

</
td></tr>
<
tr><td>
<
b>Status:</b>
</
td><td>
<if 
condition="$userinfo[field12]">$userinfo[field12]<else />Undisclosed</if>
</
td></tr>

<
tr><td>

<
b>Online Status:</b></td>
<
td>$prepared[onlinestatus]</td>
<
br>
</
tr>

</
table>
</
center>





<
div id="main_profile" style="text-align: left; width: 100%;">


</--
USER PROFILE FIELDS QUICK STATS-->
<
br><br>
<!--
MAIN PROFILE FIELDS OPTIONS-->
<
b>About Me</b>
<
br><br>
<if 
condition="$userinfo[field6]">$userinfo[field6]</if>
<
br><br>
<
b>My Likes</b>
<
br><br>
<if 
condition="$userinfo[field7]">$userinfo[field7]<else />Will Add Later</if>
<
br><br>
<
b>My Dislikes</b>
<
br><br>
<if 
condition="$userinfo[field8]">$userinfo[field8]<else />Will Add Later</if>
<
br><br>
<
b>Favorite Music</b>
<
br><br>
<if 
condition="$userinfo[field9]">$userinfo[field9]<else />Will Add Later</if>

</--
MAIN PROFILE FIELDS OPTIONS-->
<
br />
<if 
condition="$prepared['canbefriend']">
<
a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=friend&amp;u=$prepared[userid]">$vbphrase[add_to_friends_list]</a>
</if>
<!-- 
end usercss -->
<
br><br>

</
div>

<
span style="text-align:center">
<
div align="center"><center>
<
table>
<
tr><td>
<
form action="/private.php?do=newpm&u=1" method="post">
<
input class="button" value="Report User For Abuse" type="submit">
</
form>
</
td></tr></table></center>


<if 
condition="$show['admincp']">
<
table>
<
tbody><tr>
<
td style="white-space: nowrap;" width="50%">Friends: (0) <a href="#">View</a></td>
&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<
td style="white-space: nowrap;" width="50%">Friends Of: (0) <a href="#">View</a></td>
</
tr>
<
br />
<
tr>
<
td style="white-space: nowrap;" width="50%">Ignore List: (0) <a href="#">View</a></td>
&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<
td style="white-space: nowrap;" width="50%">Member Of: <a href="#">View</a></td>
</
tr>
</
tbody>
</
table>
</if>
<
br /><br />

<
div align="center">
<
table><tr><td>
<
form action="profile.php?$session[sessionurl]do=addlist&amp;userlist=friend&amp;u=$prepared[userid]method="post">
<
input class="button" value="Add To Friends" type="submit">
</
form></td>
<
td>


<
form action="profile.php?$session[sessionurl]do=addlist&amp;userlist=ignore&amp;u=$prepared[userid]method="post">
<
input class="button" value="Add To Ignore List" type="submit">
</
form></td></tr></table>


<
br /><br />
<
div id="main_messaging" style="text-align: center; width: 50%;">
$blocks[visitor_messaging]
</
div>
</
div>
$footer
</body>
</
html
Now onto the issues.

1. Why can't guests view my profile picture? It just shows as a red X, where registered members can.
2. There is something wrong somewhere with a DIV or TABLE as the light grey / dark grey is all wrong. The dark grey should be the whole page border, whereas the lightgrey should be for the content (the middle part), instead the lightgrey is currently set as the header and the rest is dark grey


Anyone? This is desperate.
Thanks
Reply With Quote
  #2  
Old 11-14-2008, 02:53 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code you posted doesn't match up with what is showing at that link so I'm not sure what to think.

You do have a bunch of incorrect html - you can't have a td tag without a tr tag, and you can't have an end td tag without a beginning td tag. Run the page through a validator to see specific lines.
Reply With Quote
  #3  
Old 11-14-2008, 03:04 AM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have restarted the profile from scratch, but I still need help with question number one..
Even though I have a profile pic uploaded, guests can't see the pic, they just see the nopic.jpg or a red X. where all other users who are logged in can see the pic..
Why is this?
Reply With Quote
  #4  
Old 11-14-2008, 04:14 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If guests aren't seeing it, but regular users are, then you should check the Unregistered usergroup permissions - Can View Others' Profile Pictures?
Reply With Quote
Reply


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 04:49 AM.


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.08965 seconds
  • Memory Usage 2,288KB
  • Queries Executed 11 (?)
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_php
  • (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_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