Jump to content

Search the Community

Showing results for tags 'php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. What's the process of making a Wordpress plugin work as a module? What do I need to translate and how?
  2. I am trying to use the Admin i/f to upload a .PDF (or .DOC) and it seems I can as long as the file is 128KB or less. I have edited php.ini for a website and now phpinfo(); reports: post_max_size = 32M upload_max_filesize = 24M max_execution_time = 60 max_input_time = 60 memory_limit = 128M I tried uploading files of gradually decreasing size and it worked for one that was 127KB but failed for one that was 132KB (and for all those larger) — the upload bar moves as expected to 100% but then does not prompt for a file description and when saving the page the file is no longer seen. I am running PW 2.2.2.1. Any ideas anyone pretty please?
  3. $jurisdictionsPageChildren = $pages->get(1011)->children(); // Check whether there are any children before attempting to split them if($jurisdictionsPageChildren > 0) { // Some general vars $rows = 2; $totalCount = count($jurisdictionsPageChildren); $rowCount = $totalCount / $rows; // Creating the seperate list (there has to be an easier way to do this) $firstList = $jurisdictionsPageChildren->slice(0, $rowCount); $secondList = $jurisdictionsPageChildren->slice($rowCount, $totalCount) $mainContent .= "<div class='row jurisdictions-list'>"; // First list of elements $mainContent .= "<div class='columns six alpha'>"; foreach($firstList as $child) { $mainContent .= "<h2><a$class href='{$child->url}' title='{$child->title}'>{$child->title}</a></h2>"; } $mainContent .= "</div>"; // Second list of elements $mainContent .= "<div class='columns six omega'>"; foreach($secondList as $child) { $mainContent .= "<h2><a$class href='{$child->url}' title='{$child->title}'>{$child->title}</a></h2>"; } $mainContent .= "</div>"; $mainContent .= "</div>"; // Close the row class } Okay, here is the deal. I have one list ($jurisdictionsPageChildren) which I want to split into multiple blocks/columns. I would like to adjust this code so I can set the $rows variable to some number. The condition is that the first block (regardless of the number of blocks) has to have a class 'alpha' and that every last block has to have a class 'omega'. I was thinking to put a foreach in a foreach, but somewhere things got messed up. If this was JSP it would do it like this: <c:set var="splittedListHere" value="$(rpfn:splitListFunction(listHere, 2))" /> <c:forEach items="splittedListHere" var="list" varStatus="i"> <div class="block$(i.first ? ' alpha' :'')$(i.last ? ' omega')"> more foreach stuff </div> </c:forEach> Any thoughts to make this prettier for a PHP noob are very welcome.
  4. Once again, I got a problem with a hosting where I can't upload images/files. It just uploads to 100% then the bar disappears and it's like before. In the post I see this message: error: false message: "Page not saved (no changes)" Filepermission seems ok. Install went normal. Any ideas what to look for? I can provide phpinfo if needed. PHP version is: PHP/5.2.4-2ubuntu5.23
×
×
  • Create New...