-
Posts
323 -
Joined
-
Last visited
Everything posted by quickjeff
-
Perfect, I will PM you now.
- 17 replies
-
- Php developer
- payment API
-
(and 1 more)
Tagged with:
-
Originally posted in general section, but after extensive search, I need to call in someone more experienced to help me complete this project. I need someone As soon as possible. Basically, I created a site for a client that is a marketing and advertising site for personal ads. The site is intended to allow a user to view the site and if the user wants to post a personal ad to promote their services such as music performing, dancing etc. they can for a small fee. (It's pretty much like back page.com and craigslist.com without the ugly design. More focused to look like a website, with 1 page personal ads.) Currently the site is using the latest Processwire release on Foundation framework. I have users coming to the site and if they decide to post, they click on a link located on the bottom that says post new profile. Once clicked, they arrive to a page that has a form builder embedded form. I am using form builder forms to process the user information and create a new page under the category of their choice. This is working and creates pages quickly for anyone that wants to post an ad. (I was advised not to use this method but due to lack of time, I had to run with Form Builder.) Here is what the system does now: Once a user completes the form, they submit the data and the page is automatically created. The user receives an auto response email with a message asking them to make a payment via a link contained in the auto response email. The link goes to a paypal subscription. Once the paypal subscription is paid, we are manually sending the user a user name and password to manage their page through a front end editor that we setup in Processwire. If they do not pay in 24 hours, we manually delete the page. As far as spam goes, we only have the spam filter enabled on the forms with the turing test question and answer. Here is what I need the system to do: I need help setting up a way to ask for a credit card first, then process the card for the payment, then post the page. I also need help redirecting the user to the newly created page after they have submitted the data through the form builder form. I also need a way to automatically create a user and password and assign it to the newly created page. I am up for any suggestions and welcome all of your input. I would like to essentially make this an automatic type thing. Where all we are doing is checking to make sure things work. Versus manually adding users, manually deleting pages etc. if you feel it's best to restructure the site to create a user registration first, I'm open. Feel free to PM me as well. If a heavily experienced user feels that they can accomplish this build another method via API etc. please provide some details.
- 17 replies
-
- Php developer
- payment API
-
(and 1 more)
Tagged with:
-
Basically, I created a site for a client that is a marketing and advertising site for personal ads. The site is intended to allow a user to view the site and if the user wants to post a personal ad to promote their services such as music performing, dancing etc. they can for a small fee. (It's pretty much like back page.com and craigslist.com without the ugly design. More focused to look like a website, with 1 page personal ads.) Currently the site is using the latest Processwire release on Foundation framework. I have users coming to the site and if they decide to post, they click on a link located on the bottom that says post new profile. Once clicked, they arrive to a page that has a form builder embedded form. I am using form builder forms to process the user information and create a new page under the category of their choice. This is working and creates pages quickly for anyone that wants to post an ad. (I was advised not to use this method but due to lack of time, I had to run with Form Builder.) Here is what the system does now: Once a user completes the form, they submit the data and the page is automatically created. The user receives an auto response email with a message asking them to make a payment via a link contained in the auto response email. The link goes to a paypal subscription. Once the paypal subscription is paid, we are manually sending the user a user name and password to manage their page through a front end editor that we setup in Processwire. If they do not pay in 24 hours, we manually delete the page. As far as spam goes, we only have the spam filter enabled on the forms with the turing test question and answer. Here is what I need the system to do: I need help setting up a way to ask for a credit card first, then process the card for the payment, then post the page. I also need help redirecting the user to the newly created page after they have submitted the data through the form builder form. I also need a way to automatically create a user and password and assign it to the newly created page. I am up for any suggestions and welcome all of your input. I would like to essentially make this an automatic type thing. Where all we are doing is checking to make sure things work. Versus manually adding users, manually deleting pages etc. I AM OPEN TO ANY SUGGESTIONS ADVICE, ASSISTANCE ETC. Feel free to PM me as well. If a heavily experienced user feels that they can accomplish this build another method via API etc. please provide some guidance. Again, thanks so much to everyone in this community that has enabled me to learn more, create great things and accomplish tasks, Processwire is truly amazing!
-
Integrating a member / visitor login form
quickjeff replied to thetuningspoon's topic in General Support
Seems like session control is preventing a front end editor from logging in with in 60 seconds. If a front end editor logs out or types in the wrong password, I get a nasty 500 error. Then after waiting 60 seconds, the login is golden. I even changed username to pageName and still the same issues continue. Any way to fix this guys? No matter what, successful or unsuccessful logins, my front end editors cannot login within 60 second from logging out or in or incorrect pass. thanks! -
Im getting lots of Session/sessionloginThrottle error line 100
-
Here is some weird stuff. If I go to the template file I created login.php And change the highlighted line $username = $sanitizer->username($input->post->username); to $username = $sanitizer->pageName($input->post->username); It will work, then when I try to login again, it doesn't work. SO I change it back, then it works. So what could it be? <?php if($user->isLoggedin()) $session->redirect('/profile/'); if($input->post->username && $input->post->pass) { $username = $sanitizer->username($input->post->username); $pass = $input->post->pass; $u = $users->get($username); if($u->id && $u->tmp_pass && $u->tmp_pass === $pass) { // user logging in with tmp_pass, so change it to be their real pass $u->of(false); $u->pass = $u->tmp_pass; $u->save(); $u->of(true); } $u = $session->login($username, $pass); if($u) { // user is logged in, get rid of tmp_pass $u->of(false); $u->tmp_pass = ''; $u->save(); // now redirect to the profile edit page $session->redirect('/profile/'); } } // present the login form $headline = $input->post->username ? "Login failed" : "Please login"; $page->body = " <h2>$headline</h2> <p>Need to update your profile?</p> <form action='./' method='post'> <p> <label style='color:#fff;'>Enter Username <input type='text' name='username'></label> <label style='color:#fff;'>Enter Password <input type='password' name='pass'></label> </p> <input type='submit'> </form> <p><a href='/reset-pass/'>Forgot your password?</a></p> "; include("./main.php"); // main markup template ?>
-
So Im getting Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Error has been logged. After I attempt to login multiple times. I have used Ryans method for front end editor login, reset pass and profile. I have tested it. When I pretend to forget my password and reset, it works fine. I log back in, change the password and logout. If I go to attempt to login to the backend. It gives me a fail attempt. If I then go to login to the front end login form I made with Ryans help, I cannot log in. I get the 500 error, especially after multiple failed attempts, even though the password is correct. Its strange lol
-
Amazing, thanks Adrian! However, I have now added this but after so many incorrect login attempts I get a server error white page! Any help on this?
-
Okay, thanks Joss! I will keep looking.
-
@joss, do you know if there is a way to setup a forgot user form, in case the front end editor forgets his username?
-
Nevermind, I figured it out. It was the show if dependency that was throwing it off. My mistake!!! Thanks again for the awesome module!
-
@apeisa Awesome! Awesome! Awesome! Module, you have allowed me to almost complete my project. I have run into an issue. I have a field that requires a check mark to display the appropriate fields. I wrote this script and am trying to allow editing to certain fields but only half of them show. I double checked the field names and still no go. Only half work. Below is what I have: <?php if($page->type_bar_club){ echo $fredi->render("clublogo|featured_city|flyer|flyer2|second_promo_details"); } ?> In the head.inc I have this script: <?php //loading front end editor $fredi = $modules->get("Fredi"); echo $fredi->renderScript(); ?> Im not sure what the issue is.
-
Hmmm I will have to give it a try but I want to prevent the front end user from ever coming across the back end admin.
- 7 replies
-
- Forgotten Password
- Reset Password
-
(and 2 more)
Tagged with:
-
@Joey, does this prevents a user from being directed to the backed as an admin? Is it stable? Thanks!
- 7 replies
-
- Forgotten Password
- Reset Password
-
(and 2 more)
Tagged with:
-
@joss I have setup the logout! Works like a charm thank you so much !!! In regards to the forgot password, I have also set this up. Issue is, the password does get sent to the users email but upon logging in the user can still use their old password tool login. Is this a bug? Or perhaps an issue? I do have the forgot password form on the same template as the login and logout. Any help would be great!
-
Sweet! I will take a look!
-
My only concern is when a normal user logouts out they are redirected to the logout backend and i don't want a front end editor user knowing where this is. Any way around this? Also any way to also provide a forgot password for a front end editor user? Thanks.
-
This solution really helped me but how would I create a logout link that does not show the front end user where my backend admin is located? Any light on this? Thanks for this BIG HELP!!!
-
Seems like I figured it out. Took a little work but after reading through the forums and the help of kongondo as well as the 2 modules, I think I have it!
-
@kongondo Thanks for the update on this! I have installed fredi, added the fields I want the user to be able to edit, so far so good! Here is my next move, I need to create a login link somewhere on the profile page for the member to login, then they are able to access only that page, no other page. How would I go about doing this? I also wan to disable their access if I have disabled the page, which I already have a check box setup to disable a page. Any guidance on my next steps to accomplish this? The template name I used is profile. The field I used for a checkbox to make a page disabled is type_disabled. Thanks.
-
Hi Guys, I have a membership site that I am building. The site is simply composed of user profiles, basically like craigslist personal ads. I need to give the member access to a their profile ad/page for editing of fields located on their ad/page. This access will be given to paid members, once the page has been added by me. The user should have access via a user name and password. They will only be able to edit their ad/pages fields I have with their information. Question 1: Is this possible on ProcessWire? Question 2: Any guidance to where I can start? (Modules, API etc.) Question 3: I have a check box field on the profile ads/pages which I control that allows me to deactivate the page if it is un checked, I also want this to block their access. Can this be done? Any help on this would be great! As always, everyone has been great with helping me find solutions to my questions. Thanks!
-
<?php //newgallery is the actually name of the field in the CMS that is a repeater //images1 is the actually name of the field in the CMS that is inside the repater field for the images gallery //THIS IS WHERE THE TITLES ARE BEING DISPLAYED FOR A CERTAIN CATEGORY THE USER MAKES IN THE CMS FOR THE GALLERY foreach($page->newgallery as $new_gallery) { echo " <section class=''> <p class='title' data-section-title><a href='#panel1'>{$new_gallery->gallery_title}</a></p> <div class='content' data-section-content> <ul class='clearing-thumbs' data-clearing>"; //The issue was solved!!!!!! //THIS IS WHERE THE IMAGES ARE SUPPOSED TO DISPLAY FROM THAT CATEGORIE IMAGE GALLERY, WHICH IS ALSO TIED TO THE REPEATER FIELD if (count($new_gallery->images1)) { // randomize some images $images1 = $new_gallery->images1->getRandom(100); foreach($images1 as $image1) { $thumbnail1 = $image1->size(118,112); echo "<li><a href='{$image1->url}'><img class='photo' width='118' height='112' src='{$thumbnail1->url}' style='border:1px #dadada solid;' alt='{$image1->description}' /></a></li> "; } } echo"</ul> </div> </section>"; } ?>
-
Solved it.
-
Hi Guys, I'm back with another question. Figured I would ask for another set of eyes on this one. Basically, the categories are being created if a new gallery is added through the CMS but the images are not showing up. Any help would be great! <?php //newgallery is the name of the field in the CMS whic is a repeater //gallery_title is the name of the field in the CMS which is inside the repeater field for the category title. //images1 is the name of the field in the CMS which is inside the repeater field for the images gallery //THIS IS WHERE THE TITLES ARE BEING DISPLAYED FOR A CERTAIN CATEGORY THE USER MAKES IN THE CMS FOR THE GALLERY foreach($page->newgallery as $new_gallery) { echo " <section class=''> <p class='title' data-section-title><a href='#panel1'>{$new_gallery->gallery_title}</a></p> <div class='content' data-section-content> <ul class='clearing-thumbs' data-clearing>"; //The issue is below!!!!!!!!!! //THIS IS WHERE THE IMAGES ARE SUPPOSED TO DISPLAY FOR A CREATED CATEGORY, UNDER ITS OWN IMAGE GALLERY, WHICH IS ALSO TIED TO THE REPEATER FIELD if (count($page->$new_gallery->images1)) { // randomize some images $images1 = $page->images1->getRandom(100); foreach($images1 as $image1) { $thumbnail1 = $image1->size(118,112); echo "<li><a href='{$image1->url}'><img class='photo' src='{$thumbnail1->url}' style='border:1px #dadada solid;' alt='{$image1->description}' /></a></li> "; } } echo"</ul> </div> </section>"; } ?>
-
Yes, just realized what he meant now. Thanks for the feedback. Great point! Also watched Ryan's video on template context, didn't know we could do this, now I know! Thanks! As far as the search for other templates in the search.php template, any suggestions? Since we have other fields we want to include that are not using template context.