Jump to content

MarcC

Members
  • Posts

    370
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MarcC

  1. Oh good! I think that is one of the two plugins I have installed. Thanks for the tip.
  2. Is this OK that I am (laughingly) complaining a bit about another CMS? It's a pub and that's where people do that, right? I took on a WordPress project after 7 years of no WordPress. No surprises: exact same level of frustration. After admiring the built-in "Press This" bookmarklet feature for a few seconds, I was amazed to see these dashes holding the conceptual page model together. With sortable columns, dashes start to fly everywhere! Everyone gets a dash. After looking that over, I had a back-and-forth discussion on "where is the posts page? Maybe this page should be the posts page" and it was making me feel like I had wandered back into the asylum. I pitched ProcessWire as a backend for this project, but it unfortunately it was a decision for a different team. It's also weird how there's nothing even close to, say, $input->get->foo in WP. You have to head on over to functions.php and start writing a filter so you can capture that stuff if you need it. Oh well. I'm thankful to have learned enough PHP from ProcessWire that I know what to look for and can work around a lot of stuff that they recommend you install plugins to fix.
  3. I'm looking for a freelancer to help me develop a calculator feature for a website. The calculator is a financial calculator based on a working Excel spreadsheet and uses simple math, yet contains more fields than a typical mortgage calculator or similar. It is not a full-fledged calculator but works more like an interactive worksheet. Please email me if you are interested: marc *a t* marccarson.com. Please let me know about any similar work you've done (or send your development portfolio website) and I'll send you the Excel spreadsheet to get a cost estimate. The build timeline would be about 2-3 weeks, beginning about one or two weeks from today. The client has also requested that the calculator have a download-me / work-offline feature (loosely defined at the moment), and I will rely on you to suggest ways that could work so that we can communicate with the client about it early in the process. Additionally if you are a heavy ProcessWire user I am interested in exploring ways we can work together on future projects involving front-end communication with a PW back-end. Thanks!
  4. Lovely job, Ryan! I was so close to booking a 10+ person venue for an impromptu ProcessWire gathering at Calvigny, but $52K per night just sets off my grunge alarms. Maybe the pools aren't refilled nightly or something, you never know.
  5. That's because of ->remove($page);
  6. Thanks, Soma. I'll check it out and get these 2.2 sites upped as soon as possible.
  7. I narrowed it down to two browsers on that website; the default theme's upper-right save button does not work in Chrome and IE, but it does work fine in FFX and Safari. I re-tested in 2.3.0 and couldn't replicate the problem, so I think it was something else for that site/client. So far this seems to be affecting 2.2.x. I'm curious to know what the difference in the button functionality might be. One of my 2.2.x sites is not trivial to upgrade, since it is a high-traffic financial services website.
  8. Thanks, kongondo. This is in stable, plus a few sites running 2.2.x. (Edit: this may be restricted to my 2.2.x sites) Do you think it could have something to do with the server environment? The post-save message indicates a change has been made, but my changes to fields are gone unless I use the bottom save button.
  9. I've noticed recently that I have a number of ProcessWire installs for clients where the upper-right "Save" button no longer works. I noticed a GitHub issue about this, but it seems to have to do with third-party admin themes only. I was able to replicate the problem with the default PW theme on two separate installs. I've only seen this happen in Chrome so far, so I need to do some more testing. A client emailed me yesterday to ask if I would remove that "annoying" Save button at upper-right because she just lost a bunch of work when she went to save a page. :-( Another client, using the default PW theme, said their website is not saving changes, and I've narrowed it down to this single button. So I figured I'd raise it here and see if anybody has a lead on this issue. A client who prefers to use that button asked me if there's any solution, and I told her that the current solution seemed to be removing the button. For now I removed the button with CSS. If anybody has more information on this, please let me know. Thanks!
  10. I like it, DDV! It's great to see the photographs of the individuals along with the information. It's strange but you don't always see photos in "this day in history"-type websites. I took a similar approach with a genealogical site I'm working on--it shows which ancestors were born in the current month, died in the current month, etc. It's just in the sidebar but I think it makes the site more fun to use. I laughed at your description of yourself bolting this all together. I've felt that way before...in the very recent past...and hopefully will feel that way again soon. Thanks for sharing.
  11. Thanks everybody--I'll give it a shot on Monday and see how it goes. I just watched "Cloudy With a Chance of Meatballs" with my kids and now I'm dreading this job a bit--can't recommend watching that film before doing batch operations.
  12. I have a big database full of various tables that I plan to import to ProcessWire as CSV. Each record/row has a field corresponding to an image number. Then I have a folder full of the numbered images. After importing the CSV, I am planning to import these image like so: foreach $imported_pages as $page { if ($page->image_number) { if (file exists with image_number in the filename) { //Code below from Ryan $page->images->add("path or URL to image"); //save the page $page->save(); } } } Does that look right? Thanks!
  13. Hey Marty, does this one help? http://modules.processwire.com/modules/markup-custom-page-list/ Seems you can use custom parameters to display e.g. field labels. Sorry if I misunderstood.
  14. Thanks, I re-read your reply and understood completely. After working through the problem table by table, I am now a big fan of FULLTEXT, and the DB imported perfectly. One website restored. I appreciate the help!
  15. Yes, it's the same error. Edit: Oh, I see--you mean depending on the table. Missed that. Some data are different from other data Let's try it...
  16. I wonder if this is due to the collation being off. The old DB is latin1. :-/ (Edit: Seems the new one is too, so this isn't a problem)
  17. Thanks Nik--that seemed to work with description, but it complains about `data`: Error SQL query: CREATE TABLE `field_body` ( `pages_id` INT( 10 ) UNSIGNED NOT NULL , `data` MEDIUMTEXT NOT NULL , PRIMARY KEY ( `pages_id` ) , KEY `data` ( `data` ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8; MySQL said: #1170 - BLOB/TEXT column 'data' used in key specification without a key length [ And then I changed to FULLTEXT... ] Error SQL query: CREATE TABLE `field_display_specialty_footer` ( `pages_id` INT( 10 ) UNSIGNED NOT NULL , `data` INT( 11 ) NOT NULL , `sort` INT( 10 ) UNSIGNED NOT NULL , PRIMARY KEY ( `pages_id` , `sort` ) , FULLTEXT KEY `data` ( `data` , `pages_id` , `sort` ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8; MySQL said: #1283 - Column 'data' cannot be part of FULLTEXT index
  18. I exported from an existing PW site (using SQL Buddy) and I'm having troubles importing the data to PHPMyAdmin on a separate server. I get a bunch of errors like the following. Does anyone have advice on fixing this? This comes from a working PW site, but for some reason it's not importing. Unfortunately I no longer have access to the original PW site, just this SQL file. Here's the error--any help would be appreciated. ErrorSQL query: CREATE TABLE `field_content_images` ( `pages_id` INT( 10 ) UNSIGNED NOT NULL , `data` VARCHAR( 255 ) NOT NULL , `sort` INT( 10 ) UNSIGNED NOT NULL , `description` TEXT NOT NULL , PRIMARY KEY ( `pages_id` , `sort` ) , KEY `data` ( `data` ) , KEY `description` ( `description` ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8; MySQL said: #1170 - BLOB/TEXT column 'description' used in key specification without a key length
  19. Did the admin use bold, all-caps text in the body field of the home page? If so, show the "site-wide alert" field. ...nah
  20. Wow, I actually said stuff while I watched this video but it came out like "aaaaaah" and "ohhhhhh" rather than "I've felt the need for this on several occasions! Bravo Ryan!" Thanks for sharing it with us.
  21. OK...I don't understand that yet...has_parent!=2, so I guess has_parent is returning the ID of the parent? And the admin pages' parent is 2...how does that relate to being published or not?
  22. Wow. I even tried "status>1" but I had no idea about include=all. Thanks!
  23. <?php include("./index.php"); /* Template changes in bulk -- let's publish all events */ $pa = wire("pages")->find("template=event"); foreach($pa as $p) { $p->setOutputFormatting(false); $p->removeStatus(Page::statusUnpublished); $p->save(); echo "Done with {$p->title}; {$p->status}<br>"; } The result of the code above is "Done with [event title]; 1" for every already published page, and no unpublished pages have been touched. What am I doing wrong? I'm trying to publish every page with the event template. This is modified code from a bulk editing thread. I noticed that somebody else said he couldn't get a similar thing to work because a module was causing problems. I wonder which one? Thanks.
  24. MarcC

    Quiz / Exam

    Have you looked at any of the others here? http://codecanyon.net/search?utf8=%E2%9C%93&term=quiz
×
×
  • Create New...