Back to vBulletin 3.7 Template Modifications

Search and Quicklink Images
Mod Version: 1.01, by TheProphet

This modification is in the archives.
vB Version: 3.7.2 Rating: (2 votes - 5.00 average) Installs: 42
Released: 28 Aug 2008 Last Update: 29 Aug 2008 Downloads: 100
Not Supported Template Edits Re-usable Code  

This hack works with the icons from: Icons for UserCP Navigation

Installation is very easy and only 4 steps.

1. Find in your navbar template:
<!-- header quick search form --> till <!-- / header quick search form -->

replace by:
HTML Code:
<!-- header quick search form -->
	<div class="vbmenu_popup" id="navbar_search_menu" style="display:none" align="$stylevar[left]">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead">$vbphrase[search_forums]</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
				<form action="search.php?do=process" method="post">
					<input type="hidden" name="do" value="process" />
					<input type="hidden" name="quicksearch" value="1" />
					<input type="hidden" name="childforums" value="1" />
					<input type="hidden" name="exactname" value="1" />
					<input type="hidden" name="s" value="$session[sessionhash]" />
					<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
					<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
					<div style="margin-top:$stylevar[cellpadding]px">
						<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
						&nbsp;
						<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
					</div>
				</form>
			</td>
		</tr>
		<if condition="$vboptions[threadtagging]">
		<tr>
			<td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/tag.png"><a href="tags.php$session[sessionurl_q]" rel="nofollow">&nbsp;$vbphrase[tag_search]</a></td>
		</tr>
		</if>
		<tr>
			<td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/cog.gif"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">&nbsp;$vbphrase[advanced_search]</a></td>
		</tr>
		$template_hook[navbar_search_menu]
		</table>
	</div>
	<!-- / header quick search form -->

2. Find in your navbar template:
<!-- user cp tools menu --> till <!-- / user cp tools menu -->

replace by:
HTML Code:
<!-- user cp tools menu -->
	<div class="vbmenu_popup" id="usercptools_menu" style="display:none" align="$stylevar[left]">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">$vbphrase[quick_links]</td></tr>
		<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/page_white_copy.gif"><a href="search.php?$session[sessionurl]do=getdaily">&nbsp;$vbphrase[todays_posts]</a></td></tr></if>
		<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/page_white_get.gif"><a href="forumdisplay.php?$session[sessionurl]do=markread">&nbsp;$vbphrase[mark_forums_read]</a></td></tr>
		<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/group.gif"><a href="#" onClick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">&nbsp;$vbphrase[open_contacts]</a></td></tr>
		$template_hook[navbar_quick_links_menu_pos1]
		<tr><td class="thead">$vbphrase[networking]</td></tr>
		<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/emoticon_smile.gif"><a href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">&nbsp;$vbphrase[contacts_and_friends]<else />&nbsp;$vbphrase[contacts]</if></a></td></tr>
		<if condition="$show['quick_links_groups']">
			<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/group.gif"><a href="group.php$session[sessionurl_q]">&nbsp;$vbphrase[social_groups]</a></td></tr>
		</if>
		<if condition="$show['quick_links_albums']">
			<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/photos.gif"><a href="album.php?$session[sessionurl]u=$bbuserinfo[userid]">&nbsp;$vbphrase[pictures_and_albums]</a></td></tr>
		</if>
		$template_hook[navbar_quick_links_menu_pos2]
		<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
		<if condition="$show['siglink']"><tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/page_red.gif"><a href="profile.php?$session[sessionurl]do=editsignature">&nbsp;$vbphrase[edit_signature]</a></td></tr></if>
		<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
		<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/user_edit.gif"><a href="profile.php?$session[sessionurl]do=editprofile">&nbsp;$vbphrase[edit_your_details]</a></td></tr>
		<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/cog.gif"><a href="profile.php?$session[sessionurl]do=editoptions">&nbsp;$vbphrase[edit_options]</a></td></tr>
		$template_hook[navbar_quick_links_menu_pos3]
		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
		<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/email_open.gif"><a href="private.php$session[sessionurl_q]" rel="nofollow">&nbsp;$vbphrase[private_messages]</a></td></tr></if>
		<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/newspaper.gif"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">&nbsp;$vbphrase[subscribed_threads]</a></td></tr>
		<tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/user_edit.gif"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">&nbsp;$vbphrase[your_profile]</a></td></tr>
		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/group.gif"><a href="online.php$session[sessionurl_q]">&nbsp;$vbphrase[whos_online]</a></td></tr></if>
		$template_hook[navbar_quick_links_menu_pos4]
		</table>
	</div>
	<!-- / user cp tools menu -->
3. Find in your forumdisplay template:
<!-- forum search menu --> till <!-- / forum search menu -->

replace by:
HTML Code:
<!-- forum search menu -->
<div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
<form action="search.php?do=process" method="post">
	<table cellpadding="4" cellspacing="1" border="0">
	<tr>
		<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
	</tr>
	<tr>
		<td class="vbmenu_option" title="nohilite">
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
			<input type="hidden" name="do" value="process" />
			<input type="hidden" name="forumchoice[]" value="$forumid" />
			<input type="hidden" name="childforums" value="1" />
			<input type="hidden" name="exactname" value="1" />
			<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" accesskey="s" tabindex="1004" /></div>
		</td>
	</tr>
	<tr>
		<td class="vbmenu_option" title="nohilite">
			<label for="rb_fd_sp0"><input type="radio" name="showposts" value="0" id="rb_fd_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
			&nbsp;
			<label for="rb_fd_sp1"><input type="radio" name="showposts" value="1" id="rb_fd_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
		</td>
	</tr>
	<tr>
		<td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/cog.gif"><a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">&nbsp;$vbphrase[advanced_search]</a></td>
	</tr>
	</table>
</form>
</div>
<!-- / forum search menu -->

4. Find in your showthread template:
<!-- thread search menu --> till <!-- / thread search menu -->

replace by:
HTML Code:
<!-- thread search menu -->
<div class="vbmenu_popup" id="threadsearch_menu" style="display:none">
<form action="search.php?do=process&amp;searchthreadid=$threadid" method="post">
	<table cellpadding="4" cellspacing="1" border="0">
	<tr>
		<td class="thead">$vbphrase[search_this_thread]<a name="goto_threadsearch"></a></td>
	</tr>
	<tr>
		<td class="vbmenu_option" title="nohilite">
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
			<input type="hidden" name="do" value="process" />
			<input type="hidden" name="searchthreadid" value="$threadid" />
			<input type="text" class="bginput" name="query" size="25" />$gobutton<br />
		</td>
	</tr>
	<tr>
		<td class="vbmenu_option"><img src="$stylevar[imgdir_misc]/usercp_icons/cog.gif"><a href="search.php?$session[sessionurl]searchthreadid=$threadid">&nbsp;$vbphrase[advanced_search]</a></td>
	</tr>
	</table>
</form>
</div>
<!-- / thread search menu -->
Now your done!

Click if you like the mod

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Image template modification.txt (8.9 KB, 88 downloads)

Screenshots

Click image for larger version
Name:	search.png
Views:	280
Size:	5.6 KB
ID:	86195   Click image for larger version
Name:	quick_links.png
Views:	430
Size:	18.6 KB
ID:	86196   Click image for larger version
Name:	forumdisplay.png
Views:	219
Size:	6.8 KB
ID:	86235   Click image for larger version
Name:	showthread.png
Views:	253
Size:	7.7 KB
ID:	86236  


vblts.ru supports vBulletin®, 2022-2024