Jump to content

Florian Grüttner

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Florian Grüttner

  1. I have found where the problem is and realized my mistake. we had the base-tag with the URL where the site is situated. without this tag has the module the full functionality on the site. Everything is working now.
  2. Hello everyone, there is an option in the frontend of the site to create a new user and then to login for downloading the content. I have the following problem: In the PW-backend I can create a new user with access restrictions. When this user has admin rights, he can login in the PW-backend, and when he is loginned in the PW-backend I can see in the frontend the files to download and can logout. But when this user is not logined in the PW-backend he can’t login directly from the frontend. I can’t also create a new user from the frontend. When I'm trying to login or to create a new user in the frontend, I'm redirected to the homepage. What can cause this problem? I took the code from the same project I made earlier. <?php // process register / form submit ?> <?php $downloads = $pages->get(1062)->url; ?> <?php $erfolg = $pages->get(1224)->url; ?> <?php echo $erfolg; ?> <?php $my_downloads = $pages->find("template=download-detail, include=all"); ?> <?php $logout = $pages->get(1363)->url; ?> <div class="register"> <div class="col col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 download"> <?php if($user->isLoggedin()): ?> <div class="col col-xs-12 col-sm-10"> <?php echo "<h3 class='primary headline3 download-text'>Sie sind eingeloggt als '".$user->name."'.</h3>"; ?> </div><!-- col --> <?php else: ?> <div class="col col-xs-12 col-sm-6"> <div class="col col-xs-12 col-sm-10"> <h3 class="primary headline3 register-text">Registrierung</h3> <!-- col --> <?php $fu_r = $modules->get('FrontendUser'); ?> <?php $fu_r->register(); ?> <?php $fu_r->process($erfolg); ?> <?php echo $fu_r->render(); ?> </div> </div> <div class="col col-xs-12 col-sm-6"> <div class="col col-xs-12 col-sm-10"> <h3 class="primary headline3 register-text">Login</h3> <?php $fu_l = $modules->get('FrontendUser'); ?> <?php $fu_l->login(); ?> <?php $fu_l->login(array('username', 'password')); ?> <?php //// Additional LoginPersist and ProcessForgotPassword module integration (built-in) ?> <?php //$fu->login(array('username', 'password', 'persist', 'forgot')); ?> <?php //// process login / form submit ?> <?php ?> <?php $fu_l->process($downloads); ?> <?php //// output form ?> <?php echo $fu_l->render();?> </div> </div> <?php endif; ?> </div><!-- col --> <?php if($user->isLoggedin()): ?> <div class="download-list"> <div class="col col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1"> <div class="col col-xs-12 col-sm-5 col-sm-offset-0 main-text"> <?php $user_pages = $user->download_selector; ?> <?php if($user_pages[0]): ?> <p class="secondary copy">Ihre verfügbaren Downloads:</p> <?php else: ?> <p class="secondary copy">Für Sie sind derzeit keine Downloads verfügbar.</p> <?php endif; ?> <ul class="download-text"> <?php foreach($user_pages as $user_page): ?> <li><a class="secondary copy" download="download" target="_blank" href="<?php echo $user_page->download_file->url; ?>" title="<?php echo $user_page->title; ?>"><?php echo $user_page->title; ?></a></li> <?php endforeach; ?> </ul> <?php if($user->isLoggedin()): ?> <div class="col col-xs-12"> <a class="primary headline3 cta icon-open icon-close download-text" href="<?php echo $logout; ?>">Logout</a> </div><!-- col --> <?php endif; ?> </div> <!-- col --> </div> </div><!-- download list --> <?php endif; ?> Maybe its a simple task but I am not sure where to look for the problem. Thanks for your help - I really appreciate all that kind support here in the forum! Cheers, Florian
  3. Thank you a lot. I think it would be enough to mention this in your documentation. I was really confused about the endless loop redirects. And is there any ability to send mails? Because I have the problem that any redirect is looses the data from posting the form. It would be helpful to send the admin an email that a new user is registered.
  4. I have some Redirect Issues on Logout in Firefox. When I press Logout in Chrome everything seems working. In FF ive got endless redirects. The way I lougout is: $fu = $modules->get('FrontendUser'); $fu->logout(); Runs on an own page, means not on the same where the Login/Register is located (There is only a Link to the Logout Page to print a feedback message). Whats the fault? I dont use redirect because I dont need any. By the way: I find no elegant way to send an email, when some new user is registrated. Is there any way to send an email out of the box from this module? Every extern way means to send emails in a very general way without events fired directly from my registration form.
  5. All SEO Tabs disappeared from Pages and there is no output anymore. Also all my inputs Ive done are not accessible anymore. I can reconfigure everything and manually add all fields to each template and place them in a own SEO-Tab. But this would be nearly the same way, as I created my own SEO-Tabs in the past. Means there are no advantages of the module anymore. Because I have to trust in the abilities of this module. If its not working properly my project would be harmed. So better I take the safe way. Would be great if there is any solution. Cause the features of this module are really exciting and would help a lot.
  6. I really like your Module. But it worked only about 15minutes for me. After inserting Text to several pages I got: I have no idea whats the problem. Also deleting an reinstall of the Module doesnt solves the problem. All fields are recreated and empty. Still throws that errors. I am using the latest Version 0.8.2.
  7. You are right. I had to disable ACF first. Thanks for helping!
  8. I solved the problem also with deleting all fields I used for this case, and new clean setup. Maybe there were some changes during my first setup that broke my fields. But thanks to LostKobrakain for your help. With this expressions it is working fine. You only have to watch out to never define a parent page for your selection. I think this setting is not deletable and breaks your fields.
  9. Hi @all, I started to manipulate (or extend) the Module ProcessPageEditLink with several new options. The reason is, in my needs it is necessary to add more than a title or an extra class to links in WYSYWYG-Editors. I discovered the Module and decided it would be nice to extend the existing code for options like the HTML5-"download"-Attribute or a specific value given to the link in a "data-value"-field. I tried to use existing code like the function to define a "title"-Attribute. In the dialog it is pretty working in the preview section, means adding and getting this information to a link works for this dialog. But I got problems to save my results in the textarea. I searched for a restriction that makes me not able to get more than the standard-attributes into, but I cant find anyone. So maybe I have to look for another hookup on saving to textfield maybe. unfortunately I am very unexperienced in developing modules on PW. But after I got some nice results I wish to finish this task as well. Has anybody an idea whats going wrong? Maybe there is somebody else interested in this functions. Thanks for help
  10. Yes these fields are empty. I used only your propertys for selectable Pages. My PW Version is 2.5.3.
  11. Thanks a lot. This solution works for listing my Pages. But I throws error on saving page this is not a valid selection. Fehler beim speichern von Feld "finder_link_2" - Page 1144 is not valid for finder_link_2 Any idea?
  12. Hi, I created a Field Type: Page and I want to get a Dropdown where all Pages I have in my PW are listed. With custom Selectors it is possible to call Pages e.g. by template. But in my dropdown I cant select this Page. When I am trying to save I will get an error, that this Page is no valid selection. IMHO it depends on the rule of Parent Page that is selected. Are they any ways to get an Array of all Pages i have, without defining a parent page? Greeting from Nuremberg!
×
×
  • Create New...