Articles

…longer than a blog entry

This article is printer friendly.

Mint Nametag for EE 2.x

Date Stamp:
2 November 2010
Topic(s):
ExpressionEngine,
Comments?

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.

Download

Mint Nametag (v2.0 for EE 2.x)

Installation

ExpressionEngine:

     
  1. Download the zip file above and uncompress.
  2.  
  3. Upload the directory “mint_nametag” and it’s contents to the /system/expressionengine/third_party/ folder.
  4.  
  5. In the ExpressionEngine Control Panel, go to Add-Ons → Extensions, enable the extension and change the Cookie Name Suffix under Settings if necessary.  The actual Cookie Name will be prefixed by “exp_”.

Mint:

Secret Crush Pepper preferences

Settings

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

See Also

EE Forum Thread

Devot:ee

History

Gravatar for Kevin Selles
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. smile I have one concern. Wouldn’t it be more appropriate to establish the user’s Screen Name instead of the Username? Many users have a different Screen Name, and it would be easier to identify them this way. Not sure if that would be possible though.
 
Avatar for Simon
Permlink
2 ·
Comment by
Simon ·
Date Stamp
Monday 4 April, 2011 at 04:23 PM
Hi Kevin, It's great that you found it useful. You can do that with this extension. Just change Line 39 in the Extension file (ext.mint_nametag.php). Change: $cookie_value = $OBJ->userdata['username']; to $cookie_value = $OBJ->userdata['screen_name']; Simon.
 
Gravatar for Kevin Selles
Permlink
3 ·
Comment by
Kevin Selles ·
Date Stamp
Monday 4 April, 2011 at 08:18 PM
Awesome! Thank you.
 
Commenting is not available in this channel entry.
 

Menu

About

A personal blog by Simon Job.

From MathsClass

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…

Subscribe

by RSS or Email

Follow

on Twitter

 

© 2005-2013 Simon Job · Use and recommend: ExpressionEngine, DreamHost
The posts and comments I make on this blog are made in a private capacity and do not represent the official view of my employer.