Jump to content

JasonS

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by JasonS

  1. Hi, Can this module be updated to use Processwire's WireMail()?
  2. Why would you encode his post? I personally have to agree with him(cssabc123). It depends on the project's needs when you decide a framework to work with. Whether it is Drupal or PW or Joomla depending on the project, one is more suited than the other. I personally think it's disrespect to encode another person's post, when it's their own opinions to discuss a topic openly and freely.
  3. I'll just place this here for anyone who comes across this same error: The fix I used was just rename the table in DB: ALTER TABLE processredirects RENAME TO ProcessRedirects;
  4. Hey I noticed the same thing on my installation and i checked for the existence of the table and found the table but title of table had different cases than what PW is expecting. PW is expecting table with the name: 'ProcessRedirects' DB has the name of table: 'processredirects' Maybe the ProcessRedirects module updated without updating the DB table(s)....?
  5. Hey Everyone, I would first like to point out that i love the new additions to the comments system. Now what brought me here... I have a problem with my reply button. When using the $page->comments->renderAll function it works beautifully, however on https://processwire.com/api/fieldtypes/comments/ it shows me how to rename the headlines for each section by doing this... <?php echo $page->comments->render(array( 'headline' => '<h2>Read Comments</h2>', )); echo $page->comments->renderForm(array( 'headline' => '<h2>Join The Discussion</h2>', )); However when I do this, my reply link in the comments section doesn't work anymore. it doesn't show me nice slide down section for entering a new comment as it did using the renderAll function. If there is a workaround or some other way of getting it to work while having both headlines text changed, it would be great. Thanks.
  6. @horst lol, It's ok I understand. I was confused as well for a long time about the test connection but i'm glad we were able to get it resolved.
  7. I contacted iPage again, and indeed you were right, I did need the credentials for the SMTP-account to work. Before they told me I didn't, maybe as you said, they may have been thinking i was using the mail() function. Once I added the credentials for my account, it worked beautifully. Thank you very much Horst!!!
  8. @horst : No, IPage said it didn't need any credentials. Connection test is always successful.
  9. I can't figure out how to have it displayed for a custom role I created ("member"). I even allowed the template to control who has access and edit permissions to this page. Seems not to be working... I've ran out of idea. I have a template("Profile") which has fields from the built-in "user" template. The Fredi links works as expected for the "superuser" role, but doesn't show for the custom role "member". Do you have any suggestions or am I missing something here? Thanks in advance for any help you can give me.
  10. Is it only view-able on front-end for admin, I realized it doesn't show links for my other roles. Is this expected?
  11. Hey, Can anyone help with me this? I'm trying to send mail with this module, however I keep getting this in error log "No unauthenticated relaying permitted". How can I resolve this? Note: I'm using ipage shared hosting environment. Ipage told me i don't need to log in to their mail server to send mail. So i'm not sure what I am doing wrong. Code I'm using is this... $mail = wireMail(); // calling an empty wireMail() returns a wireMail object $numSent = wireMail($to, '', $subject, $textBody); // or with a default sender emailaddress on config page
  12. Hi Wanze, I'm using Processwire version 2.3.1 . Amazing!!! Your solution worked. Many Thanks.
  13. I am getting this error after updating to installed: 1.2.1 Each time i click the google analytics TAB I see the below message. Method ProcessGoogleAnalytics::wire does not exist or is not callable in this context I tried to revoke my google account, i even tried uninstalling module, but this didn't work either. Can anyone explain why this is happening? And any possible solutions? Thanks.
  14. Did you use the account "All Website Data"? Note: I had the same issue as you, using this account worked for me.
  15. Will there be an update on this?
  16. Hey, I'm fairly new to PW so i'm trying this module which seems to do what i need. But to the deletion or rather renaming of existing pages to year it is messing with my menu layouts. How can i have each category achieve under it's own page head. Home - Category 1 -Year 2014 -Page 1 - Category 2 -Year 2014 -Page 2 Right now it changes my structure to Home -Category 1 {unpublished} - 2014 -Page 1 -Page 2 Which in my opinion isn't very user friendly of navigation, if i have my menu markup based on second level pages (From Home).\ If i can get any assistance, i would greatly appreciate it.
  17. Hi elkolonel, I too am new to ProcessWire and saw the above posts and tutorial. I'm wondering, did you ever get any help with this? i'm looking to do something similar with contact form as a widget.
  18. Actually i found the answer $num = count($Page->comments); "<p>Page has $num Comments</p>"
  19. Hey, Is there anyway you can do this for just one page? i.e: "How many comments are for Page A?" Thanks.
  20. Wow, amazing...simple little things really do make a difference. That worked and Menu Showed up Apeisa. Now to figure out why the dropdown menu isn't showing... *long night ahead*
  21. If i use this code for the Navigation using the "Markup Simple Navigation" module: <ul id="nav"> <?php // load MarkupSimpleNavigation module $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module //Setting options for menu $option = array( 'show_root' => true, 'current_class' => 'current', 'has_children_class' => 'submenu', 'inner_tpl' => '<li>||</li>', 'collapsed' => true ); // Render Menu echo $treeMenu->render($options); ?> </ul> This is the output i get from the browser: <ul id="nav"> <ul><li class="current"><a href="/TheGentleManClub/about/">About</a></li><li class="has_children"><a href="/TheGentleManClub/grooming/">Grooming</a><ul><li><a href="/TheGentleManClub/grooming/haircut/">Haircut</a></li></ul></li><li><a href="/TheGentleManClub/contact/">Contact</a></li></ul> </ul> In this example, My current page is "About" page so the class shows correctly. My entry with children, doesn't show class="submenu", instead shows "has_children". Oh and it is still not showing...not sure what i'm doing wrong in this...
  22. Yes apeisa, I've already replaced the URLs in CSS and HTML to match that which i am using. The Page is also Published Status. I can see the pages and the I've also changed the position and taken the time to go through all the CSS to ensure consistency. The main road stopper i am having right now is the Navigation. If i use this code i created to manually get pages: <!-- Navigation starts ================================================== --> <nav id="nav-wrap" class="nav-wrap1 twelve columns"> <div id="search-form"> <form action="<?php echo $config->urls->root?>search/" method="get"> <input type="text" class="search-text-box" id="search-box"> </form> </div> <ul id="nav"> <li class="current"><a href="<?php echo $config->urls->root; ?>">Home</a> <?php $homepage = $pages->get("/"); $children = $homepage->children; $children->prepend($homepage); foreach($homepage->children as $child){ echo "<li><a href='{$child->url}'>{$child->title}</a></li>"; //Commented out the below ( not sure if i'm doing this part right) // foreach($child->children as $child){ // echo "<li><a href='{$child->url}'>{$child->title}</a></li>"; // } } ?> 1. It one pulls all the pages in the pagetree and output in the menu. 2. Also classes don't change dynamically ( thinking i have to use if statements to get this to work properly) 3. No dropdown menu for any submenus
  23. Ok this is what i have so far .... <!-- Navigation starts ================================================== --> <nav id="nav-wrap" class="nav-wrap1 twelve columns"> <div id="search-form"> <form action="<?php echo $config->urls->root?>search/" method="get"> <input type="text" class="search-text-box" id="search-box"> </form> </div> <ul id="nav"> <?php // load MarkupSimpleNavigation module $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module //Setting options for menu $option = array( 'show_root' => true ); // Render Menu echo $treeMenu->render($options); ?> </ul> </nav> <!-- /nav-wrap --> <!-- Navigation ends ================================================== --> This is just the basic method to show "somerthing" but in my website, nothing shows for the menu, but if i use a default PW installation it works. I suspect it has to do with the li, ul list elements and order of classes which prevents it from showing up, for example if I remove id="nav", it shows up in the site(admittedly...badly) atleast i can see it to manipulate it. But when i put it back to make use of the CSS i was given it doesn't show anymore. Here is the order of the html code structure from a static website i am trying to duplicate in PW using this module: <ul id="nav"> <li class="current"><a href="index.html">Home</a> <ul> <li class="current"><a href="index.html">Home 1 - Index</a></li> <li><a href="home2.html">Home 2 - Classic</a></li> <li><a href="home3.html">Home 3 - Parallax</a></li> <li><a href="home4.html">Home 4 - Video-bg</a></li> <li class="submenu"><a href="#">Headers</a> <ul> <li><a href="topbar.html">Header + Topbar</a></li> <li><a href="header2.html">Header 2</a></li> <li><a href="header3.html">Header 3</a></li> <li><a href="header4.html">Header 4</a></li> <li><a href="header5.html">Header 5</a></li> <li><a href="header6-menu-icon.html">Header 6 - Menu Icon</a></li> <li><a href="header7.html">Header 7</a></li> </ul> </li> </ul> </li> <li><a href="#">Pages</a> <ul> <li><a href="services.html">Services</a></li> <li><a href="about.html">About us</a></li> <li><a href="about-extended.html">About us - Extended</a></li> <li><a href="about-me.html">About me</a></li> <li><a href="process.html">Process</a></li> <li><a href="ourteam.html">Our team</a></li> <li><a href="sidebar-right.html">Right Side-Bar</a></li> <li><a href="sidebar-left.html">Left Side-Bar</a></li> <li><a href="faq.html">FAQ</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="404.html">404 Not Found</a></li> </ul> </li> <li><a href="#">Features</a> <ul> <li class="submenu"><a href="#">Shop</a> <ul> <li><a href="shop.html">Shop 1</a></li> <li><a href="shop2.html">Shop 2</a></li> <li><a href="product-item.html">Product</a></li> </ul> </li> <li><a href="elements.html">Elements</a></li> <li><a href="icon-boxes.html">Icons Boxes</a></li> <li><a href="icons.html">Icons</a></li> <li><a href="pricing.html">Pricing Tables</a></li> <li><a href="gallery.html">Image Gallery</a></li> <li><a href="columns.html">Columns</a></li> <li><a href="timeline1.html">Timeline</a></li> <li><a href="left-nav-page.html">Left Navigation</a></li> <li class="submenu"><a href="#">Sub Menu</a> <ul> <li><a href="#">Menu Item 01</a></li> <li><a href="#">Menu Item 02</a></li> <li><a href="#">Menu Item 03</a></li> </ul> </li> </ul> </li> <li><a href="blog.html">Blog</a> <ul> <li><a href="blog.html">Blog 1</a></li> <li><a href="blog-leftsidebar.html">Blog 1 - Left Sidebar</a></li> <li><a href="blog2.html">Blog 2</a></li> <li><a href="blog2-leftsidebar.html">Blog 2 - Left Sidebar</a></li> <li><a href="blog-bothsidebar.html">Blog - Both Sidebar</a></li> <li><a href="timeline1.html">Blog - Timeline</a></li> <li><a href="blog-single.html">Blog - Single Post</a></li> </ul> </li> <li><a href="portfolio.html">Work</a> <ul> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="portfolio-pin.html">Portfolio Pinterest</a></li> <li><a href="timeline2.html">Portfolio Timeline</a></li> <li><a href="portfolio-item.html">Portfolio Item (Single)</a></li> </ul> </li> <li><a href="blog.html">Mega menu</a> <ul class="mega"> <div class="one_third"> <h4 class="subtitle">Contact Form</h4> <form action="#" method="post" class="frmContact"> <input name="txtName" type="text" class="txbx" value="Name"> <input name="txtEmail" type="text" class="txbx" value="Email"> <input name="txtSubject" type="text" class="txbx" value="Subject"> <textarea name="txtText" class="txbx era"></textarea> <button name="" type="button" class="sendbtn btnSend">Send Message</button> </form> </div> <div class="one_third"> <h4 class="subtitle">Image and Text</h4> <img src="images/hpic1.jpg" alt=""><br> <h6><strong>Phasellus bibendum</strong></h6> <p>In non porttitor tortor. Donec vel egestas Morlem adipiscing mauris ultricies.</p> </div> <div class="one_third"> <h4 class="subtitle">Icon Links</h4> <li><a href="#"><i class="icomoon-dashboard"></i> Proin porta molestie</a></li> <li><a href="#"><i class="icomoon-marker-2"></i> Praesent adipiscing</a></li> <li><a href="#"><i class="icomoon-cube4"></i> Faucibus euismod</a></li> <li><a href="#"><i class="icomoon-screen"></i> Integer nec ligula</a></li> <li><a href="#"><i class="icomoon-laptop"></i> Adipiscing timeline</a></li> <li><a href="#"><i class="icomoon-earth"></i> Bliquam erat Post</a></li> </div> </ul> </li> </ul> However i suspect i need to manipulate using the more parameters in the $options variable to get the right li and ul placements. and for the record, i'm not very good at CSS and designing my strong suit is functionality (probably why i was using Drupal before the hell of theming in it) . CSS, HTML and javascripts i got from a theme i brought from ThemeForest which comes in handy and has the look and feel i am looking for (which is very important to end-users). And Yes Joss, I noticed Ryan's code is pretty advance, i trust some day when i reach that level in PW I can make supermom sites, but right now i need a baby to mature...any help is welcomed... Update: I should add that the class="current" needs to move to the active item of the menu. And class="submenu" for those items in the menu which has children. Basically if a "child" has "children", "child" should have class="submenu". In the past when i use 'has_children' parameter, i was not outputting the "submenu" in the render page, which confused me so of course i took it out and starting from the beginning again. ( which is why i have such basic code above)
  24. Thank you so much for the instructions Joss. Yes the core fundamentals i know from the long tutorial and planet tutorial Ryan did. I think the main problem right now is understanding how the api differs from standard API and the many way in which you can use it. Right now i have been studying all morning how to get "markup-simple-navigation" module to work in an existing theme i'm converting from html but that in itself is giving me trouble but strangely enough when i use it in default PW installation in my machine, it works without a hitch. I'm seriously wondering if to start from "Blog Profile Module" and edit as i go long but there is so much i don't understand in the code of this profile. So i'm terrified to change a "dot". lol But i find the output i get from API is different. In some cases I use the foreach function and it works but in cases where i don't know the output or how to place the output into an array....I'm not sure how to manipulate the data i received from PW to allow me to have predictable output. I probably talk all over my face just now, but i hope i didn't lose you in my journey.
  25. I'm just like her, I know PHP to some extent but i'm having a hard time learning how to use the API within templates. I've been through almost all the tutorials but for some reason, i'm still having trouble learning PW. If anyone can point me in the right direction i would gladly continue working on it. But i'm honestly tired of working with Drupal (too frustrating) and i love the simplicity of PW from what i see so far.
×
×
  • Create New...