Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2012, 02:20 PM
JabirA JabirA is offline
 
Join Date: Feb 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Move Tag field under the title field

Is there a easy way to do this?

http://imageshack.us/photo/my-images/155/knipselar.png/

Kind regards.
Jabir

--------------- Added [DATE]1338891827[/DATE] at [TIME]1338891827[/TIME] ---------------

Anybody?
Reply With Quote
  #2  
Old 06-05-2012, 05:17 PM
demojames demojames is offline
 
Join Date: Sep 2005
Location: Kent, WA.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using and tested it in 4.1.11 - Make sure you make a copy of your newthread template

In your newthread Template find:

PHP Code:
{vb:raw posticons
And below remove (or better yet cut):

PHP Code:
<vb:if condition="$show['tag_option']">
            <
div class="blockrow">
                <
label for="tagpopup_ctrl" class="full">{vb:rawphrase tags}:</label>
                <
div id="tagpopup" class="popupmenu nomouseover noclick nohovermenu">
                    <
input type="text" class="primary full textbox popupctrl" name="taglist" id="tagpopup_ctrl" value="{vb:raw newpost.taglist}" tabindex="1" />
                    <
div id="tagpopup_body" class="popupbody">
                    </
div>
                </
div>
                <
script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>
                <
script type="text/javascript">
                <!--
                    
tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp''tagpopup_ctrl''tagpopup');
                    
tag_add_comp.allow_multiple true;
                    
tag_add_comp.set_delimiters('{vb:raw tag_delimiters}');
                
//-->
                
</script>
                <
class="singledescription">{vb:rawphrase separate_tags_using_comma}<vb:if condition="$show['tags_remain']"> {vb:rawphrase you_may_add_x_tags_to_thread, {vb:raw tags_remain}}</vb:if></p>
            </
div>
            </
vb:if>
        </
div>
    </
div
In the newthread find:

PHP Code:

<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />

</
div
after the </div>

Add your cut text or:

PHP Code:
<vb:if condition="$show['tag_option']">
            <
div class="blockrow">
                <
label for="tagpopup_ctrl" class="full">{vb:rawphrase tags}:</label>
                <
div id="tagpopup" class="popupmenu nomouseover noclick nohovermenu">
                    <
input type="text" class="primary full textbox popupctrl" name="taglist" id="tagpopup_ctrl" value="{vb:raw newpost.taglist}" tabindex="1" />
                    <
div id="tagpopup_body" class="popupbody">
                    </
div>
                </
div>
                <
script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>
                <
script type="text/javascript">
                <!--
                    
tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp''tagpopup_ctrl''tagpopup');
                    
tag_add_comp.allow_multiple true;
                    
tag_add_comp.set_delimiters('{vb:raw tag_delimiters}');
                
//-->
                
</script>
                <
class="singledescription">{vb:rawphrase separate_tags_using_comma}<vb:if condition="$show['tags_remain']"> {vb:rawphrase you_may_add_x_tags_to_thread, {vb:raw tags_remain}}</vb:if></p>
            </
div>
            </
vb:if>
        </
div>
    </
div
Attached Images
File Type: jpg tags.jpg (16.1 KB, 0 views)
Reply With Quote
  #3  
Old 06-06-2012, 10:41 AM
JabirA JabirA is offline
 
Join Date: Feb 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello demojames,

I tested this and it does work, but not perfectly. I am using 4.1.12

This is how it looks:

http://imageshack.us/photo/my-images/338/knipsely.png/

--------------- Added [DATE]1338983010[/DATE] at [TIME]1338983010[/TIME] ---------------

I fixed this by removing the <div> tag in the last code of yours..

--------------- Added [DATE]1338983304[/DATE] at [TIME]1338983304[/TIME] ---------------

But still its not perfect

http://imageshack.us/photo/my-images/140/knipselqg.png/
Reply With Quote
  #4  
Old 06-06-2012, 11:29 AM
demojames demojames is offline
 
Join Date: Sep 2005
Location: Kent, WA.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Jabir,

Give me a little bit here and see what's up. Like I said I'm using 4.1.11 and I don't think there was any changes to that template, but we'll get it fixed up. I'm trying to replicate the issue.

Edit: I think you copied to much code, the post icons should still be below the message box.

--------------- Added [DATE]1338987472[/DATE] at [TIME]1338987472[/TIME] ---------------

Okay I think I figured it out. Sorry about that!

Remove the last 2 <div /> below the last </vb: if> in the copied code and move them below


PHP Code:
{vb:raw posticons
And that should fix it. Let me know if that works
Reply With Quote
  #5  
Old 06-06-2012, 12:04 PM
JabirA JabirA is offline
 
Join Date: Feb 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello demojames,

I did everything exactly as you said. My code looks like this now:

Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
	{vb:raw headinclude}

	{vb:cssfile attachment.css,lightbox.css}
	<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script>
	<title>{vb:raw foruminfo.title_clean} - {vb:rawphrase post_new_thread}</title>
{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}

{vb:raw navbar}

<vb:if condition="$show['lightbox']">
<!-- lightbox scripts -->
	<script type="text/javascript" src="clientscript/vbulletin_lightbox.js?v={vb:raw vboptions.simpleversion}"></script>
	<script type="text/javascript">
	<!--
	vBulletin.register_control("vB_Lightbox_Container", "post_preview", {vb:raw vboptions.lightboxenabled});
	//-->
	</script>
<!-- / lightbox scripts -->
</vb:if>

<div id="pagetitle">
	<h1>{vb:rawphrase post_new_thread}</h1>
	<p class="description">{vb:rawphrase forum}: <a href="{vb:link forum, {vb:raw foruminfo}}">{vb:raw foruminfo.title}</a></p>
</div>

<form class="vbform block" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?do=postthread&amp;f={vb:raw forumid}" method="post" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.subject.value, {vb:raw vboptions.postminchars})">

	{vb:raw postpreview}

	<h2 class="blockhead">{vb:rawphrase your_message}</h2>
	<div class="blockbody formcontrols">
		<div class="section">
			{vb:raw usernamecode}
		
			{vb:raw human_verify}

			<div class="blockrow">
				<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" />
				&nbsp;<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
			</div>

<vb:if condition="$show['tag_option']">
			<div class="blockrow">
				<label for="tagpopup_ctrl" class="full">{vb:rawphrase tags}:</label>
				<div id="tagpopup" class="popupmenu nomouseover noclick nohovermenu">
					<input type="text" class="primary full textbox popupctrl" name="taglist" id="tagpopup_ctrl" value="{vb:raw newpost.taglist}" tabindex="1" />
					<div id="tagpopup_body" class="popupbody">
					</div>
				</div>
				<script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>
				<script type="text/javascript">
				<!--
					tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp', 'tagpopup_ctrl', 'tagpopup');
					tag_add_comp.allow_multiple = true;
					tag_add_comp.set_delimiters('{vb:raw tag_delimiters}');
				//-->
				</script>
				<p class="singledescription">{vb:rawphrase separate_tags_using_comma}<vb:if condition="$show['tags_remain']"> {vb:rawphrase you_may_add_x_tags_to_thread, {vb:raw tags_remain}}</vb:if></p>
			</div>
			</vb:if>
		</div>
	</div>

			{vb:raw messagearea}

			{vb:raw posticons}

			
	<div class="blockfoot actionbuttons">
		<div class="group">
				<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
				<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
				<input type="hidden" name="f" value="{vb:raw forumid}" />
				<input type="hidden" name="do" value="postthread" />
				<input type="hidden" name="posthash" value="{vb:raw posthash}" />
				<input type="hidden" name="poststarttime" value="{vb:raw poststarttime}" />
				<input type="hidden" name="loggedinuser" value="{vb:raw bbuserinfo.userid}" />
				<vb:if condition="$show['fb_publishcheckbox']">
					{vb:raw fbpublishcheckbox}
				</vb:if>
				<input type="submit" class="button" name="sbutton" id="{vb:raw editorid}_save" value="{vb:rawphrase submit_new_thread}" accesskey="s" tabindex="1" />
				<input type="submit" class="button" name="preview" value="{vb:rawphrase preview_post}" accesskey="r" tabindex="1" />
		</div>
	</div>

	<vb:if condition="$show['additional_options']">
	<h3 class="blockhead">{vb:rawphrase additional_options}</h3>
	<div class="blockbody formcontrols">
		<div class="section">

			<vb:if condition="$show['misc_options']">
			<div class="blockrow">
				<label>{vb:rawphrase miscellaneous_options}:</label>
				<ul class="checkradio group rightcol">
					<vb:if condition="$show['signaturecheckbox']">
					<li>
						<label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" {vb:raw checked.signature} /> {vb:rawphrase show_your_signature}</label><p class="description">{vb:rawphrase show_your_signature_explain}</p>
					</li>
					</vb:if>
					<vb:if condition="$show['parseurl']">
					<li>
						<label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" {vb:raw checked.parseurl} /> {vb:rawphrase automatically_parse_links_in_text}</label><p class="description">{vb:rawphrase automatically_parse_links_description}</p>
					</li>
					</vb:if>
					{vb:raw disablesmiliesoption}
				</ul>
			</div>
			</vb:if>

			{vb:raw htmloption}	
			{vb:raw attachmentoption}

			<vb:if condition="$show['member']">
			<fieldset class="blockrow">
				<legend>{vb:rawphrase subscription}</legend>
				<dl class="group dep_group">
					<dt>
						<label for="subscribe">{vb:rawphrase thread_subscription}:</label>
						<input type="checkbox" id="subscribe" name="subscribe" value="1" class="dep_ctrl" {vb:raw checked.subscribe} tabindex="1" />
					</dt>
					<dd id="subscribe_deps" class="rightcol">
						<ul class="group">
							<li>
								<select class="primary" name="emailupdate" tabindex="1">
									<option value="0" {vb:raw emailchecked.0}>{vb:rawphrase no_email_notification}</option>
									<option value="1" {vb:raw emailchecked.1}>{vb:rawphrase instant_email_notification}</option>
									<option value="2" {vb:raw emailchecked.2}>{vb:rawphrase daily_email_notification}</option>
									<option value="3" {vb:raw emailchecked.3}>{vb:rawphrase weekly_email_notification}</option>
								</select>
							</li>
							<vb:if condition="$show['subscribefolders']">
							<li>
								<select class="primary" name="folderid" tabindex="1">{vb:raw folderbits}</select>
							</li>
							</vb:if>
						</ul>
					</dd>
				</dl>
			</fieldset>
			</vb:if>

			<vb:if condition="$show['poll']">
			<fieldset class="blockrow">
				<legend>{vb:rawphrase post_a_poll}</legend>
				<dl class="group dep_group">
					<dt>
						<label for="postpoll">{vb:rawphrase create_a_poll} <vb:if condition="$vboptions['maxpolloptions']"> ({vb:rawphrase maximum} {vb:raw vboptions.maxpolloptions})</vb:if>:</label>
						<input type="checkbox" name="postpoll" value="yes" id="postpoll" tabindex="1" {vb:raw checked.postpoll} class="dep_ctrl" /> 
					</dt>
					<dd id="postpoll_deps" class="rightcol">
						<input type="text" class="textbox numeric" size="5" name="polloptions" value="{vb:raw polloptions}" id="polloptnum" tabindex="1" />
					</dd>
				</dl>
			</fieldset>
			</vb:if>

			{vb:raw threadmanagement}
		</div>

		<vb:if condition="$show['podcasturl']">
			<h4 class="blocksubhead">{vb:rawphrase podcast_options}</h4>
			<div class="section">
				<div class="blockrow">
					<label>{vb:rawphrase podcast_options}:</label>
					<ul class="checkradio group rightcol">
						<li><label><input type="text" class="primary textbox" name="podcasturl" id="podcasturl" value="{vb:raw podcasturl}" maxlength="255" tabindex="1" title="{vb:rawphrase podcast_url}" /> {vb:rawphrase podcast_url}</label></li>
						<li><label><input type="text" class="primary textbox" name="podcastsize" id="podcastsize" value="{vb:raw podcastsize}" tabindex="1" title="{vb:rawphrase podcast_size}" /> {vb:rawphrase filesize_bytes}</label></li>
						<li><label><input type="text" class="primary textbox" id="podcastsubtitle" name="podcastsubtitle" value="{vb:raw podcastsubtitle}" maxlength="255" tabindex="1" title="{vb:rawphrase subtitle}" /> {vb:rawphrase subtitle}</label></li>
						<li><label><input type="checkbox" id="podcastexplicit" name="podcastexplicit" value="1" tabindex="1" {vb:raw explicitchecked} title="{vb:rawphrase explicit}" /> {vb:rawphrase explicit}</label></li>
						<li><label><input type="text" class="primary textbox" id="podcastkeywords" name="podcastkeywords" value="{vb:raw podcastkeywords}"  maxlength="255" tabindex="1" title="{vb:rawphrase keywords}" /> {vb:rawphrase keywords}</label></li>
						<li><label><input type="text" class="primary textbox" id="podcastauthor" name="podcastauthor" value="{vb:raw podcastauthor}" maxlength="255" tabindex="1" title="{vb:rawphrase author}" /> {vb:rawphrase author}</label></li>
					</ul>
				</div>
			</div>
		</vb:if>
	</div>
	<div class="blockfoot actionbuttons">
		<div class="group">
			<input type="submit" class="button" name="sbutton" value="{vb:rawphrase submit_new_thread}" accesskey="s" tabindex="1" />
			<input type="submit" class="button" name="preview" value="{vb:rawphrase preview_post}" accesskey="r" tabindex="1" />
		</div>
	</div>
	</vb:if>

	{vb:raw forumrules}

</form>

{vb:raw footer}

</body>
</html>
Kind regards

Edit: Yes removing the two </div> solves this problem. Only the "tag field" is not aligned perfectly with the "title field". Do you have anything for that?
Reply With Quote
  #6  
Old 06-06-2012, 12:15 PM
demojames demojames is offline
 
Join Date: Sep 2005
Location: Kent, WA.
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for all the trouble. I updated my last post - You need move the last 2 </div>

Edit: I'm guess it's from your Prefix and/or Check if posted plugin. You could try and a couple of   or a &nbsp; and see if that fixes it. I don't have that installed/using so I would need to look into further.
Attached Images
File Type: jpg tags.jpg (10.4 KB, 0 views)
Reply With Quote
  #7  
Old 06-06-2012, 12:31 PM
JabirA JabirA is offline
 
Join Date: Feb 2009
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx man! But the tag field is still not good.

http://imageshack.us/photo/my-images/543/knipseld.png/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:41 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.04233 seconds
  • Memory Usage 2,303KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete