Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-27-2009, 12:44 AM
Trek Trek is offline
 
Join Date: Sep 2003
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Issues with popup menus

I'm trying to upgrade a mod of my own that I wrote and am having a couple of problems. Hopefully someone here can help me out a bit.

First I have this code located in the postbit_legacy template:

Code:
                        <vb:if condition="is_member_of($vbulletin->userinfo, $vboptions[gm_user_groups_allowed]">
                            <div id="GuildMate_{vb:raw post.postid}">
                                <a class="smallfont" href="#">{vb:phrase gm_postbit_text}</a>
                                <script type="text/javascript"> vbmenu_register("GuildMate_{vb:raw post.postid}", true); </script>
                            </div>

                        </vb:if>
First problem with that is, the IF condition doesn't seem to work, I'm guessing it's something to do with $vbulletin->userinfo, but I'm not sure what to change it to.

So for now, I've removed the condition.

At this point, when some clicked on the link before, it would activate this code:

Code:
<!-- START: Guild Mate {vb:raw post.postid} popup menu -->
<div class="vbmenu_popup" id="GuildMate_{vb:raw post.postid}_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr>
        <td class="thead" colspan="3" align="center">{vb:phrase gm_modtitle}: {vb:phrase gm_modheader} $post[username]{vb:phrase gm_modheader2}</td>
    </tr>

    {vb:raw gm_char_data}
    </table>
</div>
<!-- END: Guild Mate $post[postid] popup menu -->
Instead of going to the URL specified in the A HREF above which is my website root. In VB4, it seems to go to the URL instead of this popup code that is specified at the bottom of the template. I'm not sure what else to try, but I'm still working at it.

Any help would be appreciated!

--------------- Added 26 Dec 2009 at 19:30 ---------------

I did want to say that everything appears to be generating as it should. The only problem is when clicking the link, the popup does not appear and it goes to the root level page.

Checking the source, the menus are generated as they should be, everything LOOKs like it should work.

I would like to add that I have in fact read all of the posts I can find on the popup menus and well.. still can't see what I'm doing wrong.
Reply With Quote
 


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 12:27 AM.


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.03743 seconds
  • Memory Usage 2,421KB
  • Queries Executed 12 (?)
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
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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