PDA

View Full Version : New Posting Features - Put tags box above the text editor


RC.
17 May 2008, 09:32
vbulletin 3.7 gets a lot of functionalities, includding tags. The problem is that the tag box appears at the bottom of the text editor.

https://www.vbulletin.org/forum/external/2008/05/47.jpg

The solution for this issue is a simple template modification

1st option:

https://www.vbulletin.org/forum/external/2008/05/48.jpg

2nd option (recommended)

https://www.vbulletin.org/forum/external/2008/05/49.jpg

1st option:

1- In newthread find and delete:

<if condition="$show['tag_option']">
<fieldset class="fieldset" style="margin-top: $stylevar[cellpadding]px">
<legend>$vbphrase[tags]</legend>
<div style="padding:$stylevar[formspacer]px">
<div>$vbphrase[separate_tags_using_comma]</div>
<span id="tag_add"><input type="text" class="bginput" name="taglist" id="tag_add_input" value="$newpost[taglist]" size="40" /></span>
<if condition="$show['tags_remain']"><div><phrase 1="$tags_remain">$vbphrase[you_may_add_x_tags_to_thread]</phrase></div></if>
</div>

<if condition="$show['popups']">
<div id="tag_add_menu" class="vbmenu_popup" style="display:none"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_tagsugg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vbmenu_register('tag_add', true);
tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp', 'tag_add_input', 'tag_add');
tag_add_comp.allow_multiple = true;
//-->
</script>
</if>
</fieldset>
</if> 2- In newthread find:

src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
<!-- / subject field -->
Add below:

<if condition="$show['tag_option']">
<fieldset class="fieldset" style="margin-top: $stylevar[cellpadding]px">
<legend>$vbphrase[tags]</legend>
<div style="padding:$stylevar[formspacer]px">
<div>$vbphrase[separate_tags_using_comma]</div>
<span id="tag_add"><input type="text" class="bginput" name="taglist" id="tag_add_input" value="$newpost[taglist]" size="40" /></span>
<if condition="$show['tags_remain']"><div><phrase 1="$tags_remain">$vbphrase[you_may_add_x_tags_to_thread]</phrase></div></if>
</div>

<if condition="$show['popups']">
<div id="tag_add_menu" class="vbmenu_popup" style="display:none"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_tagsugg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vbmenu_register('tag_add', true);
tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp', 'tag_add_input', 'tag_add');
tag_add_comp.allow_multiple = true;
//-->
</script>
</if>
</fieldset>
</if> Save the changes.

2nd option (recommended)

1- In newthread find and delete:

<if condition="$show['tag_option']">
<fieldset class="fieldset" style="margin-top: $stylevar[cellpadding]px">
<legend>$vbphrase[tags]</legend>
<div style="padding:$stylevar[formspacer]px">
<div>$vbphrase[separate_tags_using_comma]</div>
<span id="tag_add"><input type="text" class="bginput" name="taglist" id="tag_add_input" value="$newpost[taglist]" size="40" /></span>
<if condition="$show['tags_remain']"><div><phrase 1="$tags_remain">$vbphrase[you_may_add_x_tags_to_thread]</phrase></div></if>
</div>

<if condition="$show['popups']">
<div id="tag_add_menu" class="vbmenu_popup" style="display:none"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_tagsugg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vbmenu_register('tag_add', true);
tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp', 'tag_add_input', 'tag_add');
tag_add_comp.allow_multiple = true;
//-->
</script>
</if>
</fieldset>
</if> 2- In newthread find:

src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
</tr>
</table>
<!-- / subject field -->Add below:

<if condition="$show['tag_option']">

<legend>$vbphrase[tags]</legend>
<div style="padding:$stylevar[formspacer]px">
<div>$vbphrase[separate_tags_using_comma]</div>
<span id="tag_add"><input type="text" class="bginput" name="taglist" id="tag_add_input" value="$newpost[taglist]" size="40" /></span>
<if condition="$show['tags_remain']"><div><phrase 1="$tags_remain">$vbphrase[you_may_add_x_tags_to_thread]</phrase></div></if>
</div>

<if condition="$show['popups']">
<div id="tag_add_menu" class="vbmenu_popup" style="display:none"></div>
<script type="text/javascript" src="clientscript/vbulletin_ajax_tagsugg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vbmenu_register('tag_add', true);
tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp', 'tag_add_input', 'tag_add');
tag_add_comp.allow_multiple = true;
//-->
</script>
</if>

</if> Save the changes.

If you Like This Mod Mark INSTALLED (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=179517)

more info only in spanish :

http://www.entrebits.cl/foros/vbulletin/12318-subir-cuadro-agregar-tags-de-vbulletin-3-7-a.html#post44716

Enjoy

ShadowOne
17 May 2008, 09:44
Reserved, will install later

redraider
17 May 2008, 14:57
reserved ...

henrikhansen
17 May 2008, 15:03
Very good idea, installed.

Super Jinni
18 May 2008, 00:07
yeah

good idea

thanks

karlm
19 May 2008, 01:24
What's the difference between this one and this one (http://www.vbulletin.org/forum/showthread.php?t=176624)?

RC.
26 May 2008, 03:10
sorry, I don't see your hack before, this offers two options, framed and frameless.

callumbush
28 May 2008, 20:33
If a post has no tags, it will not let me edit the post and add some. The edit tags link doesn't do anything when I click on it.

If I try to edit the tags of a post that already has tags, this works fine.

Can you help?

callumbush
30 May 2008, 22:02
hmm it seems to have fixed itself when I installed vbSEO.....!

LAJAURIA
30 Jun 2008, 09:10
One problem:

When you type the topic title, and press Tab, it jumps to the text area.

Any way of jumping to Tags area when Tab?

rowlandc
04 Jul 2008, 09:59
One problem:

When you type the topic title, and press Tab, it jumps to the text area.

Any way of jumping to Tags area when Tab?

I'm not 100% sure but that might require you to actually edit the core files.

transparent
24 Oct 2008, 03:46
This is fantastic. Thx!

transparent
13 Jan 2009, 16:26
Works perfect on 3.8!

Sweeks
16 Jan 2009, 01:24
I dont understand the second optional edit. Isnt it the same as the first edit?
________
Nevada Medical Marijuana (http://nevada.dispensaries.org/)

RC.
20 May 2009, 04:27
the first option is framed and the second frameless....

adwade
22 Oct 2010, 22:47
Nice Touch, worked perfectly on vB3.8.6PL1 THANXX RC.