PDA

View Full Version : Mini Mods - Tags Link Under Search Form


cheat-master30
12-23-2007, 10:00 PM
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:
XHTML 1.0 Transitional Valid
Has the access key which I heard is for disabled users.
Adds link to tags page on the forum in a more conveniant location than the Options drop down.To add:

Find:

$template_hook[navbar_search_menu]Add Underneath:

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

</table>
</div>
<!-- / header quick search form -->If you just want the tags link, just add:

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


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

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:
<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 (http://www.glorifythepast.com/?styleid=40) (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
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.