Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2009, 02:08 PM
hobbybox hobbybox is offline
 
Join Date: May 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Dropdown box In Postbit

I want to add a link in my Psotbit that has a drop down box - not the one you get when you hover over a members name - but seperate link...

any help on how to do this?
Reply With Quote
  #2  
Old 02-10-2009, 02:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the articles forum is an article on adding dropdowns to your navbar. The basic premise is the same for adding dropdowns anywhere. So, just follow that article - How To Add Drop Down Menus To Your Navbar
Reply With Quote
  #3  
Old 02-10-2009, 02:36 PM
hobbybox hobbybox is offline
 
Join Date: May 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you - that went back to 2006 i think so i didnt know if that still applied - thanks again.

--------------- Added [DATE]1234285188[/DATE] at [TIME]1234285188[/TIME] ---------------

I got it to work - however for some reason now there are like 8 down arrows after the link - i know there should be 1 but im not sure why repeating.
Reply With Quote
  #4  
Old 02-10-2009, 03:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the only way someone can help with that is to see the code you used.
Reply With Quote
  #5  
Old 02-10-2009, 03:34 PM
hobbybox hobbybox is offline
 
Join Date: May 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did this in the postbit_legacy where I wanted the item to show

Code:
<if condition="$show['popups']">

<td id="albummenu">
    <a href="#">Album Menu</a>
    <script type="text/javascript">
        vbmenu_register("albummenu");
    </script>
</td>

</if>
I removed the Class since it highlighted and underlined it - but either way the same result.

In the navbar area i put

Code:
<div class="vbmenu_popup" id="albummenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">Album Menu</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
content row
</td>
</tr>
</table>
</div>
I noticed also tht when I did this - it only worked on the first post - all other posts in a thread linked to that post - it didnt do the popup menu.
Reply With Quote
  #6  
Old 02-10-2009, 04:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your id must be unique. So, use something like albummenu_menu_$post[postid]

You should supply a link to a page so we can see what is going on.
Reply With Quote
  #7  
Old 02-10-2009, 04:56 PM
hobbybox hobbybox is offline
 
Join Date: May 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is killing me...

Postibit Legacy
Code:
<if condition="$show['popups']">

<td id="albummenu_menu_$post[postid]">
    <a href="#">My Albums</a>
    <script type="text/javascript">
        vbmenu_register("albummenu_menu_$post[postid]");
    </script>
</td>

</if>


Navbar

Code:
<!-- Album Menu -->
<div class="vbmenu_popup" id="albummenu_menu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">My Album</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
content row
</td>
</tr>
</table>
</div>
<!-- /Album Menu -->
this is resulting in errors on the page - there is now only 1 drop down arrow - but no drop down box - if you click on the My Albums link it will take you to the top post in the thread.

link

http://www.hobbyboxreviews.com/forum...2146#post12146

--------------- Added [DATE]1234292783[/DATE] at [TIME]1234292783[/TIME] ---------------

Ok some of the problem might have been I put the navbar stuff in navbar insted of postbit_legacty

I put both items in postbit legacy and the dropdown box nows works - BUT when you click it it still takes you to that post - and there are errors...

New Code - BOTH in postbit_legacy

Code:
<if condition="$show['popups']">

<td id="albummenu_$post[postid]">
    <a href="#">My Albums</a>
    <script type="text/javascript">
        vbmenu_register("albummenu_$post[postid]");
    </script>
</td>

</if>
Code:
<!-- Album Menu -->
<div class="vbmenu_popup" id="albummenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead">My Album</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
content row
</td>
</tr>
</table>
</div>
<!-- /Album Menu -->
Reply With Quote
  #8  
Old 02-10-2009, 05:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see a dropdown. But, all you have is "content row" and it isn't linked to anything so what do you think is supposed to happen?
Reply With Quote
  #9  
Old 02-10-2009, 06:03 PM
hobbybox hobbybox is offline
 
Join Date: May 2008
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,

Im sorry I dont know what I was thinking...my head was in a fog - all set now...thank you.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05985 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete