vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Newthread Template change (https://vborg.vbsupport.ru/showthread.php?t=241556)

Deuone 04-30-2010 10:29 AM

Newthread Template change
 
Hey everyone, i'm all new to vBulletin, and so far im amazed of how costumizable and user friendly this forum is. But after having played around in my forum's settings for a few hours, i've run into a problem that i know i should be able to fix, but i just cant seem to get it to work.

im sitting in Style Manager \ New Posting Templates \ Newthread. trying to figure out how to make the Prefix allign with the Thread label in new post. My coding is a bit rusty since it's been years since i made any programming, but im sure the solution is fairly simple, im just not able to figure out what to do. To make my point more clear i made a photoshop of how i wanted it to look.

http://img530.imageshack.us/img530/2184/vbulletin.jpg

if anyone could help me fix this, i'd be so thankful, it really is confusing the hell out of me. :eek:

bpr 05-01-2010 04:40 PM

Hi Deuone,
if you didnt figure it out here some help, how i would do it if i were you... however
open the newthread template and search for:

Code:

<vb:if condition="$prefix_options">
after that you will find something like this:
Code:

<vb:if condition="$prefix_options">
                                        <label for="prefixfield" class="full">{vb:rawphrase prefix}:</label>
                                        <select name="prefixid" id="prefixfield" class="full" tabindex="1">
                                                <option value="">{vb:rawphrase no_prefix_meta}</option>
                                                {vb:raw prefix_options}
                                        </select>
                                        <p class="description"></p>
                                </vb:if>
                               
                                <label for="subject" class="full">{vb:rawphrase title}:</label>
                                <input type="text" class="primary full textbox" name="subject" id="subject" value="{vb:raw subject}" maxlength="{vb:raw vboptions.titlemaxchars}" tabindex="1" />

eh voila, here we go, that is were u have the prefixes, if i were you I would change that a little bit to something like this:
HTML Code:

<ul>
<li>
<vb:if condition="$prefix_options">
                                        <label for="prefixfield" class="full">{vb:rawphrase prefix}:</label>
                                        <select name="prefixid" id="prefixfield" class="full" tabindex="1">
                                                <option value="">{vb:rawphrase no_prefix_meta}</option>
                                                {vb:raw prefix_options}
                                        </select>
                                        <p class="description"></p>
                                </vb:if>
</li>
<li>
<label for="subject" class="full">{vb:rawphrase title}:</label>
                                <input type="text" class="primary full textbox" name="subject" id="subject" value="{vb:raw subject}" maxlength="{vb:raw vboptions.titlemaxchars}" tabindex="1" />
</li>
</ul>

Propably you have to change it a bit more and better, this was more quick n dirty in the vbulletin editor... However, if you also give the ul an id or a class you got a nice markup for a even better css : ) and then you should not have any problems with doing so!

hope u can figure it out


All times are GMT. The time now is 08:41 PM.

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.01007 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete