Thread: Blak-Ice V2
View Single Post
  #115  
Old 03-08-2009, 07:46 PM
technom8t technom8t is offline
 
Join Date: Oct 2007
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sooner95 View Post
I'd like to share with others something i did as well in this theme.

Again the Nav button setup is cool.

Here is how you can make those buttons also open up drop-down menus.

I will use 2 examples.

For the new Post button, and a drop-down so that one can look at new posts at specidfic times. I did not create the hack, just mearly made it work on the button.

Common Templates/header

Use this to create the button and link


PHP Code:
<if condition="$show['member']">
<
td width="50" height="55"><a href="search.php?do=getnew$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_newpost2.gif" width="50" height="55" border="0" id="navbar_posts"  alt=""/></a><script type="text/javascript"vbmenu_register("navbar_posts"); </script></td></if> 

You will need to check you image path ect.. and take note of moving the id="" from the td tag into the url tag. This will get rid of the little dropdown arrow.


Then your drop down menu.

Find this

PHP Code:
<!-- content table -->
$spacer_open 
And place it above that.

Some thing this..

PHP Code:
<if condition="$show['searchbuttons']">
        <
div class="vbmenu_popup" id="navbar_posts_menu" style="display:none">
            <
table cellpadding="4" cellspacing="1" border="0">
<
tr><td class="thead">$vbphrase[get_posts_nav]</td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">Get All New Posts</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=15" accesskey="2">Last 15 Minutes</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&minutes=30" accesskey="2">Last 30 Minutes</a></td></tr>
            
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=1" accesskey="2">Last Hour</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=2" accesskey="2">2 Hours</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=4" accesskey="2">4 Hours</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=8" accesskey="2">8 Hours</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&hours=12" accesskey="2">12 Hours</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=1" accesskey="2">1 Day</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=2" accesskey="2">2 Days</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=7" accesskey="2">7 Days</a></td></tr>
<
tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily&days=14" accesskey="2">14 Days</a></td></tr>

            </
table>
        </
div>
    </if> 

And your end result is attached as a screeny..also attached a screenshot of doing this with vbplaza.

Again these are not my hacks, I just made the dropdowns work with these buttons.
This is a good idea and i sort of have it working BUT....... if there ar no posts within 15 minutes and you select '' post within last 15 minutes'' from the drop down, instead of giving you the '' there are no posts to display'' message( the standard VB message) it shows post from the last few days, which isn't realy correct, are you able to sort this? and this happens if there are no ost in any of the drop downs you want
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01186 seconds
  • Memory Usage 1,856KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete