4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: cloe on August 03, 2007, 06:06:10 PM

Title: POSTDATA
Post 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
Title: Re: POSTDATA
Post by: thunderstrike on August 03, 2007, 08:45:26 PM
For refresh ... javascript can do.

For redirect upload image, here:

In member.php file,

replace (line 685 when download 4images - no toch):

Quote
$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. ;)
Title: Re: POSTDATA
Post by: cloe on August 03, 2007, 09:20:23 PM
I changed this code:

Code: [Select]
$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:


Code: [Select]
$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 :)
Title: Re: POSTDATA
Post by: thunderstrike on August 03, 2007, 09:55:01 PM
Ok, restore.

Now, (same file), find:

Quote
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:

Quote
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.
Title: Re: POSTDATA
Post by: cloe on August 03, 2007, 10:05:30 PM
Ok, restore.

Now, (same file), find:

Quote
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:

Quote
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.
Title: Re: POSTDATA
Post by: thunderstrike on August 03, 2007, 10:08:48 PM
Quote
Not Found

The requested URL /fotopage_web/4 was not found on this server.

Use SEO URL MOD right ?
Title: Re: POSTDATA
Post by: cloe on August 03, 2007, 10:46:21 PM
Quote
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  :?
Title: Re: POSTDATA
Post by: thunderstrike on August 03, 2007, 10:47:45 PM
Install MOD have ReWrite (past) ?
Title: Re: POSTDATA
Post by: cloe on August 03, 2007, 10:48:46 PM
Install MOD have ReWrite (past) ?

Where do I find that MOD?
Title: Re: POSTDATA
Post by: cloe on August 03, 2007, 10:58:37 PM
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?
Title: Re: POSTDATA
Post by: thunderstrike on August 03, 2007, 11:11:57 PM
Don't get why it return 404 error page ... should work 1st shot ...
Title: Re: POSTDATA
Post by: cloe on August 03, 2007, 11:15:25 PM
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?
Title: Re: POSTDATA
Post by: thunderstrike on August 04, 2007, 12:28:34 AM
Quote
Have you tried it yourself, and get the same error?

Yes ... can't reproduse ...
Title: Re: POSTDATA
Post by: cloe on August 04, 2007, 12:34:05 AM
Quote
Have you tried it yourself, and get the same error?

Yes ... can't reproduse ...

Hmmm.... Wonder why this dont work... Anyone have any idea?
Title: Re: POSTDATA
Post by: thunderstrike on August 04, 2007, 12:35:41 AM
Wait ... 4images version ?
Title: Re: POSTDATA
Post by: cloe on August 04, 2007, 12:51:33 AM
Wait ... 4images version ?

I have 1.7.4 :)
Title: Re: POSTDATA
Post by: thunderstrike on August 04, 2007, 12:53:38 AM
Ok, now PHP ?
Title: Re: POSTDATA
Post by: cloe on August 04, 2007, 01:00:20 AM
Ok, now PHP ?

PHP Version 4.4.4-8+etch4

whatever that means  :idea: :?:
Title: Re: POSTDATA
Post by: thunderstrike on August 04, 2007, 01:37:12 AM
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.
Title: Re: POSTDATA
Post by: cloe on August 04, 2007, 01:58:36 AM
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  :?
Title: Re: POSTDATA
Post by: thunderstrike on August 04, 2007, 03:18:45 AM
Quote
And dont know how to uptade php

Send ticket to web hosting. Only they can upgrade this. ;)
Title: Re: POSTDATA
Post by: cloe on August 04, 2007, 04:14:39 AM
Quote
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