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
Joined: Jan 2003
Posts: 18
Newbie
Newbie
Joined: Jan 2003
Posts: 18
Found it .. google is my friend! The answer's on this page : http://www.smarty.net/manual/smarty.php
The following works:



smarty.php is required, not "normal" php. Hopefully someone else will also find that webpage useful.

Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
You can escape smarty and use "real" php by using {php}{/php} vs


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 18
Newbie
Newbie
Joined: Jan 2003
Posts: 18
thanks mate, I'll need that. I was looking for it for ages; and never found it.

[ as you've no doubt gathered, this is all beyond me .. it may as well be written in Greek! ]


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
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 34299
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 1
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)