| Author |
Message |
|
|
|
Is using Frontpage a problem when uploading to my site. Im trying to get Dail Dlwonload counter working...and I can tseem to get it to work>
|
 |
|
|
What version do you have? The dropping and re-creating of book_auth applies to version 2.3.1 so i hope that didn't mess you up.
Run a query against your book_auth table and post it here if you don't mind. It should look something like this.
|
 |
|
|
|
http://proxy2.de/forum/viewtopic.php?t=1981&start=17
|
 |
|
|
|
http://proxy2.de/forum/viewtopic.php?t=1981&start=17
|
 |
|
|
|
http://proxy2.de/forum/viewtopic.php?t=1981&start=17
|
 |
|
|
Make sure you run the sql comamnds in
/doc/db_update_v22-23.sql
to update your sql database.
This will not upgrade the tables in all cases. You must then run
ALTER TABLE `book_auth` CHANGE `LAST_VISIT` `last_visit` int(11) NOT NULL DEFAULT '0';
ALTER TABLE `book_data` DROP `image`;
ALTER TABLE `book_private` DROP `image`;
ALTER TABLE `book_smilies` CHANGE `width` `width` smallint(6) unsigned NOT NULL default '0';
ALTER TABLE `book_smilies` CHANGE `height` `height` smallint(6) unsigned NOT NULL default '0';
ALTER TABLE `book_ip` ADD KEY guest_ip (guest_ip);
|
 |
|
|
|
I am having the exact same problem. Was their a solution to this problem?
|
 |
|
|
IM really having trouble with this. WHen I try to get to the admin. page...it say the file is not there?
Below is the setup of my download.pl file:
Here is the error I get:
gives me an internal server error (500)....and this in my error log:
[Fri Apr 23 10:02:18 2004] [error] [client 68.20.2.130] File does not exist: /home/graycr2/public_html/500.shtml
[Fri Apr 23 10:02:18 2004] [error] [client 68.20.2.130] Premature end of script headers: /home/graycr2/public_html/cgi-bin/download.pl
#!/usr/bin/perl
#########################################################################
# Top Downloads v2.0 #
# Copyright (c)2000 Chi Kien Uong #
# URL: http://www.proxy2.de #
# #
# This Software is distributed under the GNU General Public #
# License. For more details see license.txt #
# #
# To count a download use: #
# file #
# #
# To show your top xx downloads: #
# http://www.graycrosby.com/cgi-bin/download.pl?job=show&top=xx #
# #
# Administration: #
# http://www.graycrosby.com/cgi-bin/download.pl?admin=enter #
# #
#########################################################################
# url to script
$cgiurl = "http://www.graycrosby.com/cgi-bin/files/download.pl";
# url to the image files without trailing "/"
$base_gif = "http://www.graycrosby.com/gif";
# administration password - should not contain '&','=' and "
$admin_pass = "pass123";
# file locking ($lock=0 for Win32!);
$lock = 1;
# check http referer 0=no 1=yes;
$check = 0;
@valid=('http://www.graycrosby.com');
# log files
$basedat = "log.txt";
$daylog = "daylog.txt";
$stats = "download_stats.txt";
# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.graycrosby.com/downloads";
# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/www/graycr2/public_html/downloads";
$back_img = "$base_gif/texture1.gif"; # url of background image
$bgcolor = "#FFFFFF"; # background color
$table_width = 560; # width of hole table
$table_text = 250; # width reserve for the file description
$table_bg = "#F7F7F7"; # table background color
$table_top = "#E1A8A8"; # top table background color
$font_size = "8pt"; # font size
$show_default = 15; # 10=TOP_10 20=TOP_20,etc.
$bar_image_height =10;
$max_day = 28;
$max_bar_height = 180;
%scan = (
zip => '*.zip',
gz => '*.gz',
exe => '*.exe',
mp3 => '*.mp3',
pdf => '*.pdf',
avi => '*.avi'
);
# End Setup
#################
|
 |
|
|
|
When I enter my username and password in advanced setup and then try to do administration (or anything else) it loops back to enter password
|
 |
|
|
Thanks Jam'n...... but how do you figure that out??? What do you have to do to find the numbers.... for the future...
Thanks!
Rich
|
 |
|
|
OK, here's some step by step instructions, apologies if some of this is a bit basic.
First off, not a bad idea to make copies of the existing files - the files that will change are add.class.php in the lib sub-directory, form.php in the templates sub-directory and english.php in the lang sub-sirectory (english.php if your guestbook is in English, otherwise the language of your guestbook - french.php, italian.php etc).
These notes are for making e-mail a required field. If you want to make location a required field follow the same instructions but substitute email with location, to make homepage required substitute email with url.
MAKING E-MAIL REQUIRED
1 Open add.class.php in the lib sub-directory.
2 Find the following text (about lines 189 to 191)
3 Copy it and paste it in a couple of lines later, after where it says...
4 Change name to email and ErrorPost1 to ErrorPost12.
5 That whole bit of script with the new lines added should read...
if ($this->name == "") {
return $this->db->gb_error($this->db->LANG["ErrorPost1"]);
} elseif (strlen($this->comment)<$this->db->VARS["min_text"] || strlen($this->comment)>$this->db->VARS["max_text"]) {
return $this->db->gb_error($this->db->LANG["ErrorPost3"]);
} else {
if ($this->email == "") {
return $this->db->gb_error($this->db->LANG["ErrorPost12"]);
}
$this->url = trim($this->url);
6 Save that file and open form.php in the templates sub-directory.
7 Find the following text (about lines 18 to 21)
8 Copy and paste it in immediately after where you've just copied it from
9 Change comment to email (twice) and ErrorPost2 to ErrorPost12.
10 It should now read as...
ADD ASTERISKS TO INDICATE REQUIRED FIELDS
11 Still with the same file open (form.php) find the following (about line 92)...
12 All you're doing is adding an asterisk after [FormEmail] so it now reads...
13 Save the file.
CREATING A NEW ERROR MESSAGE
14 Open the file english.php in the lang sub-directory.
15 Scroll down to about line 72 and create a new error message based on the existing ones.
16 For example, copy and paste the following...
and edit it to read...
The message can be whatever you want, the important thing is the make sure it's numbered as ErrorPost12.
17 Save it and you're done.
MAKING MORE FIELDS REQUIRED
If you wanted to make more fields required (e.g. location) just repeat the above substituting name for location and ErrorPost11 for ErrorPost13 (create ErrorPost13 as per steps 14 to 17 above).
MAKING FIELDS SO THEY'RE NOT REQUIRED
Refer to this massage...
http://proxy2.de/forum/viewtopic.php?t=2877&highlight=required+fields&sid=f7d5445820f567874b38e8e3c859a4f0
That's it - hope it works. Any probs post another message or e-mail me: 042304b at kahlil dot org
Trevor
|
 |
|
|
and the username is Test
|
 |
|
|
|
Yes
|
 |
|
|
|
Thanks! I'll let them know....
|
 |
|
|
Yep,
try this : http://gastenboek.leidapieters.nl/
Thanks!
|
 |
|
|