vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Help with this drop down (https://vborg.vbsupport.ru/showthread.php?t=40654)

Brad 07-04-2002 02:09 PM

Help with this drop down
 
its been naging me for days, i posted this at the vB.com template forum but after 72 views no one has replied with a working verson. so im hoping ill get one here. my deadline is in 2 days and i need this to work ;). i thought it might need a bit of code hacking so i dident post it in the template forum.

from my post at vB.com


Quote:

somewhere in the postbit i added this:

Code:

<select>
<OPTION value="">$post[username]'s info.</option>
<OPTION value="">--------------</option>
<OPTION value="$post[profile]Profile</option>
<OPTION value="$post[pmlink]Pm User</option>
<OPTION value="$post[useremail]Email</option>
<OPTION value="$post[homepage]View Homepage</option>
<OPTION value="$post[search]Search</option>
<OPTION value="$post[buddy]Buddy</option>
<OPTION value="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]">Edit</option>
<OPTION value="newreply.php?s=$session[sessionhash]&action=newreply&postid=$post[postid]">Quote</option>
</SELECT>

and this to the header template:

Code:

<script language="JavaScript1.2">
//reusable/////////////////////////////


var zindex=100
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all
var opr=navigator.userAgent.indexOf("Opera")

function dropit(e,whichone){
curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
if (window.themenu&&themenu.id!=curmenuID)
themenuStyle.visibility=ns4?"hide" : "hidden"

themenu=ns6? document.getElementById(whichone): eval(whichone)
themenuStyle=(ns6||ie4)? themenu.style : themenu

themenuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0
themenuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0

themenuStyle.left=ns6||ns4? e.pageX-e.layerX : themenuoffsetX+event.clientX-event.offsetX
themenuStyle.top=ns6||ns4? e.pageY-e.layerY+19 : themenuoffsetY+event.clientY-event.offsetY+18

hiddenconst=(ns6||ie4)? "hidden" : "hide"
if (themenuStyle.visibility==hiddenconst){
themenuStyle.visibility=(ns6||ie4)? "visible" : "show"
themenuStyle.zIndex=zindex++
}
else
hidemenu()
return false
}

function hidemenu(){
if ((ie4||ns6)&&window.themenu)
themenuStyle.visibility="hidden"
else if (ns4)
themenu.visibility="hide"
}

if (ie4||ns6)
document.onclick=hidemenu

//reusable/////////////////////////////
</script>

This code was right out of my ubb templates (with a few changes to use vB's links of course :) ) and it always worked on ubb. where might i be making the error in my code?

g-force2k2 07-04-2002 05:35 PM

Anime-loo i don't see how the heading code would help you in this instance... if you're looking to accomplish this effect then probably just make your own coding for it... i can make you something if needed ;)

Edit: Note on another hand should end your options:

<OPTION value="$post[profile]Profile</option>

should be:

<optioin value="$post[profile]">Profile</opton>

Also another note... is that i don't think you need the $post[profile] part because you're not looking to access other members profiles and stuff... besides it wouldn't work eitehr ways ;)

g-force2k2


All times are GMT. The time now is 08:39 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.00999 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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