1
rajanurs
How to insert javascript menu into xoops theme ?
  • 2004/12/17 14:16

  • rajanurs

  • Just popping in

  • Posts: 55

  • Since: 2004/12/8


Hi,

I am trying out XOOPS & Softcomplex Javascript Menubuilder v1.0.3 for the first time and I cant figure out how to insert the menu. [Xoops v.2.0.7.3 is installed on a local server Apache/MySQL/php v4.3.9 /v5

I made a test menu with the following files saved:


menu.js
menu_tpl.js
menu_items.js
menu.css
index.html

The index.html test file works fine in the browser. How do I insert the menu in XOOPS theme.html [for example somewhere in the top next to the XOOPS menu in the default theme.]



I am no good in PHP and Javascripts so please elaborate.

2
Eugney
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/17 14:24

  • Eugney

  • Not too shy to talk

  • Posts: 162

  • Since: 2004/7/25


Either make a new block in the templates or go to the theme and make a table than do file include

3
Anonymous
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/17 14:45

  • Anonymous

  • Posts: 0

  • Since:


Hi,
replace
"menu.js"

with
"<{$xoops_url}>/theme/default/menu.js"


ur problem is ur main page can't find menu.js



4
rajanurs
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/17 18:50

  • rajanurs

  • Just popping in

  • Posts: 55

  • Since: 2004/12/8


Thanks for the help

5
jamboree
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/19 17:19

  • jamboree

  • Just popping in

  • Posts: 28

  • Since: 2004/2/25


I successfully(?) added a number of small javascript menus into my site by inserting them into blocks. See 'Profiles' or 'News' on http://www.grandz.net/dragonfly/

My only problem is that ic an have no more than 1 javascript function on the same page. For example, my javascript menu for 'Profiles' sits at the top of each wfsections page. If I try to create an article with an animated jpg (using javascript and html) it will not work because I am already running javascript in the menu above it.

Similarly, I cannot have two different javascript menus (using blocks) in the same column nor can I put any other blocks after the javascript menu because the menu seems to sit 'above' the XOOPS template.

Do I need to insert the code into the theme.html file and if so how do i do this?

Been trying to figure this out for a long time so any help would be greatly appreciated.

I'm running XOOPS 2.0.6.
many thanks
Jamboree

6
rajanurs
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/19 20:24

  • rajanurs

  • Just popping in

  • Posts: 55

  • Since: 2004/12/8


I am also still stuck with the Tigra menu.

It was mentioned elsewhere on this forum that a module for Tigra menu was developed. Where can I download it ? Or can someone who has it send me one please ? [Even a sample theme with a menu will do so I can see how its done]

7
svaha
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/19 20:54

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I'm testing the tigra menu on my site right now :
First copy the menu files to the directory of the theme that you use.
Then insert in the header of your theme.html file :
Quote:



The in the same theme.html file insert just before the /body (end body tag)

Quote:



<{if $xoops_langcode == 'en'}>


<{else}>


<{/if}>





Because I have a multilingo site I use to different menu_items files. If you don't have that then there is no need for that of course
Hope this helps

Aloha

8
rajanurs
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/20 19:02

  • rajanurs

  • Just popping in

  • Posts: 55

  • Since: 2004/12/8


Thanks svaha for the help.

I can easily position the menu in the theme.html using the coordinates in menu_tpl.js . The problem I have is I am unable to make it appear in the index.php page

One of the reasons for my problem is I am a complete idiot in coding [which you might have figured already]

9
svaha
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/20 20:42

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Quote:

rajanurs wrote:
Thanks svaha for the help.

I can easily position the menu in the theme.html using the coordinates in menu_tpl.js . The problem I have is I am unable to make it appear in the index.php page

One of the reasons for my problem is I am a complete idiot in coding [which you might have figured already]


Well then we can shake hands, because I'm an allround idiot.
The themes are cached in the templates_c folder (directory), so before you see changes, you first have to delete the cached theme in this folder. Did you do this already or not?

Aloha

10
rajanurs
Re: How to insert javascript menu into xoops theme ?
  • 2004/12/21 12:12

  • rajanurs

  • Just popping in

  • Posts: 55

  • Since: 2004/12/8


I got it ok now Svaha. Thanks to you and everyone.

Login

Who's Online

337 user(s) are online (297 user(s) are browsing Support Forums)


Members: 0


Guests: 337


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits