1
freemenn
How to use Javascript in Blocks? -- Please Help!
  • 2007/4/24 22:39

  • freemenn

  • Just popping in

  • Posts: 13

  • Since: 2007/4/24


Hi all,
how can i use Javascrpt in a block?
I like to show latest news on my site tha is delyverend with a javacode but it seems ot does not work. Is there any way to put the java code in a blockor is tehre any additional Modula available to do this?
Thanks a lot

2
Quest
Re: How to use Javascript in Blocks? -- Please Help!
  • 2007/4/25 1:39

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


sometimes there are parts of the java code which will need to be in the part of your theme. Then the rest which would normally be in the is what you put in the block and save the custom block as html type.

hths
Quest

3
freemenn
Re: How to use Javascript in Blocks? -- Please Help!
  • 2007/4/25 8:20

  • freemenn

  • Just popping in

  • Posts: 13

  • Since: 2007/4/24


what i like to do is to show news in a block. tHe script is as following (usualli can just put in the html page at any point)
-----------







4
Quest
Re: How to use Javascript in Blocks? -- Please Help!
  • 2007/4/25 23:51

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Works for me. XOOPS version 2.16.

5
Quest
Re: How to use Javascript in Blocks? -- Please Help!
  • 2007/4/25 23:57

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Go to your xoops/administration/system/blocks

Scroll down until you see the custom block area.
Set the location where you want the block to display.
Set the page/pages and or modules you want the block to display on.
Make sure YES is check for visible.
Paste the code you provided in your post in the text area.
Make sure the type is set to HTML
Click on Submit

It should work. Webmaster will be granted permissions by default to view the block. In order to give others access to view the block you need to go to your xoops/administration/system/groups and make sure you give permission to your other groups you want to be able to view the block. Like Registered Users and Anonymous.

Quest

Login

Who's Online

339 user(s) are online (288 user(s) are browsing Support Forums)


Members: 0


Guests: 339


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