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