PDA

View Full Version : Style / CSS on profiles (3.7)


Hex_legend
01-01-2008, 06:33 PM
I have modified my profile code on my vb 3.7 install, but now I have found out that the customise code does not work on the profiles.


How can I get this working?

Here is my 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>$userinfo[username]'s Profile @ Projekt Talk</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

<div align="center">
<h1>$prepared[musername]</h1>

<!-- TOP MENU-->
<table class="topbar" align="center" border="1" cellpadding="4" cellspacing="0" width="400">
<tbody><tr align="center"><td>Profile</td>
<td><a href="http://www.projekttalk.com/main/blog.php?u=$userinfo[userid]">Blog</a></td>
<td><a href="#">Friends Blogs</a></td>
<td><a href="#">Friends Profiles</a></td>

</tr>
</tbody></table><br>
</--TOP MENU-->




</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[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />


<else />

<img src="http://www.projekttalk.com/nopic.jpg">
</td></if>

<br />
[View Gallery]
<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 />Not Disclosed</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">
<form action="#" method="post">
<input class="button" value="Report User For Abuse" type="submit">

<form action="#" method="post">
<input class="button" value="Block User" type="submit">
</form>



<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%">Favourties: (0) <a href="#">View</a></td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<td style="white-space: nowrap;" width="50%">Favourite Of: (0) <a href="#">View</a></td>
</tr>
<br />
<tr>
<td style="white-space: nowrap;" width="50%">Shit 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>

<br /><br />

<div align="center">
<form action="#" method="post">
<input class="button" value="Add To Friends" type="submit">


<form action="#" method="post">
<input class="button" value="Add To Favorites" type="submit">


<form action="#" method="post">
<input class="button" value="Add To Group" type="submit">

<form action="#" method="post">
<input class="button" value="Add To Shit List" type="submit">
</form>


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




If anyone can help me define some CSS definitions or something, then that will be great

TCE Killa
01-01-2008, 07:56 PM
Good luck with that code, I tried to put that code into my CSS profile templates but it said the template needs to be configured properly, go back. So I know what you're on about, I don't have a clue how to make CSS profile templates, I am just hoping my members can use good ones so I can take one of theres with there permission.

Hex_legend
01-01-2008, 08:28 PM
I have the profiles working fine, its just not allowing any user customization of colours