vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=232684)

Ultimattum 11-27-2012 10:49 AM

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

squidsk 11-27-2012 04:32 PM

Quote:

Originally Posted by Ultimattum (Post 2385621)
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}.

Amaury 11-27-2012 04:45 PM

Quote:

Originally Posted by Amaury25 (Post 2385092)
Still happens on the default style.

Default Postbit Width - 200px:

https://vborg.vbsupport.ru/

Modified Postbit Width - 230px:

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

Just quoting myself here, Squidsk, in case you didn't see it because it was on the previous page. :)

squidsk 11-27-2012 05:00 PM

Quote:

Originally Posted by Amaury25 (Post 2385092)
Still happens on the default style.

Default Postbit Width - 200px:

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/YAAS1.png[/IMG]

Modified Postbit Width - 230px:

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/YAAS2.png[/IMG]

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/YAAS3.png[/IMG]

Since it isn't showing up correctly on the default at 200px have you modified the default style? I'm somewhat suspicious that you have. If it works properly on an unmodified default style, which I'd suspect it does given there are no other complaints, then something you've modified in both the default and the customized style are causing problems.

Amaury 11-27-2012 05:06 PM

Quote:

Originally Posted by squidsk (Post 2385775)
Since it isn't showing up correctly on the default at 200px have you modified the default style? I'm somewhat suspicious that you have. If it works properly on an unmodified default style, which I'd suspect it does given there are no other complaints, then something you've modified in both the default and the customized style are causing problems.

It doesn't, though.

If I reduce the user info width to, say, 150px, it shows under all of the user info correctly instead of to the right of it for users with smaller avatars or at the avatar limit for their usergroup, but we want the width at 230px so that user with the Marceline username and the status circle appear on the same line.

squidsk 11-27-2012 07:47 PM

Quote:

Originally Posted by Amaury25 (Post 2385776)
It doesn't, though.

If I reduce the user info width to, say, 150px, it shows under all of the user info correctly instead of to the right of it for users with smaller avatars or at the avatar limit for their usergroup, but we want the width at 230px so that user with the Marceline username and the status circle appear on the same line.

Try disabling the plugin that adds the number of threads to the postbit.

EDIT: Remove any manual template edits it had you do as well.

Amaury 11-27-2012 10:06 PM

Quote:

Originally Posted by squidsk (Post 2385846)
Try disabling the plugin that adds the number of threads to the postbit.

EDIT: Remove any manual template edits it had you do as well.

This has actually been going since before those add-ons (Threads and Last Online) were installed. The postbit_legacy template was also unedited back then as well. Additionally, this was before you quarantined YAAS.

squidsk 11-29-2012 06:52 PM

Quote:

Originally Posted by Amaury25 (Post 2385900)
This has actually been going since before those add-ons (Threads and Last Online) were installed. The postbit_legacy template was also unedited back then as well. Additionally, this was before you quarantined YAAS.

Could you provide a link to your site so I can take a look. I'd be highly surprised if it was something other than a conflict with another plugin that you have installed given this issue hasn't been reported before now.

Amaury 11-29-2012 07:17 PM

Quote:

Originally Posted by squidsk (Post 2386544)
Could you provide a link to your site so I can take a look. I'd be highly surprised if it was something other than a conflict with another plugin that you have installed given this issue hasn't been reported before now.

See my signature. :)

squidsk 11-29-2012 07:42 PM

Quote:

Originally Posted by Amaury25 (Post 2386549)
See my signature. :)

I was looking at some posts with the two awards from your screenshots in the staff induction forum as a guest and everything looks just fine. I even used firebug to change the width of the postbit to 230px and it still didn't cause the display to look like your screens. This leads me to believe that it's related to a plugin you have that does stuff when a user is logged in but not for guests, as yaas doesn't do anything with logins it isn't this plugin causing the problem.

I did also notice, when running xhtml validation on the page, that there are a number of validation errors which could also be causing problems.


All times are GMT. The time now is 02:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05344 seconds
  • Memory Usage 1,775KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete