Simon's Space
…longer than a blog entry
This article is printer friendly.
An extension for ExpressionEngine (v2.x) which sets a cookie storing the username of logged in members. This cookie can be used by the Mint pepper Secret Crush to show the pages viewed by logged in users.
Mint Nametag (v2.0 for EE 2.x)
ExpressionEngine:
Mint:

In the ExpressionEngine Extensions Manager, the only setting for this extension is the Cookie Name Suffix. The default suffix is “mint_nametag”.
The actual cookie that will be created will have the added prefix “exp_”.
The Cookie Name is also entered into the Mint Preferences for the Secret Crush Pepper in the field “Custom Cookies”. If using the default suffix, you would enter “exp_mint_nametag”.
$cookie_value = $OBJ->userdata['username'];
to
$cookie_value = $OBJ->userdata['screen_name'];
Simon.
A personal blog by Simon Job.
My blog about maths teaching.
MathsClass This Week 20 May 2013
Downloadable Essentials is a new section on MathsKit. In meeting the purpose of MathsKit, quick links to resources for Maths…
read more…
- Permlink
- 1 ·
- Comment by
- Kevin Selles ·
- Date Stamp
- Monday 4 April, 2011 at 10:43 AM
Hi Simon, Thanks for the add-on. I just tried it and it seems to be working very well.