how can i put this code to coppermine how can i put this code to 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

how can i put this code to coppermine

Started by trisko, October 15, 2006, 02:31:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

trisko

hi Guys

This programmis the best Guuuuuaaaaa

The question:

I put pool in my coppermine gallery and i decide to Quickpoll V 1.1  to do this. But the programmers of software tell me:

There are 2 parts to this. The following line need to go inside the head tag:

<script type="text/javascript" src="swfobject.js"></script>

Note: You also need to incude the file name "swfobject.js" with your files.

Then this code place where you want the poll to show:

<div id="flashcontent"></div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("template1.swf", "template1", "200", "320", "6", "#FFFFFF");
so.addVariable("pollXML","polldata.xml");
so.write("flashcontent");
// ]]>
</script>

And where i put both code

In the index.php in other place in wich site of the index.php.

Please help me

i am a begginers

thanks

allll

and thanks coppermine


Ignacio

Joachim Müller

Don't put your code into index.php - in fact you shouldn't edit index.php at all.
If your custom poll code is suppossed to show on all pages, edit themes/yourtheme/template.html and insert your code there.
If it is suppossed to show only on the index page, use anycontent (refer to the docs for details).

This is not an install issue, so you shouldn't have started your thread on the install sub-board. Your thread was moved accordingly.