Monaco Franze
04-06-2006, 12:53 PM
Hi !!
I've downlaoded the AnyLink Drop Down Menu (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm ) and implemented it half-sucessfull in my website (a phpBB2 board).
Okay, everything would work great, but there is a problem with the links within the menu.
I would like to use this menu in the thread-view of my forum, when you click on a poster's name, see here:
[Menu closed]
http://people.freenet.de/zettlzone/one-one.PNG
[Menu opened]
http://people.freenet.de/zettlzone/one-two.PNG
In the Menu there are the typical Links known from board systems:
- Go to users profile
- Send him / her a private Message
- Send him / her a Email
- Search for his / her posts
and so on.
Okay, the links are generated in the .php file, so in the .html file, that belongs to the .php file, you just have a variable to place.
For example for the Email function:
This code is in the .php file
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
that generates this variable
{postrow.EMAIL}
for the html file
and thats the problem:
This variable would work good when you put in the usual way somewhere in the .html file, but the in the code of the javascript (where you have to add your links), it doesen't work.
cause when you use the variable, you can, no, you MUST use it as it is ({postrow.EMAIL}), and not in this way: <a href="{postrow.EMAIL}">Send Email</a>
My question is: can anyone patch this javascript for me, that it is possible to add this variables?
Like if you would say to the javascript "He guy, look here: No need for the <a tag>, it's already generated in the .php file!"
would be great!
thanks in advance guys! ;)
edit: this is how it sould be.. but like above said, doesn't work.
(if you use this code, only the first column called "Optionen" is showed)
//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="javascript:void(0)">Optionen</a>'
menu2[1]='{postrow.PROFILE}'
menu2[2]='{postrow.PM}'
menu2[3]='{postrow.SEARCH}'
menu2[4]='{postrow.EMAIL}'
menu2[5]='{postrow.WWW}'
menu2[6]='{postrow.ALBUM}'
var menuwidth='180px' //default menu width
var menubgcolor='f9f9f9' //menu bgcolor
var disappeardelay=999999999999999999 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////No further editting needed
I've downlaoded the AnyLink Drop Down Menu (http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm ) and implemented it half-sucessfull in my website (a phpBB2 board).
Okay, everything would work great, but there is a problem with the links within the menu.
I would like to use this menu in the thread-view of my forum, when you click on a poster's name, see here:
[Menu closed]
http://people.freenet.de/zettlzone/one-one.PNG
[Menu opened]
http://people.freenet.de/zettlzone/one-two.PNG
In the Menu there are the typical Links known from board systems:
- Go to users profile
- Send him / her a private Message
- Send him / her a Email
- Search for his / her posts
and so on.
Okay, the links are generated in the .php file, so in the .html file, that belongs to the .php file, you just have a variable to place.
For example for the Email function:
This code is in the .php file
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
that generates this variable
{postrow.EMAIL}
for the html file
and thats the problem:
This variable would work good when you put in the usual way somewhere in the .html file, but the in the code of the javascript (where you have to add your links), it doesen't work.
cause when you use the variable, you can, no, you MUST use it as it is ({postrow.EMAIL}), and not in this way: <a href="{postrow.EMAIL}">Send Email</a>
My question is: can anyone patch this javascript for me, that it is possible to add this variables?
Like if you would say to the javascript "He guy, look here: No need for the <a tag>, it's already generated in the .php file!"
would be great!
thanks in advance guys! ;)
edit: this is how it sould be.. but like above said, doesn't work.
(if you use this code, only the first column called "Optionen" is showed)
//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="javascript:void(0)">Optionen</a>'
menu2[1]='{postrow.PROFILE}'
menu2[2]='{postrow.PM}'
menu2[3]='{postrow.SEARCH}'
menu2[4]='{postrow.EMAIL}'
menu2[5]='{postrow.WWW}'
menu2[6]='{postrow.ALBUM}'
var menuwidth='180px' //default menu width
var menubgcolor='f9f9f9' //menu bgcolor
var disappeardelay=999999999999999999 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
/////No further editting needed