email is to last sender.

Have A Bug With Your Webdate Script. Ask For Help Here.

email is to last sender.

Postby pjyak on Fri Aug 01, 2008 1:57 pm

when a member looks at a profile then clicks send message it resorts to the last person they sent an email..and not the new member they are trying to email. after several back and forths and some refreshing it does eventually work.

in fact i also notice the profile id page is not filtering over so the IE address will say "profile id 500" but in reality im looking at profile 600.
pjyak
 
Posts: 4
Joined: Tue Mar 18, 2008 4:42 pm

Re: email is to last sender.

Postby paul on Fri Aug 01, 2008 7:27 pm

your problem is with the cache..

added this code to the front of index.php

Code: Select all
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past


add the above code after the <?

also open templates/main.html

added this code inbetween <head> and </head>

Code: Select all
<meta http-equiv="Pragma" content="no-cache">
   <meta http-equiv="expires" content="0">


This prevents your site from remembering the last time it viewed the page... it needs to be dynamic to work properly this should solve your problem

after you upload these modified files make sure you clear your cache in your browser close and restart.

then test the site.

Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA


Return to Have A Bug? Ask For Help Here

Who is online

Users browsing this forum: No registered users and 5 guests

cron