Author |
Message |
|
Ok.. I am not that stupid .. but can someone let me know how to insert the code to show the advanced poll and a webpage?...
Please... I tried and it wont show...
|
 |
|
First off, this is a great script. But my problem is, after I vote it lets me vote again! It doesn't seem to record my IP, but I set that option on.
|
 |
|
The code above must appear BEFORE the code that calls the poll and AFTER the include once statement:
<?php
include_once "(YOUR PATH HERE)/poll/booth.php";
$php_poll->set_template_set("your_new_template");
echo $php_poll->poll_process(x); // x = Poll ID
?>
change "your_new_template" in quotes to "graphic" or "popup" or whichever you want to use.
|
 |
|
After the <?php
include_once statement ending in /booth.php";, and BEFORE you call the poll_process insert the line that names the template you want to use, in this example "graphic"
$php_poll->set_template_set("graphic");
THEN add your call to the poll
echo $php_poll->poll_process(4);
?>
That should do it.
|
 |
|
You must change the file permissions in the template directory on your server to 777 to edit the template in the admin utility. Be sure you open the directory for the template you want to change and make each file permission 777. You can change the permissions back after you've finished editing the template.
|
 |
|
when i changed the first line of download.pl : #! /usr/lib/perl to #!/usr/lib/perl --
it runs.
why i add the --, it can run ?
4.To count a download use:
<a href="download.pl?file=filename_id">yourfile</a>
"filename_id" can be a number or a string.
and where to add the count???
|
 |
|
why i can't run the top download's download.pl script??? when i ran it with browser, it views 500 error(server error),when i ran it console, it says No such file or dictionary..
why...i can ran other .cgi/.pl script, ex. sample.pl/basedir.cgi(below).
|
 |
|
So how do I call this function? The only example on this site is for the database version.
|
 |
|
Keep the email address visible and just have it output in the source code into raw ASCII. It stops spam spiders. My guestbook is tested against Atomic harvestor, AU2Email 3.1 and madweb 1.6 Spam Robots. None of them can pull emails off of my guestbook
|
 |
|
thanks for your help
but i diden't find any *.css file in template folder.
There are only *.php files.
Why with Opera browser the comments apear in white like all posts and in IE the comments are in black color? It is strange. The same HTML page is presented differently.
|
 |
|
two ways around that. either rename all the extensions to .cgi (and go through the scripts looking for .pl calls) or add a .htaccess file to the cgi-bin or root of your web directory with the following info in it.
AddHandler cgi-script .pl
that will tell apache web server that all files with the extension .pl execute with Perl
|
 |
|
Advance Poll 2.0.2 DOESN't WORK with PHP 4.3.x
|
 |
|
In cgi-bin/ folder, i can run *.cgi script ,but can't run *.pl script (500 error), why???what's wrong??
i want to use the Top Downloads!! is there have a php version for Downloads count???
|
 |
|
open templates/ folder and find you default used style. if you use aq, open it ,edit the style.css file with any editer..
|
 |
|
thank you.
now i found that cgi-bin/ folder can ran a *.cgi script, but can't run a *.pl script(500 error).what's wrong??
|
 |
|