View previous topic :: View next topic |
Author |
Message |
sven
Joined: 08 May 2002 Posts: 30 Location: Central Valley Cali
|
Posted: Sat Aug 31, 2002 5:44 am Post subject: Comments Fields Not Remembering Information |
|
|
My blog is not remembering the information in the comments field on the main blog page; however, it DOES in the Admin interface. So, I'm leaving out a cookie option some where. What am I missing? _________________ <><sven><> |
|
Back to top |
|
 |
macshack
Joined: 17 Jul 2002 Posts: 1204 Location: Phoenix, Az
|
Posted: Sat Aug 31, 2002 4:31 pm Post subject: |
|
|
Hi sven,
Do you suspose we could have a link or two so that maybe we could figure out what your page is forgetting?
Michael e |
|
Back to top |
|
 |
lousypoet
Joined: 09 Aug 2002 Posts: 72 Location: Atlanta, GA
|
Posted: Sat Aug 31, 2002 5:10 pm Post subject: |
|
|
if your b2 is in a different directory than your blog, you'll need to change the setcookie() function in b2comments.post.php near the end. set the fourth parameter to the path, like "/" if it's the main directory of your domain. |
|
Back to top |
|
 |
sven
Joined: 08 May 2002 Posts: 30 Location: Central Valley Cali
|
Posted: Sat Aug 31, 2002 6:06 pm Post subject: |
|
|
That did it! Thanks. I had to +add+ that fourth param:
That's what I added so it looks like this (for others who need to know):
Code: | setcookie("comment_author",$author, time()+30000000,"/");
setcookie("comment_author_email",$email, time()+30000000,"/");
setcookie("comment_author_url",$url, time()+30000000, "/"); |
_________________ <><sven><> |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 967 Location: Washington
|
Posted: Fri Dec 27, 2002 12:23 am Post subject: |
|
|
sven,
Do you know how I can get it to work on my subdomain? I have implemented so that my main site pulls my blog from a subdomain, so I need cookies to work on both of them. I tried to put it dot in front of the domain within setcookie function, but it appears not to be working. _________________ Michael P. |
|
Back to top |
|
 |
sven
Joined: 08 May 2002 Posts: 30 Location: Central Valley Cali
|
Posted: Fri Dec 27, 2002 8:35 am Post subject: |
|
|
I'd say instead of the slash, do the domain? ".domain.com" or "domain.com". I'm only guessing. _________________ <><sven><> |
|
Back to top |
|
 |
lilphil480
Joined: 30 Nov 2002 Posts: 19
|
Posted: Wed Oct 29, 2003 1:34 am Post subject: |
|
|
I use a subdomain for one of the blogs and the slash worked fine! |
|
Back to top |
|
 |
|