Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Permalink as pitch page#4198

Merged
angaither merged 6 commits intoDoSomethingArchive:devfrom
angaither:permalink-as-pitch-page
Mar 17, 2015
Merged

Permalink as pitch page#4198
angaither merged 6 commits intoDoSomethingArchive:devfrom
angaither:permalink-as-pitch-page

Conversation

@angaither
Copy link
Contributor

This turns the do it button on a permalink page into the Sign Up button
Currently, this only supports Authenticated Users (and shouldn't be merged just yet)

This also includes some light refactoring and of course, ever present 👾 fixes

Fixes #4154
Fixes #4190
Fixes #4115

@aaronschachter I created #4197 for the anon users, but it doesn't seem like that get_signup_button is the way to go for that. do you have any feels on how to handle that?

@angaither angaither force-pushed the permalink-as-pitch-page branch from 92a8f9b to 981498d Compare March 16, 2015 17:37
@aaronschachter
Copy link
Contributor

Seems ok. What is the issue in using get_signup_button to display the login/reg form for anon users, @angaither ?

@angaither
Copy link
Contributor Author

@aaronschachter the thing I've been stuck on is getting the redirect after logging in to work.
I added this line to do the redirect, but the user module redirect after logging in overrides the redirect that I set in this hook.

@angaither angaither force-pushed the permalink-as-pitch-page branch from 981498d to 359d3bf Compare March 17, 2015 19:53
@aaronschachter
Copy link
Contributor

@angaither Does it work to change the User module's redirect to only execute based on whether or not they were on a Campaign page or a Reportback ?

@angaither
Copy link
Contributor Author

@aaronschachter no, for some reason dosomething_reportback_signup_submit isn't getting executed at all on a registration/sign in. it's only getting called when the user is already logged in.
I've tried scoping the redirected to not run on reportbacks, and even commenting it out entirely (when I do that it redriects to /user)

@angaither
Copy link
Contributor Author

ahhhhhHA,
so I think the custom handler is getting added to only the top login/register form
if I click the login button on the top of the page, the redirect work, but the actual signup button that pulls up the modal doesn't work.
the modal login forms must be handled differently...

@angaither
Copy link
Contributor Author

ok, now this works cc @aaronschachter

@angaither angaither changed the title ⚠ Permalink as pitch page ⚠ Permalink as pitch page Mar 17, 2015
@aaronschachter
Copy link
Contributor

Looks good! 👍

angaither added a commit that referenced this pull request Mar 17, 2015
@angaither angaither merged commit c6a6532 into DoSomethingArchive:dev Mar 17, 2015
@angaither angaither deleted the permalink-as-pitch-page branch March 17, 2015 21:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants