Question about Code Block module

dbcooper

Joined: 2008-07-09
Posts: 31
Posted: Mon, 2012-06-18 20:02

I just installed the Code Block module, and my question is about this part of the instructions:

Quote:
Edit the modules/code_block/views/code_block.html.php to add JS / PHP code.
Edit the file to add the desired php/jsp directly into the code block.

What do I need to put in the code_block.html.php file to allow for JS and PHP?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-06-18 20:07

Edit that file and place the php and or JS code in the file. Save the file.

What code are you trying to add?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dbcooper

Joined: 2008-07-09
Posts: 31
Posted: Mon, 2012-06-18 20:16

Thanks thats easy! I actually think I already tried that, and it probably worked, without me seeing the block I added due to it being underneath my other sidebar blocks..I've re-arranged now...I'm adding javascript.

Great module, btw!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-06-18 20:46

Cheers,
Got better wording for the docs so it make more sense?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dbcooper

Joined: 2008-07-09
Posts: 31
Posted: Mon, 2012-06-18 21:32

Excellent.. thanks Dave. I'm not an expert coder at all, so I wasn't sure if my error was placing my code before/after the code that's already in the file. I ended up placing my code at the very beginning.

Thanks again for the help, and for the module.