-
Posts
4,033 -
Joined
-
Last visited
-
Days Won
66
Everything posted by Pete
-
Oh now that's nice diogo
-
If you can wait, I'm currently working on a booking module for ProcessWire Currently it has specific needs for a specific job, so allows bookings on non-consecutive days, but will have consecutive days as an option by the time I'm finished (more useful for accommodation then). One thing I would say is that a restaurant booking system and a room booking system have very different needs. Both have been at the back of my mind when developing this module, but I need to look into the options required for a restaurant booking system when I get further along with this - the links in the first post here are helpful for that. There are some other nice features I don't want to give away just yet, but it might be worth waiting if you can for a few weeks.
- 19 replies
-
- 7
-
-
- restaurant site
- online booking
-
(and 1 more)
Tagged with:
-
I'd probably need to see your configuration for the module, as well as exactly what you've put as the link in CRON - you can PM me a screenshot of the config if you like.
-
Don't suppose you want to send a copy my way to have a peek at before you disappear for 3 weeks on your InterRail trip? You're such a tease!
-
@kongondo - I noticed when adding this that Firebug shows lots of images not working so will look into this later on. @teppo - Not sure. Might be possible, might not, but I didn't see a setting for it. @Nico - yep, so we should probably add more people as moderators for more forums
-
@Macrura - Most minified files have worked for me, but now I see that setting I guess they didn't have .min in the filename. @totoff - I just put everything on there usually as I didn't want to faff around with the core Minify directory for when I update the module, but I guess it's safe to run it without that folder. Best way to check is upload everything, check it works and then delete that folder and check it still works - not a lot can go wrong and it would be easy to put the folder back again
-
@videokid - keep an eye on this topic as Nico is doing a great job - both with the module he's building as well as reading my mind as it's more or less got all the features I wanted too http://processwire.com/talk/topic/3907-markupnewsletter
-
Just thought I'd chip in and say it's EXTREMELY unlikely that you would be able to copy passwords across. Most CMS systems use slightly different ways of encrypting passwords, and the point of an encrypted password is that you can't decrypt it - rather when a user enters their username and password to log in, it encrypts the password that's been entered and checks that against the value in the database. Having said that, it would be pretty easy once you've moved everything across to email all the users a link to reset their passwords, so that's a good way around it. The short version of the above is: no matter which CMS you are moving to, it's unlikely that you could copy passwords across. If you could point us to the URL of your current site we would be able to give you a better idea on how you might go about migrating your site, but I suspect Matthew has far more hands-on knowledge of Joomla than I do
-
For that to work, you would have to use some recursive function in order to go through every category and make a UL tree from them. My question to you is: why do you want to output a massive tree of categories and list all downloads under each of them like you're trying to do in your code? It would make more sense to me if, depending which category you're viewing, it just shows the child category titles so you can click through to them as well as the downloads for the current category.
- 3 replies
-
- 1
-
-
- categories
- pages
-
(and 1 more)
Tagged with:
-
EDIT: In fact I've just rolled it out across most forums where I think it made sense. The topic starter as well as moderators and admins can choose a best answer.
-
You mean like this? I just enabled it in this forum for a test, as well as Getting Started, General Support and Modules & Plugins. I can see it needs some styling though so it stands out a bit more.
-
I love you Soma Here's a more detailed example - again, this code needs to go in a Process module public function execute() { // This is our outer wrapper $outerWrapper = new InputfieldWrapper(); // This will be our first tab $tabOne = new InputfieldWrapper(); $tabOne->attr('title', 'Tab 1'); // I'm using InputfieldMarkup as I just want to output HTML - could be a form, some fields etc, but since I only just realised what InputfieldMarkup actually does (d'oh!) I'm going to use it lots! $markup = $this->modules->get('InputfieldMarkup'); $markup->attr('value', "And I'd have gotten away with it..."); // Append the markup to tab one $tabOne->append($markup); // Append this tab to the outer wrapper $outerWrapper->append($tabOne); // Here's another tab $tabTwo = new InputfieldWrapper(); $tabTwo->attr('title', 'Tab 2'); $markup = $this->modules->get('InputfieldMarkup'); $markup->attr('value', "...if it wasn't for those pesky kids!"); $tabTwo->append($markup); $outerWrapper->append($tabTwo); return "<div id='MyTabs'>" . $outerWrapper->render() . "</div>"; } And again, you need Soma's JS in your module's JS file: $(function(){ $t = $("#MyTabs"); $t.find("script").remove(); // to avoid double script execution $t.WireTabs({ items: $("#MyTabs > .Inputfields > .InputfieldWrapper"), id: 'ProcessExampleTabs' }); }); Lovely job
-
Ah, no, I thought you'd just copied my example without changing any field names I've never used saveReady, but ryan explains it a bit here: http://processwire.com/talk/topic/1705-need-to-send-email-notification-after-a-page-has-been-published/?p=15786 I should probably use that instead from now on I'm not sure why the code you posted doesn't work though unfortunately - I don't have time to test it right now either so hopefully someone else will be able to help.
-
Loving the look of this - it would probably be relatively easy to integrate with Mandrill for sending (and lists etc, as that system handles bounces etc). Something I'll look into myself further down the line unless you beat me to it
-
My code would only work for the OP as he had those specific fields that he wanted concatenating into the page name Your code looks like the default behaviour for PW anyway - it makes the name from the page title already so not sure what that will achieve? I suspect you are wanting the name (slug) to change if the page title ever changes, but beware as if you do something like this on a page that has been on your site for a while then you could break links from external sites and search engines. I would suggest installing ryan's page path history module as well as this will automatically redirect links from the old URLs to the new ones.
-
Event calendar, returning events and dublicate entries
Pete replied to thomasklaiber's topic in Getting Started
Thanks adrian - I forgot I'd even written that, but I need to do something very similar tomorrow so I'm glad you linked to it -
Yep, nothing like that in the core. The general rule is that if it's not something that the majority of people will need then it's not in the core.
-
Netcarver kindly helped me with this some time ago: http://processwire.com/talk/topic/1111-integrating-flourish-with-processwire/ I now use Flourish in a number of modules, but there's no reason you couldn't adapt it for use in a template I don't think - it just needs to run before you try using any other flourish functionality.
-
It sounds like iconv isn't installed on the server - just need to ask Liquidweb to install it for you - that's all. I'm guessing the person who runs the hosting has a VPS package as usually they don't have many modules installed by default. if you want information as to what iconv actually does I'd suggest Googling it, but all the error during install is telling you is that a required module isn't installed and you need it to use ProcessWire properly. In fact, here you go - looks like something to do with supporting different languages/characters: http://www.php.net/manual/en/intro.iconv.php
-
Why does $page->rootParent identify current section?
Pete replied to isellsoap's topic in Getting Started
This might work: <?php $tabs = $pages->find("id=1006|1007"); foreach($tabs as $t){ $a_class = $t == $page->belongs_to ? " class='active'" : " class='none'"; echo "<li$a_class><a href='#{$t->tab_value}'>{$t->title}</a></li>"; } ?> But if it doesn't then what is $page->belongs_to? Is it a page ID or a pagearay? I guess what I'm really asking is what type of field is it?- 16 replies
-
- current section
- semantics
-
(and 2 more)
Tagged with:
-
I was just about to say ryan seems to prefer echoing blocks of HTML rather than opening and closing PHP tags in side HTML blocks, but he beat me to it - at the end of the day coding standards should be seen as good suggestions, but use whatever works best for you and whatever is legible I prefer using PHP tags in my HTML templates but I can tell you from experience when you're doing something complicated like a table of data where there are 10 cells on a row all presenting data from fields it can soon get messy opening and closing all those tags.
-
If you don't need anything in a hurry I will be building a newsletter system along the lines of your requirements but it will be a few months off. It's a module someone is paying me to build, but I'm working on another one first
-
Well I lost the parrot sometime around when I was last being a pirate: But I found him again when I went to a fancy dress party as French Polynesia (the theme was countries): What? How is that French Polynesia? French (beret) polly (parrot) knees (I'm showing mine) ear (Spock ear). French-poly-knees-ear. No, nobody guessed it on the day
-
Gah, spoke too soon. Works for increasing brightness but not decreasing EDIT: there was a fix in the last comment below the "correct" answer - changing the last line to this works perfectly for increases and decreases in colour brightness: return sprintf("#%02x%02x%02x", $r,$g,$b); I'm using it so that someone can set the hover colour of jQuery UI accordions in association with some gradient styles from here: http://www.colorzilla.com/gradient-editor/
-
So whilst I wasn't looking for this: http://processwire.com/talk/topic/3851-pirate-maps/ I finally found what I was looking for. Essentially I needed to give a client the ability to use Soma's colour picker and tie the colour to an element on the page. Problem is the element's background has a gradient - disaster! Not a problem any more, as it's possible to take a hex value and calculate lighter and darker colours: http://stackoverflow.com/questions/5199783/help-needed-with-php-function-brightness-making-rgb-colors-darker-brighter (see accepted answer halfway down). The thing with web design/development is that pretty much anything is possible, and usually if you have an obscure requirement someone else will already have thought of a solution. Don't be limited by anything other than your imagination