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)
-   -   Mini Mods - Tags Link Under Search Form (https://vborg.vbsupport.ru/showthread.php?t=166057)

cheat-master30 12-23-2007 10:00 PM

Tags Link Under Search Form
 
Okay, as you all should probably know, there is no clear link to the tag cloud in the latest version of vBulletin in an easy format to find, and there doesn't seem to be a way to link to it or search them under the quick search form. Well this simply adds another two rows and a minor link to the tags page under the quick search. I plan to also add a tag search box there as well soon.

Features:
  1. XHTML 1.0 Transitional Valid
  2. Has the access key which I heard is for disabled users.
  3. Adds link to tags page on the forum in a more conveniant location than the Options drop down.
To add:

Find:

Code:

        $template_hook[navbar_search_menu]
Add Underneath:
Code:

<tr>
    <td class="thead">Topic Tags</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
<form action="tags.php" method="get">
<if condition="$session['sessionhash']">
    <input type="hidden" name="s" value="$session[sessionhash]" />
</if>

   
        <span id="tag_wrapper"><input type="text" id="tag_input" name="tag" size="25" style="width: 80%" class="bginput" autocomplete="off" /></span>
<p>
        <input type="submit" class="button" value="$vbphrase[search]" /></p>
    </div>
</form>
<a href="tags.php$session[sessionurl_q]" accesskey="6">View Tag Cloud</a>
</td>
</tr>

It should be before:
Code:

        </table>
    </div>
    <!-- / header quick search form -->

If you just want the tags link, just add:

Code:

<tr>
    <td class="thead">Topic Tags</td>
        </tr>
<tr><td class="vbmenu_option">
<a href="tags.php$session[sessionurl_q]" accesskey="6">View Tag Cloud</a>
</td>
</tr>

Instead of the last code.

Also, remove the tags link from under Quick Links.

Alternate Code by Glorify:

(Add in same place)

Code:

<tr>
    <td class="thead">Search Tags</td>
      </tr>
      <tr>
            <td class="vbmenu_option" title="nohilite">
<form action="tags.php" method="get">
<if condition="$session['sessionhash']">
      <input type="hidden" name="s" value="$session[sessionhash]" />
</if>
 
    <div><input type="text" id="tag_input" name="tag" size="25" class="bginput" autocomplete="off" /><input type="submit" class="button" value="$vbphrase[go]" />
</div>
</form>
</td>
</tr>     
<tr>
    <td class="vbmenu_option">
<div><a href="tags.php$session[sessionurl_q]" accesskey="6" rel="nofollow">View Tag Cloud</a></div>
</td>
</tr>

Attachment 73995

Notes:

This just mainly uses the tag search from the tags page and puts it in a location easily usable underneath the other search boxes.

It suffers from a problem the tag search page did anyway. If nothing was tagged, then a minor error message will appear.

Demos:

http://www.glorifythepast.com/?styleid=40

http://dsultimate.net/Board/upload/index.php (link only)

Forum Lover 12-30-2007 06:32 PM

any demo or screen shot please...

cheat-master30 12-30-2007 10:53 PM

Oh yeah, I need to upload that.

glorify 12-31-2007 01:33 AM

Nice idea. Didn't look stock so I redid it. Use it if you want, works and looks great:

Add Underneath in the same spot instead:
Code:

<tr>
    <td class="thead">Search Tags</td>
      </tr>
      <tr>
            <td class="vbmenu_option" title="nohilite">
<form action="tags.php" method="get">
<if condition="$session['sessionhash']">
      <input type="hidden" name="s" value="$session[sessionhash]" />
</if>
 
    <div><input type="text" id="tag_input" name="tag" size="25" class="bginput" autocomplete="off" /><input type="submit" class="button" value="$vbphrase[go]" />
</div>
</form>
</td>
</tr>     
<tr>
    <td class="vbmenu_option">
<div><a href="tags.php$session[sessionurl_q]" accesskey="6" rel="nofollow">View Tag Cloud</a></div>
</td>
</tr>


DEMO (I have a custom navbar, but the search drop down looks default when clicked ;))

Not good at plugins, but it'd be a great one.

Playa82 12-31-2007 04:18 AM

i added it under:

<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</form>

works great, thanks man

glorify 12-31-2007 12:59 PM

Quote:

Originally Posted by Playa82 (Post 1412391)
i added it under:

<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</form>

works great, thanks man

Looks good.

Dave Alcock 12-31-2007 06:04 PM

Nice. For anyone using vBadvanced, remember to add tags.php to the navbar replacements.

Roflstilzchen 02-19-2008 11:36 AM

cool mod :up:

Ted Clore 05-02-2008 06:02 PM

Thanks, works great and fills in a vBulletin Tags weakness.


All times are GMT. The time now is 07:06 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.01218 seconds
  • Memory Usage 1,741KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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