Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Contribution-Writing Guidelines / Couple of questions - username, and detect if logged in.

Couple of questions - username, and detect if logged in.

Locked

Started by blueparukia on 6 Jan 2008, 9:48 AM · Views: 3,183

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
6 Jan 2008, 9:48 AM
#1
blueparukia avatar

blueparukia

New Zenner

Join Date:
Aug 2007
Posts:
18
Plugin Contributions:
0

Post #1 by blueparukia

OK, I am not making an addon as such, I just have a PHP file and I want to echo the current username.

So I can use $account->fields['customers_email_address'], but what file(s) do I have to include/require or use some othe function?

And how do you see if a user is logged in, so to display a link only if a user is logged in to your copy of Zen Cart,

Thanks,

BP

6 Jan 2008, 9:56 AM
#2
blueparukia avatar

blueparukia

New Zenner

Join Date:
Aug 2007
Posts:
18
Plugin Contributions:
0

Post #2 by blueparukia

Damn, 7 minute editing limit:S

include($_SERVER['DOCUMENT_ROOT'].'/store/includes/application_top.php');

And just got errors, so is there something else I need to declare?

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/doghouse/public_html/store/join.php:5) in /home/doghouse/public_html/store/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/doghouse/public_html/store/join.php:5) in /home/doghouse/public_html/store/includes/init_includes/init_templates.php on line 78
7 Jan 2008, 11:33 PM
#3
blueparukia avatar

blueparukia

New Zenner

Join Date:
Aug 2007
Posts:
18
Plugin Contributions:
0

Post #3 by blueparukia

No one?

Can I at least use PHP in EZ Pages, so the variables are built in?

Cheers,

BP

7 Jan 2008, 11:44 PM
#4
hem avatar

hem

Totally Zenned

Join Date:
Sep 2007
Location:
Dublin, Ireland
Posts:
1,281
Plugin Contributions:
5

Post #4 by hem

"Cannot modify header information - headers already sent by..."

usually means there's crap like whitespace at the top of your file

Andrew

Andrew Moore
Omnicia Agile Development
www.omnicia.com