Jump to content

Pip

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by Pip

  1. Hi everyone! Was wondering if anyone been getting this error when you import? Been scratching my head on this. Checked 515 and this is what I got. if($page->id && count($page->get('ImportPagesCSVData'))) { Any idea what's tripping it?
  2. So apparently after going through stuff the reason as to why the email address never changed is due to the XAMPP settings. Despite setting the settings that way, it overwrites the sender still. Oh wells. Silly me calling it sorcery. ?
  3. Redid the whole thing. It works now.Thanks!
  4. Hi guys Just want to confirm something before I go calling the ghost busters or something. So here's aroughsummary.: I'm currently working on a Xampp environment. Each site I work on, I customize the domain from localhost -> confabulations. No .com, .net, .org, etc. I've installed processwire and it automatically sets this in the config: $config->httpHosts = array('confabulations'); Everything works well in Login/Register until one day, I get this error when I register on the site (locally). Which is weird because I have not been customizing the module itself. Not until I change this: $config->httpHosts = array('confabulations.com'); Then it works. I mean sure fine theoretically if I change my vhost etc to confabulations.com it should work. But what I do not understand why suddenly trigger such error when the only modules I have is the Sitemap and Login/Register/Profile. ?
  5. Never had this problem before. But may I know how you create it and what's the name of your template?
  6. I tried changing my admin email address. It's still stuck with the old one. Searched the whole database as well as any hard coded ones, none. What sorcery is this, @ryan? ---- Sincerely, dumbfounded struck confused noob PW user. ?
  7. Tried this. Though theoretically it is sound, email address is still stiff. I got my admin email address still. Worst even if I do this, my Login Register comes out empty. I have do this in order to work (just to have the module work work): Take note: Email address is still the same as admin. I've checked the error logs, everything seems to be in working order.
  8. Thanks on this! Really look forward on the pull request to go through.
  9. And fast forward to 2020, has anyone figured this out yet? Tried doing this but as expected, it is overwritten. ? Changing the config is out of the question because this would mean all other updates will bounce off. protected function sendConfirmationEmail($email, $confirmCode) { $config = $this->wire('config'); $confirmURL = $this->wire('page')->httpUrl() . "?register_confirm=" . urlencode($confirmCode); $mail = new WireMail(); $mail->subject(sprintf($this->_('Confirm account at %s'), $config->httpHost)); $mail->to($email); $mail->from('noreply@domain.com');
  10. @MoritzLost No more doing codes past 3am for me that's for sure. hahaha. Thanks, Moritz.
  11. @MoritzLost You know by default the home template includes the "basic-page"? I changed it to the confabulations page. Thing is, I was checking on the actual Home page for the pagination. Apparently, even though if you enabled pagination the included page, it's the page's main template that pagination should be enabled. ?
  12. Found it. Omg. So it's because my Home per se is not allowed to do pagination. Despite my home includes the confabulation template. D'oh!
  13. Did a simple var_dump. Well for the correct template, it does change. But for the wrong one the values still remain the same. It's like the pointer never moves. ?
  14. Confirmed. You're talking about the $pages->find? Sorry kinda lost on this. Though I made sure by clearing the cache also forcing the refresh Ctrl+Shift+r
  15. <?php $newcolors = array(); $confabulations = $pages->find( "template=confabulation, limit=5, sort=-id" ); ?> <div class="pagination"><?php echo $confabulations->renderPager();?> <div style="clear:both;"></div> </div> <?php foreach ( $confabulations as $i ) { $newid = intval( $i->id ) - $basepageid; $newcolors = genColor(); // $newcolors [0] = background // $newcolors [1] = flap // $newcolors [2] = text echo "<div class=\"post " . $newcolors[ 2 ] . "\" style=\"background-color:#" . $newcolors[ 0 ] . ";\">" . "<a href=\"" . $i->url . "\"><div class=\"flap\" style=\"background-color: #" . $newcolors[ 1 ] . "; color: #" . $newcolors[ 0 ] . "\">" . $newid . "</div></a>" . "<h2>" . $i->title . "</h2>" . $i->confabulation_body . "<div class=\"author\">" . $i->confabulation_pseudonym . "</div> <div style=\"clear:both;\"></div></div>"; } ?> <div class="pagination"><?php echo $confabulations->renderPager();?> <div style="clear:both;"></div> </div>
  16. Ugh. So much for short lived happiness. Suggested the edits you recommended @MoritzLost and suddenly tada.... ? It work for a short time only and then tada we're back. You reckon that pagination only works for one template only? Because I'm using it in two different templates. My codes as of now:
  17. Hi all. Playing around with Processwire and wrapping my brain around the basic stuff. So far so good, until I hit on a field in my page where the output is "InputfieldText" which ought not to be. Let me explain my workspace: The Template I have a template with the following structure: Title Confabulation_Body (Text area) Confabulation_Pseudonym (Text) Output Pages I have two output pages: (1) All pages I created and (2) everyone's pages. All pages I created looks like this: (which is btw the correct output) $newcolors = array() ; $confabulations = $pages->find("template=confabulation, limit=5; created_users_id=$currUser"); foreach ($confabulations as $i) { $newid = intval($i->id) - $basepageid; $newcolors = genColor(); echo "<div class=\"post ". $newcolors[2]. "\" style=\"background-color:#". $newcolors[0] .";\">" . "<a href=\"". $i->url ."\"><div class=\"flap\" style=\"background-color: #". $newcolors[1] ."; color: #". $newcolors[0] ."\">" . $newid ."</div></a>" ."<h2>".$i->title."</h2>".$i->confabulation_body."<div class=\"author\">".$i->confabulation_pseudonym ."</div> <div style=\"clear:both;\"></div></div>"; } While the page to show Everyone's pages : <?php // Echo all posts $newcolors = array() ; $confabulations = $pages->find(" id>1018, template=confabulation, sort=-id, limit=5"); foreach ($confabulations as $i) { $newid = intval($i->id) - $basepageid; $newcolors = genColor(); // $newcolors [0] = background // $newcolors [1] = flap // $newcolors [2] = text echo "<div class=\"post ". $newcolors[2]. "\" style=\"background-color:#". $newcolors[0] .";\">" . "<a href=\"". $i->url ."\"><div class=\"flap\" style=\"background-color: #". $newcolors[1] ."; color: #". $newcolors[0] ."\">" . $newid ."</div></a>" ."<h2>".$i->title."</h2>".$i->confabulation_body ."<div class=\"author\">".$i->confabulation_pseudonym ."</div> <div style=\"clear:both;\"></div></div>"; } ?> The Environment My environment (in case though theoretically it should work fine still): Latest version of XAMPP Editor Tool: Dreamweaver Has anyone experienced such a bizarre behavior? Did I do something wrong? Is my laptop cursed?
  18. @MoritzLost Thanks for the reply! Yeah that did the job! It's weird really could have sworn it was without the start=0 previously and it didn't work. Will keep a close eye on this because I've been getting some weird behaviors. Thanks!
  19. Hi @elabx! Previously it was working. Dunno why lately it decided to well not work. But here's a screenshot of the template:
  20. Hi all, Using the Pager to do some pagination. The render seems to work nicely - render meaning to print 1, 2, 3, next. But upon clicking the links, the page does redirect but the results is as good as clicking on the # link. Results are not moving to the next set. Noted that it happens that it behaves nicely but most of the time the results won't move. Any idea where I went wrong? <h1><?php echo $page->title; ?></h1> <?php if($page->editable()) echo "<p><a href='$page->editURL'>Edit</a></p>"; ?> <?php echo $page->body; ?> <?php // Declare variables $newcolors = array() ; $confabulations = $pages->find("start=0, id>1018, template=confabulation, sort=-id, limit=5"); foreach ($confabulations as $i) { ..... Some design work and output ... } ?> <div class="pagination"><?php echo $confabulations->renderPager();?> </div> Added start=0 into the selector but nothing seems to happen. Help
  21. Hi @Matze Was browsing through and have the similar issue. Wondering if you're able to solve this without going through each field one at a time. If you were able to, may I know how'd you do it? Thanks!
  22. Hi @bernhard My users will be the general public. Meaning, they are not clients, nor probably tech savvy. So need the interface as friendly as possible and to direct their focus only to their listing. Actually am not using UI kit on the front. It was just a coincidence. LOL
  23. Hi @louisstephens! I have but I feel that because of the double clicking, it may be confusing for the user. By having the proper forms, with clear text boxes, it will be easier for the non techy user.
×
×
  • Create New...