Thread: Major Additions - Yet Another Awards System
View Single Post
  #1303  
Old 11-27-2012, 04:32 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ultimattum View Post
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}.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01066 seconds
  • Memory Usage 1,781KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete