Support Forums

Javascript tree menu

This is a discussion on Javascript tree menu within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hello everybody, I would like to use the plugin "function.categories_js.php" to set up a jascript tree menu for my categories ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-18-2009, 04:59 AM   #1
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Red face Javascript tree menu

Hello everybody,

I would like to use the plugin "function.categories_js.php" to set up a jascript tree menu for my categories in the left side of my pages.

So I followed the instructions writen in the head of the plugin and I pasted the following code in layout.tpl but nothing happen!!

<link rel="StyleSheet" href="javascript/dtree/dtree.css" type="text/css" />
<script type="text/javascript" src="javascript/dtree/dtree.js"></script>
<script type="text/javascript">
<!--
{literal}
d = new dTree('d');
d.add(0,-1,'My example tree');
{/literal}

{categories_js}
{foreach from=$jscat item=entry}
{$entry.name}
{/foreach}
{literal}
document.write(d);
{/literal}
//-->
</script>


Anybody knows how I should do to make that plugin working?

Thank you for your help.

(def.template v4.1.5 developper)
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline   Reply With Quote
Old 08-18-2009, 07:25 AM   #2
Customer
 
damiun's Avatar
 
Join Date: Apr 2009
Posts: 412
Rep Power: 18
damiun is on a distinguished road
Default

Hi,

I dont have any experience with the mod but make sure:
- you've activated the mod
- the link to the files are correct (try to copy paste it beneath the original and use direct url (test them first)
- and you are using the tpl file of the template yu have set as your default. )

Dominick
Do you maybe have a link, it can be helpful.
damiun is offline   Reply With Quote
Old 08-18-2009, 08:13 AM   #3
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Default

Thank you for trying to help,

The plugin is not a module and so you don't have to activate it.

I am developping now in internal with xampp so i haen't any link to provide sorry.

I still looking for my solution

Thanks again
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline   Reply With Quote
Old 08-18-2009, 11:01 AM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

That plugin is kind of old now so I am not 100% sure it will run as is. However to check please download the dtree script files from here: Destroydrop � Javascripts � Tree then run it again.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-18-2009, 03:57 PM   #5
Customer
 
Join Date: Apr 2009
Location: South of Spain
Posts: 205
Rep Power: 15
magicosta is on a distinguished road
Red face

Thank you Eric.

I was trying to make this plugin working but...I am not successfull!

I went to the link you provided and downloaded the dtree.zip.

I put dtree.css, dtree.js and the images file call img in one main file called dtree and I have copyed that one in javascript directory.

The categories are displayed but nothing else and the links are not working.

Any idea?
__________________
Default Template - V 4.1.10 - Developper
magicosta is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4.1.x Category Tree IE 7 Continue/Footer Error industrialpost Modules / Plugins / Modifications 19 06-18-2009 03:03 AM
javascript in IE bedouin Technical Support 5 05-26-2009 01:18 PM
Category Tree Module Lhotch Modification Release 4 02-04-2009 04:57 PM


All times are GMT -4. The time now is 07:43 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0