4images Forum & Community
4images Issues / Ausgaben => Feedback & Suggestions => Topic started by: Western Rhythm on May 03, 2002, 09:24:18 PM
-
Excellent :) Love the program, I have however found two errors in the Admin.
when you click on templates I get this error
"Warning: Unterminated comment starting line 2 in /home/virtual/www.westernrhythm.com/photogallery/admin/templates.php on line 2"
And when I click on Reset Stats: I get this error;
"Parse error: parse error, unexpected '>' in /home/virtual/www.westernrhythm.com/photogallery/admin/stats.php on line 49"
cheers
[/b]
-
When users add images, the images are not automatically activated and put into the selected gallery, even when an admin uploads it from the main program.
-
hi,
well, the uploaded user image should not be automatically activated...
why ?
think twice....
example: user have uploaded porn pic... :roll:
about stats.php and templates.php..
on *nix and windows server no errors generated..
-
There will be an automatic imageactivation, in the feature releases ?
I know my registered users, I dont want to activate every image every time.
Otherwise a really GREAT AND CLEAN JOB!
-
Thats not what I mean, there is an option for that to ask for validation first. But that doesn't work either. I uploaded the pic as a registered user, went to the admin area and couldn't find the picture, it had been uploaded but it wasn't in the directory waiting for validation.
Yes its definately not working, any user that uploads a photo, the photo does not show up in the validation area, or in the new images area.
I'm using a linux server by the way
-
"Warning: Unterminated comment starting line 2 in /home/virtual/www.westernrhythm.com/photogallery/admin/templates.php on line 2"
I just fixed.
Still recieving this parse error on the stats file:
"Parse error: parse error, unexpected '>' in /home/virtual/www.westernrhythm.com/photogallery/admin/stats.php on line 49"
I don't understand the error as I checked the code and it looks totally fine. There is no extra '>'
-
Ok, stats.php is a little bit buggy. I will fix it! Thanks.
Jan
-
Hi, sorry to post this again,
Validate Images in not working in the admin.
anyone else having this problem? I'm searching for images and none are being picked up.
-
Check if the image ist saved directly to the database. If you upload images as Admin, it will be always saved directly to the database.
Jan
-
Happens just as a normal user as well. So maybe all are being saved directly to the database? The photo is not activated either, and doesn't activate unless u go to 'edit images' and search for it and do it yourself.
-
Happens just as a normal user as well. So maybe all are being saved directly to the database?
Check the category permissions. Go to the edit screen of the category and check what permissions you have set to "Direct upload"
The photo is not activated either, and doesn't activate unless u go to 'edit images' and search for it and do it yourself.
See: http://www.4homepages.de/forum/viewtopic.php?p=1150#1150
-
I've been messing around with this as well, and I was wondering why it wouldn't appear in the gallery or in the validate images. And now I know why. As a guest u can upload on my gallery, but the program doesn't recognise a guest as a user and so the image won't appear in the validate image section. YOu have to seach in the edit image to find the image...
Is this a bug? At the moment I do not want to use the user database for the gallery because I have forums for that, so can I either integrate the two or find out whats wrong?
-
another two bugs,
Editing an Image: tries to upload the image again, when all you want to do is edit the fields...
Admin login: doesn't carry through to the control panel. You have to login again... don't know if this is a bug...
other then that very happy :)
-
new code for: your domain/gallery/admin/stats.php
stats.php
<?php
define('IN_CP', 1);
define('ROOT_PATH', './../');
require('admin_global.php');
if ($action == "") {
$action = "resetstats";
}
show_admin_header();
if ($action == "updatestats") {
$cat_hits = intval($HTTP_POST_VARS['cat_hits']);
$image_hits = intval($HTTP_POST_VARS['image_hits']);
$image_downloads = intval($HTTP_POST_VARS['image_downloads']);
$image_rating = trim($HTTP_POST_VARS['image_rating']);
$image_votes = intval($HTTP_POST_VARS['image_votes']);
echo "<b>".$lang['nav_categories_edit']."</b><br />";
if ($cat_hits != "") {
echo $lang['field_hits']."...";
flush();
$result = $site_db->query("UPDATE ".CATEGORIES_TABLE."
SET cat_hits = $cat_hits");
echo ($result) ? "<b>OK</b><br />" : "<b><span class=\"marktext\">ERROR</span></b><br />";
}
echo "<br /><br /><b>".$lang['nav_images_edit']."</b><br />";
if ($image_hits != "") {
echo $lang['field_hits']."...";
flush();
$result = $site_db->query("UPDATE ".IMAGES_TABLE."
SET image_hits = $image_hits");
echo ($result) ? "<b>OK</b><br />" : "<b><span class=\"marktext\">ERROR</span></b><br />";
}
if ($image_downloads != "") {
echo $lang['field_downloads']."...";
flush();
$result = $site_db->query("UPDATE ".IMAGES_TABLE."
SET image_downloads = $image_downloads");
echo ($result) ? "<b>OK</b><br />" : "<b><span class=\"marktext\">ERROR</span></b><br />";
}
if ($image_rating != "") {
echo $lang['field_rating']."...";
flush();
$image_rating = sprintf("%.2f", intval($image_rating));
$result = $site_db->query("UPDATE ".IMAGES_TABLE."
SET image_rating = $image_rating");
echo ($result) ? "<b>OK</b><br />" : "<b><span class=\"marktext\">ERROR</span></b><br />";
}
if ($image_votes != "") {
echo $lang['field_votes']."...";
flush();
$result = $site_db->query("UPDATE ".IMAGES_TABLE."
SET image_votes = $image_votes");
echo ($result) ? "<b>OK</b><br />" : "<b><span class=\"marktext\">ERROR</span></b><br />";
}
}
if ($action == "resetstats") {
if ($msg != "") {
printf("<b>%s</b>\n", $msg);
}
show_form_header("stats.php", "updatestats", "form", 1);
show_table_header($lang['nav_general_stats'], 2);
show_description_row($lang['reset_stats_desc'], 2);
show_table_separator($lang['nav_categories_edit'], 2);
show_input_row($lang['field_hits'], "cat_hits", "", $textinput_size2);
show_table_separator($lang['nav_images_edit'], 2);
show_input_row($lang['field_hits'], "image_hits", "", $textinput_size2);
show_input_row($lang['field_downloads'], "image_downloads", "", $textinput_size2);
show_input_row($lang['field_rating']." (1-".MAX_RATING.")", "image_rating", "", $textinput_size2);
show_input_row($lang['field_votes'], "image_votes", "", $textinput_size2);
show_form_footer($lang['save_changes'], "", 2);
}
show_admin_footer();
?>