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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-01-2008, 06:33 PM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Style / CSS on profiles (3.7)

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:

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
Reply With Quote
  #2  
Old 01-01-2008, 07:56 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-01-2008, 08:28 PM
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Posts: 750
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the profiles working fine, its just not allowing any user customization of colours
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 10:34 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.08160 seconds
  • Memory Usage 2,198KB
  • 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_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_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