dtree help

 
0
 
JavaScript
ava
guest | 10.12.2004, 14:26
anyone knows agood dtree that is like in the IPB or/and vb forums in the admin area!

u have like:

|----cat 1-------
||----subcat1
||----subcat2
||----subcat3
||----subcat4
||----subcat5
|----cat 2-------
||----subcat1
||----subcat2
||----subcat3
||----subcat4
||----subcat5

and it will work JUST like in the IPB or/and vb forums in the admin area!

I made something but when i press on acat and it show me all here sub cats and i press on a subcat it links me to the destination and auto closes the whole dtree do u know why?

here is the code: i used a var as the cat id wich is 1!




function showHideTable(menuId)
{
var cat = 1;
var obj=document.getElementById(menuId)
obj.style.display=(obj.style.display==""?"none":"")
}
function showHideTable(menuId)
{
var obj=document.getElementById(menuId)
obj.style.display=(obj.style.display==""?"none":"")
}





tnx in advance!
Kommentare (19)
ava
Alx | 10.12.2004, 17:22 #
а по-русски мы разговаривать не умеем? тогда хотя бы по английски научились...

Цитата (Guest @ 10.12.2004, 15:14)
any body


:hmmm

später ergänzt:
и JS тут не причём. такое меню, как в админкке IPB написано на PHP&MySQL :hmmm
ava
50cent | 10.12.2004, 17:50 #
could u post that in english i dont understand russion
ava
Aliance | 10.12.2004, 19:57 #
50cent
Hello.
Firstly, register here, please.

Can you tell us, why do you need it?

Unfortunatly, I don't know
Цитата


IPB or/and vb forums in the admin area


What's this?

To your mind, it's a russian forum. Everybody speaks russian here ;)
ava
50cent | 10.12.2004, 21:39 #
i know it is russian forum but still ....
i need a javascript that makes a dtree like in the ipb admin area like in this forum in the admin area u have a dtree

click on this link:

http://demo.invisionboard.com/v2/admin.php


user: demo
pass: demo

u will se on the left a menu how can i make one just like that??
tnx!
ava
Aliance | 10.12.2004, 21:50 #
If you have managed to use the search you would have found many topics, like this:
http://forum.vingrad.ru/index.php?showtopic=33476

and this:
http://forum.vingrad.ru/index.php?showtopic=31406

With best regards... Hope it's that you need...
später ergänzt:
Also, to make design better, I can give you some script of menu like which is in Outlook Express.
If you join it - it will be nice menu :^)

PS: Sorry for my "English", as you understand I'm russian =)))
ava
50cent | 10.12.2004, 22:07 #
well tnx for your help but u gave me links to russian language if it is posible plz post your msn or icq so i could talk to u instantly!
here are myn
178801680
[email protected]
plz login to my conctact list!
tnx
ava
Aliance | 10.12.2004, 22:12 #
Okey... for a additional I can say, that scripts are wrote on English... you can manage to understand it )))
ava
50cent | 10.12.2004, 22:20 #
ye i kinda notiched that!
but i need it not to look like that!!
i need it to be exacly like in the ipb admin area u saw it!
not:
+cat
|-subcat
|-subcat
|
+cat
|-subcat
|-subcat
|
|+cat
|-subcat
|-subcat
i need it to look like:
-----cat-------
|--subcat
|--subcat
------cat------
|--subcat
|--subcat


like that!
ava
Alx | 10.12.2004, 22:28 #
Господи, ну объясните вы ему, что это PHP! :D

пересылаем скрипту параметры и он выводит -- закрыто ли меню или нет!
später ergänzt:
а, нет! если ему нужно, как во второй IPB, то там JavaScript. тогда дайте ему эту ссылку:

http://www.destroydrop.com/javascripts/tree/

50cent
you can visit it, it's a nice menu...
später ergänzt:
probably, u need just a same as admin area? then you may download this script...
ava
50cent | 10.12.2004, 23:06 #
as i said i dont need this kind of menu:
+cat
|-subcat
|-subcat
|
+cat
|-subcat
|-subcat
|
|+cat
|-subcat
|-subcat


i need it to look like:


-----cat-------
|--subcat
|--subcat
------cat------
|--subcat
|--subcat


tnx anyway!
ava
Alx | 10.12.2004, 23:19 #
I can't understand what do you want smile but i've downloaded & configured that script. now, you can download it here: http://alx.com.ru/fun/javascript/ipb2_acp_menu/menu.zip. you also can see how it works - http://alx.com.ru/fun/javascript/ipb2_acp_menu/admin.php

u'll only have to configure the nodes as you need. it's easy.

good luck ;)
ava
50cent | 10.12.2004, 23:24 #
wow tnx!!
ava
Alx | 10.12.2004, 23:25 #
ok, all's done, you can see it now!
später ergänzt:
Цитата (50cent @ 10.12.2004, 23:24)
wow tnx!!

u're always welcome smile
ava
50cent | 10.12.2004, 23:31 #
tnx but i am using for each cat as the cat number like the first cat i put
var = 1
and so on so could u cange the script to show only one menu not 10 menus and could u make that around the menus there wouldnt be a color likr red yellow!
tnx
ava
GoodBoy | 11.12.2004, 13:35 #
вот черти нерусские!!!! smile)))))))
ava
50cent | 11.12.2004, 16:14 #
english plz....


I made something but when i press on acat and it show me all here sub cats and i press on a subcat it links me to the destination and auto closes the whole dtree do u know why?

here is the code: i used a var as the cat id wich is 1!




function showHideTable(menuId)
{
var cat = 1;
var obj=document.getElementById(menuId)
obj.style.display=(obj.style.display==""?"none":"")
}
function showHideTable(menuId)
{
var obj=document.getElementById(menuId)
obj.style.display=(obj.style.display==""?"none":"")
}


tnx in advance!
ava
Aliance | 11.12.2004, 16:21 #
50cent
I think you have to use "cookies" for it =)
ava
50cent | 11.12.2004, 16:23 #
can u edit it so it will be ok?
ava
Aliance | 11.12.2004, 16:29 #
50cent
Is your script full? I don't think so...
Plz, write it all... So I can make it right smile
Registrieren Sie sich oder melden Sie sich an, um schreiben zu können.
Unternehmen des Tages
Вы также можете добавить свою фирму в каталог IT-фирм, и публиковать статьи, новости, вакансии и другую информацию от имени фирмы.
Подробнее
Mitwirkende
  guest   GoodBoy   Alx ava  Aliance   50cent
advanced
Absenden