clickrain / EE_Twitter

EE Add-on that uses oAuth to display Twitter Feed
Other
48 stars 18 forks source link

Single variable {screen_name} returning logged in user's screen name rather than the Twitter @name #11

Closed peteeveleigh closed 11 years ago

peteeveleigh commented 11 years ago

The single variable {screen_name} is returning the logged in user's EE screen name rather than the Twitter @name

Maybe the simplest fix is to use a different tag to get the twitter name?

chambaz commented 11 years ago

I'm experiencing this issue too, screen_name is a reserved word in Expression Engine.

bryanburgers commented 11 years ago

You'll need to use a prefix, which effectively does make it a different tag. This is similar to issue #5. This issue also occurs frequently when using the {relative_date} tag.

{exp:twitter:user screen_name="fantasticmachine" limit="5" prefix="twitter"}
    {twitter:screen_name}
    {twitter:text}
{/exp:twitter:user}

Alternately, you can prefix just the user variables, if that makes more sense.

{exp:twitter:user screen_name="fantasticmachine" limit="5" userprefix="tweeter"}
    {tweeter:screen_name}
    {text}
{/exp:twitter:user}