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 - Search and Quicklink Images (https://vborg.vbsupport.ru/showthread.php?t=189397)

TheProphet 08-27-2008 10:00 PM

Search and Quicklink Images
 
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 install if you like the mod

xixxon 08-28-2008 07:15 PM

GoodJoob :D

snowlion 08-29-2008 12:55 PM

nice work ^_^

TheProphet 08-29-2008 02:15 PM

Thank you all...

Hugo Holbling 08-29-2008 05:34 PM

This is really nice. I added "&nbsp;" after each of the images just to separate them from the text.

TheProphet 08-30-2008 09:05 AM

Quote:

Originally Posted by Hugo Holbling (Post 1610036)
This is really nice. I added "&nbsp;" after each of the images just to separate them from the text.

I did that with a space b4 the phrase, but ill update the code to that. thx

alkatraz 09-09-2008 03:09 AM

Nice hack, thanks

Quote:

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

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

TheProphet 09-11-2008 01:51 PM

Typo updated... thx for notice it.

Baldilocks 09-12-2008 07:34 AM

If you have extra links and items in any one of these templates, they will no longer display, correct??

TheProphet 09-16-2008 02:08 PM

Quote:

Originally Posted by Baldilocks (Post 1620372)
If you have extra links and items in any one of these templates, they will no longer display, correct??

Duh! Every modification with template edits has a starting point of unmodified template code. If you have modifications done already, combine or adapt it...

Baldilocks 09-19-2008 03:50 AM

A smart ass answer wasn't needed. I was just trying to make sure that others understood this.

I tell you, a lot of you designers and coders here need to learn people skills. It's amazing any of you can even keep a forum community together with your attitudes.

TheProphet 09-19-2008 05:21 PM

I wasn't being a smart ass, just notice you of a unwritten rule on template modifications.

Baldilocks 09-19-2008 05:44 PM

Gotcha! Sorry for the misunderstanding. :)

TheProphet 09-19-2008 07:47 PM

No worry m8 :p

Replicators 10-16-2008 11:03 PM

Some people do use the png's as they have a dark style. I can edit myself in the png code, but you may wanna give instructions for both.

EDIT: I have attached instructions for png users to use.

sparklywater 12-27-2008 10:41 PM

thank u, TheProphet and Replicators.


All times are GMT. The time now is 06:40 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.01344 seconds
  • Memory Usage 1,844KB
  • 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
  • (4)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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