vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Add an Item to "Post Popup Menu" (https://vborg.vbsupport.ru/showthread.php?t=89878)

memobug 10-04-2004 08:07 PM

Add an Item to "Post Popup Menu"
 
I've searched the templates and looked in the JavaScript includes, but I can't seemt to find out how to add an item to the post popup menu. This is the menu that appears when you click on a username next to a post. It has stuff like

1. View Public Profile
2. Send a Private Message to <user>
3. Find more posts by <user>
4. Add <user> to Buddy List
5. Stuff I want to Add here

The html dump starts like this:
<!-- post popup menu -->
<div class="vbmenu_popup" id="postmenu__menu" style="display:none">

But I can't find the menu!

Regards,

Matt

peterska2 10-04-2004 10:47 PM

You want the NAVBAR Template.

FIND
Code:

        <if condition="$show['member']">
        <!-- user cp tools menu -->
        <div class="vbmenu_popup" id="usercptools_menu" style="display:none">

And then just add your line into that section whereever you want it to appear.

memobug 10-05-2004 12:20 AM

Quote:

Originally Posted by peterska2
You want the NAVBAR Template.

FIND
Code:

        <if condition="$show['member']">
        <!-- user cp tools menu -->
        <div class="vbmenu_popup" id="usercptools_menu" style="display:none">

And then just add your line into that section whereever you want it to appear.

Thanks for pointing out that section, but

1. I can't get anything I put in there to appear
2. The stuff that IS in there doesn't look right for this menu. It has stuff like

<tr><td class="vbmenu_option"><a href="http://forum.bonsaitalk.com/forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>

Which isn't one of the functions that is in that popup menu when it is shown in postbit.

Anyway, I added in

<tr><td class="vbmenu_option">THIS IS A TEST</td></tr>

and it didn't show anything in the popup. I am really confused, but I appreciate the help.

Regards,

Matt

peterska2 10-05-2004 12:35 AM

OOOPS!

Sorry, wrong dropdown list.

You want the one in the POSTBIT.

If you are using the vB3 style postbit (at the top) then go into your POSTBIT template and find
Code:

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>

and add it below that.

If you are using the legacy postbit (to the left) go into your POSTBIT_LEGACY template and find the same code to add your item below.

I'm very sorry about that but you will need to remove the entry you have made from your navbar template.

memobug 10-06-2004 09:44 PM

Thanks! That is a help and I am using Legacy. I'll check it out.

Regards,

Matt

peterska2 10-06-2004 09:55 PM

If you have any problems with it just give me a shout


All times are GMT. The time now is 01:45 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.01524 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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