vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   New Posting Features - Put tags box above the text editor (https://vborg.vbsupport.ru/showthread.php?t=179517)

RC. 05-16-2008 10:00 PM

Put tags box above the text editor
 
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://vborg.vbsupport.ru/external/2008/05/47.jpg

The solution for this issue is a simple template modification

1st option:

https://vborg.vbsupport.ru/external/2008/05/48.jpg

2nd option (recommended)

https://vborg.vbsupport.ru/external/2008/05/49.jpg

1st option:

1- In newthread find and delete:

PHP Code:

<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:

PHP Code:

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

Add below:

PHP Code:

<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:

PHP Code:

<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:

PHP Code:

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

Add below:

PHP Code:

<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

more info only in spanish :

http://www.entrebits.cl/foros/vbulle...html#post44716

Enjoy

ShadowOne 05-17-2008 07:44 AM

Reserved, will install later

redraider 05-17-2008 12:57 PM

reserved ...

henrikhansen 05-17-2008 01:03 PM

Very good idea, installed.

Super Jinni 05-17-2008 10:07 PM

yeah

good idea

thanks

karlm 05-18-2008 11:24 PM

What's the difference between this one and this one?

RC. 05-26-2008 01:10 AM

sorry, I don't see your hack before, this offers two options, framed and frameless.

callumbush 05-28-2008 06:33 PM

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 05-30-2008 08:02 PM

hmm it seems to have fixed itself when I installed vbSEO.....!

LAJAURIA 06-30-2008 07:10 AM

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?


All times are GMT. The time now is 01:15 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.03450 seconds
  • Memory Usage 1,822KB
  • 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
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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