ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

{screen_name} outputing as admin even when logged in as other member

July 19, 2012 6:02am

Subscribe [2]
  • #1 / Jul 19, 2012 6:02am

    heaversm

    197 posts

    Hi - I am using safecracker to allow my users to add entries via a form that pulls values from an existing entry. However, I have a hidden field that sets the title of the entry to “New entry by {screen_name}” - and even though I log in as that member, {screen_name} always outputs as admin instead of the member’s screen name. The author of the entry, appropriately, shows up as the member’s screen name.

    This is my code:

    {exp:channel:entries channel="evaluations" entry_id="89" dynamic="off" limit="1"}
    <input type="hidden" name="title" value="MP Evaluation by {screen_name}"/>


    Which shows up in the CMS as the attached file. It’s as if it is using the screen_name of the author of the original entry instead of the screen name of the logged in user. How do I output the screen_name of the logged in user instead?

  • #2 / Jul 19, 2012 3:34pm

    Shane Eckert

    7174 posts

    Hey heaversm,

    I am sorry to hear you are running into this problem.

    Can you show me what your SC form looks like?

    Are you using the logged_out_member_id?

    Please let me know.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases