Quote:
Originally Posted by Ultimattum
Hello,
Just having another question...
How can i add a custom .css inside the forms code?
I mean, how can i add vbulletin.css inside this:
awards_request_form
Code:
$stylevar[htmldoctype]
<html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[award_formtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<form enctype="multipart/form-data" method="post" action="request_award.php">
<input type="hidden" value="submit" name="do">
<input type="hidden" value="$award[award_id]" name="award_id">
<div class="blockhead">$vbphrase[award]: $award[award_name] (id: $award[award_id])</div>
<div align="center"><br /><img src="$award[award_img_url]"><br /><strong> $award[award_name]</strong></div>
<if condition="$award[award_desc]">
<br />
<div class="blockhead">$vbphrase[award_description]</div>
<div class="blocksubhead">$award[award_desc]</div>
</if>
<br />
<div class="blockhead">
$vbphrase[award_formtitle]
</div>
<div class="blocksubhead">
$vbphrase[award_formpurpose]
<br /><br />
$vbphrase[username]
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><b>$bbuserinfo[username]</b> (User ID: $bbuserinfo[userid])</td>
</tr>
</table>
<br />
$vbphrase[award_request_reason]
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td><textarea rows="5" cols="50" name="award_request_reason"></textarea></td>
</tr>
</table>
<br />
<input type="hidden" name="award_request_uid" value="$bbuserinfo[userid]">
<input type="submit" name="submit" class="button" value="$vbphrase[submit]" accesskey="s" />
<input type="reset" name="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
</div>
</form>
$footer
</body>
</html>
Thanks
|
First, if that's what your award_request_form template looks like you are not using the correct one, which means either you didn't upgrade to 4.0.4 correctly or you customized that template previously and didn't revert the changes when you upgraded (or port the changes to the new base version). The templates in 4.0.4 have been completely re-done using the vb4 template syntax (i.e. {vb: .... } syntax)
Second, the template vbulletin.css (or its corresponding file) is already included in that template through the $headinclude variable. Similarly it is also in the new version through the {vb:raw headinclude}.