Jump to content

Recommended Posts

Posted

I've been trying to add some java script to a block that i want displayed on my site, but every time i would create the block and hit save it would kick me back to the home page and not save the block. I tried everything, then i would give up, then i would try again a few days later only to give up. So i started doing some searching and heres what i found.

 

If you want to create a block that uses java script, using your favorite editor (i use Dreamweaver MX) create a php file with your java script in it, name it block-whatevername.php and then upload it to your blocks folder in you phpnuke root directory.

 

now go to your block admin page and in the create a new block section click on the drop down menu titled custom and select the name of the block you just created and hit save, now your block including java script will display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...