Use javascript inside coppermine Use javascript inside coppermine
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Use javascript inside coppermine

Started by chzuqi, March 10, 2009, 08:23:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chzuqi

I use it when i want to add some jquery effect,without any hack,it green and safe,
Just Edit the theme.php file's pageheader function
function pageheader($section, $meta = '',$script='')
and put this               '{SCRIPTS}'    => $script,
before  of after           '{CUSTOM_HEADER}' => $custom_header,
and Edit the template.html put the Tag   {SCRIPTS}
After
<script type="text/javascript" src="scripts.js"></script>
now you can use the function like that

$script=<<<EOT
<script type="text/javascript">
             //your code here
</script>
EOT;
pageheader($title,'',$scripts);

i wish somebody know what i mean....