The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[CSS] Forum Title TOP Padding, level2_post
I'm trying to fix the various and annoying alignment issues for the theme I use from the now defunct CompleteVB. One of these issues is the Forum Title alignment seen in the first image below.
I used the following in-line CSS to position the parent forums (i.e. News & Announcements, Wildstar Online) and the child forums when viewing the respective parent forum. template: forumhome_forumbit_level1_post Code:
style="padding-top:10px;!important" You can clearly see within this first image that the actual child forum (i.e. Site Feedback, Guild Application), when viewing the full forum category, is not aligned properly. Applying this same code to the h2 class="forumtitle" element within the level2_post template fixes the issue! HOWEVER, that alignment is tied to the alignment of the parent forum on FORUMHOME (see final image below). The blurred/transparent position is the original WITHOUT the code added to the level2_post template; the easily visible new location is obviously 10px lower but now misaligned for my forum home. So my question -- is there a condition I can add to the level2_post template in order to keep from screwing up the alignment on my forum home? The full website can be seen at www.parallaxgaming.com/forum.php -- and all help is greatly appreciated. |
#2
|
||||
|
||||
You may be able to use conditional THIS_SCRIPT and put css in it. e.g.
Code:
<vb:if condition="THIS_SCRIPT == forumhome">css code here</vb:if> |
#3
|
|||
|
|||
Hmm, so I would enter this?
Code:
<vb:if condition="THIS_SCRIPT == forumhome"> <h2 class="forumtitle" style="padding-top:10px!important;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> <vb:else> <h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> </vb:if> Edit: This gives me an 'Invalid Tag Nesting' error when trying to save the template. |
#4
|
||||
|
||||
Try this:
Code:
<vb:if condition="THIS_SCRIPT == forumhome"> <h2 class="forumtitle" style="padding-top:10px!important;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> <vb:else /> <h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> </vb:if> |
Благодарность от: | ||
seventhaxis |
#5
|
|||
|
|||
Ah yeah forgot to close it up that's why. Still a no go but thanks SS. Any other ideas perhaps?
|
#6
|
||||
|
||||
THIS_SCRIPT is correct but there is no value "forumhome"
The THIS_SCRIPT value for the forum homepage (forum.php) is index because it used to be index.php on vBulletin 3.x. SO the condition would be something like Code:
<vb:if condition="THIS_SCRIPT == 'index'"> <h2 class="forumtitle" style="padding-top:10px!important;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> <vb:else /> <h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2> </vb:if> |
2 благодарности(ей) от: | ||
RSNF, seventhaxis |
#7
|
|||
|
|||
Worked perfectly. Thank you both Seven and Joe. I really appreciate the help!
|
Благодарность от: | ||
BirdOPrey5 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|