Previous Thread
Next Thread
Print Thread
Rate Thread




Joined: Jan 2003
Posts: 18
Newbie
Newbie
Joined: Jan 2003
Posts: 18
We upgraded from 6.5.5 to 7.5.5 the other week and I cannot get a cookie-reading routine we had in the old version to work in the new version.

In the old version we had this line in editbasic.tmpl near the bottom, underneath the custom fields $extra1 ... $extra5

This line read the FTPID field in a member's cookie and displayed the pid-number in their forums profile.
[we removed the input box allowing a member to disclose his real name]

For version 7.5.5 we have the following line in the same location of the editbasic.tpl file underneath the fields {$CUSTOM_FIELD_1} ... {$CUSTOM_FIELD_5}

[in v7 we've removed the input box for a member to choose a display email address]

Instead of displaying the pid-number the routine displays the 15 characters $_COOKIE[FTPID] : example.

I've also inserted this command into the editbasic.tpl file echo $_COOKIE[FTPID] and all that does is re-reprint that line on the edit screen when I'm editing my profile. I've checked the MyCookies routine and v7 is reading all the fields in the cookie .. that routine will read the cookie, but $_COOKIE won't. I think it's something simple, but I'm stumped. I've tried double quote marks around the 15 characters, around FTPID, around hidden, around Fakeemail, and they all failed. I also tried { } around the 15 characters, and then around before and after the input line, but they also failed.

This is now beyond me as I don't (fully) understand php. I've read webpages referring to authenticating and calling but, if it worked before, I couldn't see why it wouldn't work in v7. Does anyone know what's missing; what I'm doing wrong?


---------------------------
The extra lines in showprofile.tpl are:



  {$Fakeemail}
Sponsored Links
Entire Thread
Subject Posted By Posted
[7.5.5] getting $_COOKIE to work gtho4 08/27/2010 2:38 PM
Re: [7.5.5] getting $_COOKIE to work gtho4 08/28/2010 4:33 PM
Re: [7.5.5] getting $_COOKIE to work Gizmo 08/28/2010 9:45 PM
Re: [7.5.5] getting $_COOKIE to work gtho4 08/29/2010 7:28 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,156
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1551
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 10
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)