We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Creating a new entry when the user is a non-member

Development and Programming

chichilatte's avatar
chichilatte
43 posts
15 years ago
chichilatte's avatar chichilatte

Hi there. I’m building an extension which tries to add a new entry to a channel. But if the user isn’t logged in I get the error “You are not authorized to post in this channel”.

Does anyone know if there’s a built-in way that i can create a new entry even though the user isn’t logged in? It seems like a fairly reasonable thing to do!

thanku

       
Joe Paravisini's avatar
Joe Paravisini
50 posts
15 years ago
Joe Paravisini's avatar Joe Paravisini

How are you currently creating the new entry? The channel entry api?

       
chichilatte's avatar
chichilatte
43 posts
15 years ago
chichilatte's avatar chichilatte

yep, submit_new_entry()

       
David Hyland's avatar
David Hyland
210 posts
14 years ago
David Hyland's avatar David Hyland

hey there, did you make any progress on this?

       
chichilatte's avatar
chichilatte
43 posts
14 years ago
chichilatte's avatar chichilatte

Oh yes, you can do it fairly simply by fiddling with the session. I don’t have the code to hand right now. There is no API for this functionality, so it’s basically a hack which you’ll have to update whenever you update your EE install.

       
David Hyland's avatar
David Hyland
210 posts
14 years ago
David Hyland's avatar David Hyland

Ok cool. If you find the code could you post here?

cheers!

       
chichilatte's avatar
chichilatte
43 posts
14 years ago
chichilatte's avatar chichilatte

will try to, but no promises since it’s commercial code we’re writing - could be copyright probs

       
David Hyland's avatar
David Hyland
210 posts
14 years ago
David Hyland's avatar David Hyland

fair enough … if you can awesome, if not i’ll eventually figure it out 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.