4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: cloe on August 03, 2007, 06:06:10 PM
-
I will try to explain this as good as I can, and sorry if my english is bad :?
If someone leave a comment or upload a picture, and if hit refresh after that, will the comment or image upload twice.
I have been a member on photopages other places a long time, and i know that members often hit refresh after they have leaved a comment, to see if their rating and so on has been registred.
Is there a way around that when members leave a comment the page can "refresh" automaticly,"so the rating is vissible" so if the user hit refresh, the POSTDATA message dont show up.
And is it possible that when a member upload a image, they will be redirected automaticly to the page that the image is uploaded to?
I hope that someone understand my request :?:
This will help a lot, and will take a way a lot of dubbel comments :)
Best Reguards
-
For refresh ... javascript can do.
For redirect upload image, here:
In member.php file,
replace (line 685 when download 4images - no toch):
$content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";
}
else {
redirect("details.php?image_id=" . (isset($image_id)) ? intval(trim($image_id)) : 0);
$sendprocess = 1;
}
Should work. ;)
-
I changed this code:
$content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";
}
else {
$action = "uploadform";
$sendprocess = 1;
}
To This:
$content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";
}
else {
redirect("details.php?image_id=" . (isset($image_id)) ? intval(trim($image_id)) : 0);
$sendprocess = 1;
}
But there is no diffrent than it always has been.. I didnt get redirected anywhere??
Can you please tel me how i fix the other thing in Javascript, Im pretty new at this :)
-
Ok, restore.
Now, (same file), find:
if (isset($HTTP_POST_VARS[$image_column])) {
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);
}
}
add_searchwords($image_id, $search_words);
add under:
redirect("details.php?image_id=" . (isset($image_id)) ? intval(trim($image_id)) : 0);
Note: Only direct upload will redirect. If not direct, not (webmaster approve first).
For refresh, no java guru. Sorry.
-
Ok, restore.
Now, (same file), find:
if (isset($HTTP_POST_VARS[$image_column])) {
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);
}
}
add_searchwords($image_id, $search_words);
add under:
redirect("details.php?image_id=" . (isset($image_id)) ? intval(trim($image_id)) : 0);
Note: Only direct upload will redirect. If not direct, not (webmaster approve first).
For refresh, no java guru. Sorry.
Oki.. I'll hope that someone else here know how to fix the Javascript :)
But its still a problem :(
I've updated with the code you gave me..
And got this message:
Not Found
The requested URL /fotopage_web/4 was not found on this server.
-
Not Found
The requested URL /fotopage_web/4 was not found on this server.
Use SEO URL MOD right ?
-
Not Found
The requested URL /fotopage_web/4 was not found on this server.
Use SEO URL MOD right ?
No, I dont have that MOD installed..
Have never heard about it :?
-
Install MOD have ReWrite (past) ?
-
Install MOD have ReWrite (past) ?
Where do I find that MOD?
-
I really dont understand completly what you mean,, I dont have any of the MODS you are talking about.. Do you have any links to what I need?
-
Don't get why it return 404 error page ... should work 1st shot ...
-
Don't get why it return 404 error page ... should work 1st shot ...
I dont know, I only know that I get it :(
Have you tried it yourself, and get the same error?
-
Have you tried it yourself, and get the same error?
Yes ... can't reproduse ...
-
Have you tried it yourself, and get the same error?
Yes ... can't reproduse ...
Hmmm.... Wonder why this dont work... Anyone have any idea?
-
Wait ... 4images version ?
-
Wait ... 4images version ?
I have 1.7.4 :)
-
Ok, now PHP ?
-
Ok, now PHP ?
PHP Version 4.4.4-8+etch4
whatever that means :idea: :?:
-
Error log for PHP v4.4.4 (fix on v4.4.5):
http://www.php.net/ChangeLog-4.php#4.4.5
PHP is now v4.4.7. Some important line with 4images use (not all - some). ;)
Upgrade to PHP last (v4.4.7) recommend.
-
Error log for PHP v4.4.4 (fix on v4.4.5):
http://www.php.net/ChangeLog-4.php#4.4.5
PHP is now v4.4.7. Some important line with 4images use (not all - some). ;)
Upgrade to PHP last (v4.4.7) recommend.
I am really new at this ;)... And dont know how to uptade php :?
-
And dont know how to uptade php
Send ticket to web hosting. Only they can upgrade this. ;)
-
And dont know how to uptade php
Send ticket to web hosting. Only they can upgrade this. ;)
Oki.. will do :)
And I report here if it fixed the problem.
Thanks