-
Posts
4,632 -
Joined
-
Last visited
-
Days Won
55
Everything posted by apeisa
-
I have been waiting this day too long, custom tailored avatar from WillyC! And then he makes two... but wait. That second one is real and something my wife posted on Facebook just few days ago..?
-
I think our modules will be friends <3
-
nice to hear. Mine will be pretty simple: introduces groups, you can tie members directly into groups or tie role into group (and all users with tied role will belong to group). Then page based access for groups viewing and/or editing page branches.
-
I might have something baking regarding user groups and simplified access management.
-
Wanze: my beard actually grows pretty fast, but it has bald spots all over the place. But I still don't shave that often
-
Well.. My photo was about 10 years old already, so changed to more recent one. I try to grow beard too, but for some reason my beard has been pretty same since teenage... promising start, but nothing to be proud at this age.
-
I think there are some reason for not being able to restrict guests from home.. maybe PW is just polite for guests? One way to do that kind of check is in template code, and best way there is in prependTemplate (if you use pretty recent version of PW). Just uncomment this line: https://github.com/ryancramerdesign/ProcessWire/blob/master/site-default/config.php#L58 and add file called _init.php into your templates folder. Add this snippet there: <?php if ( ! $user->isLoggedIn()) { echo "Sorry dude"; die(); // or redirect to somewhere and check that "not available page" on that if above }
-
First one is nicer to look at (in my opinion). I don't believe there is real difference.
-
Are you sure about that? I think it is very rare for any js to actually be required in head (and css definitely not required). So I would probably inject that JS just in processPayment() method of your module. Something like this: $out = "<script>alert("hello there, this js need to be before the actual payment form")</script>"; $out .= "<form name='processOrSomething'>...</form>";
-
Is it... can it be.. our Diogo?
-
Glad you figured out. I don't think the solution is good though: that would break the caching for all - and make site loading generally pretty sluggish. I would just live with it (or change mobile broadband).
-
ModRewrite (or similar) is indeed a requirement. If I remember correctly some people on here forums have posted help on how to get PW running on iis.
-
What is the best practice to change the home page?
apeisa replied to Robert Zelník's topic in General Support
I think that is pretty much visuals and design (ie. sometimes "home" is not on main menu, but as a clickable logo above the menu). Mapping pagetree with url structure makes a lot of sense in my opinion. Not a big deal though -
I would probably go with events under player page. There are merits for both: if you have one "events" root, and then relation to each player, then you get less pages when same event is for multiple players. But I think that is less flexible way: I would imagine scenarios, where you want to edit and "personalize" some events, even when you add them to all players. I don't think scalability will be an issue here. You can easily handle thousands of events for each person.
-
How should we maintain module translations?
-
nope, clearfix would be better.
-
merged this and pagination from arjen. thanks guys!
-
haha. I do get them. it's other discussion how fast I forget about them... Just looked the pr and it seems to be safe merge.
-
Few things: you probably don't need "All players" page at all - why not use "Players" page for that information? So what you need is way to update one player or multiple player with same task. One thing to note: - I would add one more level under player. Let's call that template "event". Event could be something like "8.9.2013 14:50 player accomplished task 3". Which would go under certain player(s). That way you can have history how and when player has done something. Those events doesn't have to be tied to tasks, this way you get freedom to add custom events, like "Tom did great job helping others today. +5exp". These events would always add or substract to players stats.
-
Superexcited about ProFields!
-
I think built basic structure first - then it is easy to add "power features" like "give +3 exp for all pupils" etc. You don't need angular to do this (it would be neat though). There are lots of options. But you have much better changes to actually start getting this real if you build something simple now and add features as you go. Trying to achieve everything from beginning hits the wall hard I love the idea and I am happy to help you when you get into more specific questions. I wish all the teachers would code their tools!
-
Yep, that is. Probably some type sniffing and in case of object you can safely assume it will be multilang field. I have done much with those in API level, but I know soma is the man with those (like many others). Probably pretty simple, I think the number is language id, and without number it is default lang.
-
Tested it little bit more - it probably has something to do with the data structure I am trying to import: { "pages": [ { "name": "basicpage", "parent_name": "", "page_template": "basic-page", "status": 1, "sort": 7, "data": { "title": { "data": "basicpage", "data1029": "basicpage" }, "headline": "", "summary": "", "body": { "data": "", "data1029": "" }, "sidebar": "", "images": [], "related": [], "repeater": { "data": "", "count": 0, "parent_id": 1052 }, "commentsSpecial": [ { "id": 74, "status": 1, "data": "Hi there!", "cite": "Antsa", "email": "xxxx.xxxxx@xxxxxx.com", "created": 1370721469, "created_users_id": 41, "ip": "91.156.11.190", "user_agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36", "website": "" } ], "thumbnail": [] } }, { "name": "templates", "parent_name": "basicpage/", "page_template": "basic-page", "status": 1, "sort": 0, "data": { "title": { "data": "", "data1029": "" }, "headline": "", "summary": "", "body": { "data": "", "data1029": "" }, "sidebar": "", "images": [], "related": [], "repeater": { "data": "", "count": 0, "parent_id": 1059 }, "commentsSpecial": [], "thumbnail": [] } } ], "templates": [ { "template": "basic-page", "data": { "useRoles": 0, "childrenTemplatesID": 0, "sortfield": "", "noChildren": "", "noParents": "", "childTemplates": [], "parentTemplates": [], "allowPageNum": 0, "allowChangeUser": 0, "redirectLogin": 0, "urlSegments": 0, "https": 0, "slashUrls": 1, "altFilename": "", "guestSearchable": 0, "pageClass": "", "pageLabelField": "", "noGlobal": 0, "noMove": 0, "noTrash": 0, "noSettings": 0, "noChangeTemplate": 0, "noUnpublish": 0, "nameContentTab": 0, "noCacheGetVars": "", "noCachePostVars": "", "useCacheForUsers": 0, "cacheExpire": 0, "cacheExpirePages": [], "label": "", "tags": "" } } ], "fields": [ { "name": "title", "label": "Title", "description": null, "template": "basic-page", "flags": 13, "type": "FieldtypePageTitleLanguage" }, { "name": "headline", "label": "Headline", "description": "Use this instead of the Title if a longer headline is needed than what you want to appear in navigation.", "template": "basic-page", "flags": 0, "type": "FieldtypeText" }, { "name": "summary", "label": "Summary", "description": null, "template": "basic-page", "flags": 1, "type": "FieldtypeTextarea" }, { "name": "body", "label": "Body", "description": null, "template": "basic-page", "flags": 0, "type": "FieldtypeTextareaLanguage" }, { "name": "sidebar", "label": "Sidebar", "description": null, "template": "basic-page", "flags": 0, "type": "FieldtypeTextarea" }, { "name": "images", "label": "Images", "description": null, "template": "basic-page", "flags": 0, "type": "FieldtypeImage" }, { "name": "related", "label": "Related pages", "description": null, "template": "basic-page", "flags": 0, "type": "FieldtypePage" }, { "name": "repeater", "label": "Repeater", "description": null, "template": "basic-page", "flags": 0, "type": "FieldtypeRepeater" }, { "name": "commentsSpecial", "label": "Comments", "description": null, "template": "basic-page", "flags": 0, "type": "FieldtypeComments" }, { "name": "thumbnail", "label": "Image", "description": null, "template": "basic-page", "flags": 0, "type": "FieldtypeImage" } ] } If I export/import structure only, it works great!
-
No worries. I think installation problems are fine on "getting started" too.
-
Vick, please no double posting - it doesn't help you get answers more quickly, just annoys people. I removed the other topic you created in general support.