| Author |
Message |
|
|
How do i edit the form stuff in Advanced poll ?
http://www.san-andreas.org/ , try to validate.. It worked fine before i added the poll.. How do i fix ?
|
 |
|
|
|
you know whats funny, i am reading this thread and i see "Trevor" which is my name, and "JTD" which are my initials "Joseph Trevor Duke" lol!
|
 |
|
|
i just added a php upload script to my site and it will not allow me to overwite a file that already exists and i need to be able to do that. can someone help please? the code is below.
______________________________
<?
session_start();
//include('UserModel.inc');
//file_upload.php
$archive_dir = "/home/mlbtborg/public_html/upload";
if($action == 'upload') upload_file();
else upload_form();
function upload_form() {
global $PHP_SELF;
?>
<html>
<head>
<title>MLBTB Soccer Club</title>
<LINK href="../Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CPUJKXM3/style/style.css" rel=stylesheet type=text/css>
</head>
<body bgcolor="#FFFFFF" background="../Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CPUJKXM3/images/main_bg.jpg" leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0" marginheight="0">
<table border="0" cellpadding="0" cellspacing="0" width=800 height=100%>
<tr> <td width="100" align="middle" bgcolor=#6D5143 height=100% > </td>
<td valign=top width=700>
<table border="0" cellpadding="3" cellspacing="3" width=100%>
<tr><td align=right><a href = "../Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CPUJKXM3/index.php">Home</a> | <a href="../Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CPUJKXM3/index.php?logout=true">Logout</a></td></tr>
</table>
<table border="0" cellpadding="3" cellspacing="3" width=450 align=center>
<tr><td colspan=2 align=center class=tdclassb>Image Upload </td></tr>
<FORM METHOD="POST" ENCTYPE="MULTIPART/FORM-DATA" ACTION="upload.php">
<table border="0" cellpadding="5" cellspacing="1" width=450 align=center bgcolor=#DCCFC9>
<tr><td bgcolor=white>
<table border="0" cellpadding="5" cellspacing="1" width=450 align=center>
<tr>
<td width="450" height="21" align="left" valign="middle" class=tdclass>
<INPUT TYPE="HIDDEN" NAME="action" VALUE="upload">
Upload file
<INPUT TYPE="FILE" NAME="userfile">
<INPUT TYPE="SUBMIT" class ="button" NAME="SUBMIT" VALUE="upload">
</td>
</tr>
<tr>
<td width="450" height="21" align="right" valign="top" tdclass>
<a href = "../Local%20Settings/Temporary%20Internet%20Files/Content.IE5/CPUJKXM3/AddNews.php">Next</a>
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</FORM>
</html>
<?
}
function upload_file() {
global $userfile, $userfile_name, $userfile_size,
$userfile_type, $archive_dir, $WINDIR;
if(isset($WINDIR)) $userfile = str_replace("\\\\","\\", $userfile);
$filename = basename($userfile_name);
if($userfile_size <= 0) die ("$filename is empty.");
if(!@copy($userfile, "$archive_dir/$filename"))
die("Can't copy $userfile_name to $filename.");
if(!isset($WINDIR) && !@unlink($userfile))
die ("Can't delete the file $userfile_name.");
// header ("Location: AddNews.php?FN=$filename");
echo "$filename has been successfully uploaded.<BR>";
echo "Filesize: " . number_format($userfile_size) . "<BR>";
echo "Filetype: $userfile_type<BR>";
}
?>
|
 |
|
|
i am sorry, but i dont know what form he is speaking of, and what commenting out means. i am somewhat of a novice...
please anyone?? i really need the assistance on how to remove the 'number of votes' from displaying.
|
 |
|
|
thank you amber222,
the link to the guestbook is:
http://www.spice-of-life.com/forum2/index.php
the admin sign-in is: http://www.spice-of-life.com/forum2/admin.php
i hope these are the links you need. thanks alot.
best,
michael
|
 |
|
|
Here's the correct link to the post for Carbonize's header instructions:
http://proxy2.de/forum/viewtopic.php?t=3460
|
 |
|
|
Very nice page design.
It sounds to me that you should just follow Carbonize's instructions for creating the header file.
Go to this thread: http://proxy2.de/forum/viewtopic.php?t=3460. Take a look at the Ravenpro.org site and Carbonize's site, and you will see what they did to get their headers in their guestbook pages.
I think you probably put more into this than you needed to.
|
 |
|
|
How do I remove the number of votes on the poll? I just want to show the percentages or breakdown of the votes.
Any help would be great.
j
|
 |
|
|
hey
wo bekommt man ein gutes forum her?
|
 |
|
|
|
Wish someone would answer, I can't figure it out either.
|
 |
|
|
I want to use my 1 advanced poll installation to make lots of polls - but I'd like each poll to have it's own different theme/colours. How is this possible? Whenever I change the template colours, it changes it for all polls.
Thanks in advance.
|
 |
|
|
Hi do you have any experience using setting up advanced poll on IIS using PHP version 5. I'm using MySQL as the database. I've just recently installed the latest version of PHP and MySQL but I know they are working fine, so I'm wondering if it is something in the install.php code of Advanced poll 2.3
I get a message
PHP Notice: Undefined variable: HTTP_SERVER_VARS in C:\inetpub\wwwroot\polls\install.php on line 10
I think all the HTTP_*_VARS got depricated in PHP version 5. Even when I change them to things like $_SERVER['hhhhhh'] it still doesn't seem to work. Any ideas?
thanks
Michael Randall
|
 |
|
|
Hi do you have any experience using setting up advanced poll on IIS using PHP version 5. I'm using MySQL as the database. I've just recently installed the latest version of PHP and MySQL but I know they are working fine, so I'm wondering if it is something in the install.php code of Advanced poll 2.3
I get a message
PHP Notice: Undefined variable: HTTP_SERVER_VARS in C:\inetpub\wwwroot\polls\install.php on line 10
I think all the HTTP_*_VARS got depricated in PHP version 5. Even when I change them to things like $_SERVER['hhhhhh'] it still doesn't seem to work. Any ideas?
thanks
Michael Randall
|
 |
|
|
Hello
Can we use checkboxes instead radio buttons. We need multiple answers. If not is there a poll system that can do that.
Thanks
Yvan
|
 |
|
|
Hello,
thanks for your answer, and for trying to help.
I did upload links.pl in ASCII-mode to my cgi-bin directory
and changed mode to 755 (-rwxr-xr-x).
It still gives me same error.
At my server it says that /usr/bin/perl is my perl directory.
It is a LINUX server.
I am not a specialist in this stuff so please help me if you can.
thanks again
This is what I have so take a look (links.pl) :
# url of script
$cgiurl = "/usr/bin/perl";
# base url to all link files without trailing "/"
$link_url = "http://www.mysite.com/links";
# base directory to all link files from the server root without trailing "/"
$base_dir = "/home/usr/you/links";
# default index page of your choice
$index_url = "http://www.mysite.com/links/ffa-business.html";
# counter log file
$id_count = "links_id.txt";
# administration password
$admin_pass = "123";
# time to redirect to link page after entry (sec)
$redirect_sec = "3";
# use file locking; ($lock=0 for Win32)
$lock = 1;
# time offset - add one hour = +1 ; subtract one hour = -1
$fix_time = 0;
# image
$imageurl = "arrow.gif";
|
 |
|
|