Abstract Influence
http://www.abstractinfluence.com/forums/

Member Menu
http://www.abstractinfluence.com/forums/viewtopic.php?f=9&t=4482
Page 1 of 1

Author:  emo_boy [ October 14th, 2006, 10:56 pm ]
Post subject:  Member Menu

Just installed another MOD which allows a menu to pop-up after click on a member's name while view a thread (also works while in a Private Message). Pretty much does what the buttons do underneath your post but in a link format (and is hidden). Small feature, not sure how useful it is to everyone but it's nice to have options. Let me know what you think and/or if you see any problems now.



Demo of it.
Image

Author:  Xeor [ October 15th, 2006, 6:00 am ]
Post subject: 

Looks great Emo!
Haven't occured any problems so far ,

Author:  splittingadams [ October 15th, 2006, 11:25 am ]
Post subject: 

nice, very high tech!!

Author:  Jaggi [ October 15th, 2006, 5:54 pm ]
Post subject: 

emo's bored and is gonna install every mod available for phpbb :P. Also a new addition added by standard to ipb 2.2 which released a couple of weeks ago :).

Author:  emo_boy [ October 15th, 2006, 6:01 pm ]
Post subject: 

It's true.

Author:  eos [ October 16th, 2006, 11:20 am ]
Post subject: 

yaaay

Author:  verbal [ October 16th, 2006, 9:04 pm ]
Post subject: 

looks like mr emo is catching up with the times!

Author:  emo_boy [ October 16th, 2006, 9:21 pm ]
Post subject: 

I'm trying. :)

Author:  verbal [ October 16th, 2006, 11:21 pm ]
Post subject: 

yes you are! keep going emo! nice updates so far

Author:  Xeor [ October 17th, 2006, 8:47 am ]
Post subject: 

yeah maybe we can manage the 21th century look.

Author:  emo_boy [ October 17th, 2006, 10:07 am ]
Post subject: 

I'm aiming for a 22nd century look.

Author:  kamyab [ October 17th, 2006, 9:13 pm ]
Post subject: 

works horribly in Safari.. the menu goes away as soon as I move my mouse :-P

Author:  emo_boy [ October 18th, 2006, 10:39 am ]
Post subject: 

The menu is suppose to go away automatically if you go out past the menu, tested it and works perfect in Firefox and IE. But it should stay up as long as you are in the menu, so I have no idea why it doesn't work in Safari. I would recommend getting a different broswer if simple CSS code doesn't work.

Thanks for letting me know though.

Author:  Xeor [ October 18th, 2006, 1:48 pm ]
Post subject: 

That's strange, Safari supports almost every CSS code, it's like a second Firefox.

Author:  emo_boy [ October 18th, 2006, 7:12 pm ]
Post subject: 

Yet it seems to have something against AI.

Author:  Jaggi [ October 19th, 2006, 1:05 pm ]
Post subject: 

seems to me the menu is aligned to the center which looks odd in ff i think it should be aligned to the left.

Author:  emo_boy [ October 19th, 2006, 2:06 pm ]
Post subject: 

Good point. I'll put that on my 'to do' list.

Author:  Xeor [ October 20th, 2006, 5:07 am ]
Post subject: 

float:left; margin-right: "x";

Author:  emo_boy [ October 21st, 2006, 4:47 pm ]
Post subject: 

I can't get it to align left, here is the .css code that displays the menu, maybe someone can help me.

Code:
//Contents for menu 2, and so on
<!-- BEGIN postrow -->
var menu{postrow.VB_MENU_ID}=new Array()
menu{postrow.VB_MENU_ID}[0]='<a class="vbmh">&nbsp;{postrow.POSTER_NAME}</a>'
menu{postrow.VB_MENU_ID}[1]='{postrow.VB_MENU_PROFILE}'
menu{postrow.VB_MENU_ID}[2]='{postrow.VB_MENU_PM}'
menu{postrow.VB_MENU_ID}[3]='{postrow.VB_MENU_SEARCH}'
menu{postrow.VB_MENU_ID}[4]='{postrow.VB_MENU_EMAIL}'
menu{postrow.VB_MENU_ID}[5]='{postrow.VB_MENU_WWW}'
menu{postrow.VB_MENU_ID}[6]='{postrow.VB_MENU_ALBUM}'
<!-- END postrow -->

var menuwidth='selfc' //default menu width
var menubgcolor='#F2F2F2'  //menu bgcolor
var disappeardelay='350'  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick='yes' //hide menu when user clicks within menu?


/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all
var defaultwidth=menuwidth
if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
if (typeof menuwidth=='undefined'||menuwidth=='selfc'){
tmpspan.style.display='inline'
dropmenuobj.widthobj.width=tmpspan.offsetWidth+'px'
tmpspan.style.display='none'
}
else if (menuwidth!='')
dropmenuobj.widthobj.width=menuwidth
else
dropmenuobj.widthobj.width=defaultwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}
function populatemenu(what){
if (ie4||ns6){
var appendit=0
if (typeof tmpspan=='undefined'){
tmpspan=document.createElement('span')
appendit=1
}
if(appendit){
tmpspan.style.position="absolute"
tmpspan.style.left="-1000px"
tmpspan.id='tspan'
document.body.appendChild(tmpspan)
tmpspan.style.display='none'
}
tmpspan.innerHTML=dropmenuobj.innerHTML=what.join("")
}
}
function dropdownmenu(obj, e, menucontents, menuwidth){
obj.onmouseout=delayhidemenu;
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)
if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}
function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}
function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}
function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}
function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
if (hidemenu_onclick=="yes")
document.onclick=hidemenu
</script>

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/