Jump to content

Frank Vèssia

Members
  • Posts

    585
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Frank Vèssia

  1. mmm..I had other 3 fields, one text field , one integer field and one textarea field...no more. I can add that my date field had the european input and output setting (d-m-Y) but i don't think can be this the reason..i will check if i can found more information about that...
  2. Yes, removing the autopopulate option everything was good
  3. Ryan, with "they increase" i mean every time i try to delete one repeater block, i save and now they are 2, delete these 2, save and again they are 3 and so on...
  4. mmm, i have some problem using this field via api.. <? $c=$pages->get("name=$camp"); $c->setOutputFormatting(false); $repeater = $fields->get('stats'); $item = $repeater->type->getBlankRepeaterPage($c, $repeater); $item->day = strtotime(date("d-m-Y")); $item->counter = 1; $item->iplist = $userip."|"; $c->stats->add($item); $c->save(); ?> What i have is a strange behavior in admin. The field looks empty and if I click on "add item" it shows me the fields filled with the data i saved via api, but accessing the field via api it is empty...
  5. Awesome field, i waited months to have something like that, and the result is over my imagination. I found a bug...if you use a date field inside a repeater with the option to automatically fill with today date, this will create empty data inside repeater and if i try to delete them, they increase....removing that option on the date field it works good with no problems.
  6. The error is still there after the installation, but I cannot notice any strange behavior in pw...I will ignore...
  7. Hey there, i love this template but i've found a bug when you are in advanced mode...look at the screenshot.
  8. Hey Ryan i got this error while install Languages Support - Fields. I'm using latest commit. [b]Warning[/b]: Invalid argument supplied for foreach() in [b]/public_html/wire/modules/LanguageSupport/LanguageSupportFields.module[/b] on line [b]82[/b]
  9. PW + Bootstrap, perfect couple, used for tens of my websites...i cannot live without them, thanks
  10. I cannot control pagination with role access because those pages are statistics pages and the template is unique. Every user can submit a link, this link will be a pw page. If you are Standard user you cannot see all links submitted (generated pages) because your account is limited in how many links you can see, it's not a question of permissions. So when i render these pages in a list format i want to limit the total pages the pagination calculate, using "limit=10" in selector don't affect the total pages of course. Sorry, i'll try to make a simple example: 100 pages, same template. Using a selector like "limit=10" will return to me 10 pages. I want to show only the first 5 pages to a particular user because that user can see only 50 pages. Something like using first "limit=50" and than again "limit=10" for getting the pagination.... :-\
  11. I have two roles in my website, "standard" and "premium". Standard users can access only to a certain numbers of "reports" rows in a table format, paginated, Premium users can access all report. I want to block the pagination and show only the page numbers for each type of users, now pagination refer to the total pages of a selector. Is there a way to do this?
  12. I have a publish date field in this format Y-m-d H:i:s Now i want to select pages published today (of course no matter the hour) I'm trying with $today = strtotime(date("Y-m-d")); $items = $pages->find("template=linkmain,publishdate*=$today,sort=-userid"); I get all pages as result, also pages with dirrefent day date...i tried also ^= with the same result...
  13. You have to remove also the default body texts in some pages...
  14. already tried using string.... I guess the problem is the user. If i use this function with current user ($user) it works...
  15. I cannot understand why i can't get role of user. $userid = 40; $role = $roles->get("premium"); $uid = (int) $userid; $u = $users->get($uid); if ($u->hasRole($role)){ ...stuff } i get a fatal error: Method NullPage::hasRole does not exist or is not callable in this context
  16. I really like the design, great job 8)
  17. I've been there ;D It's funny to see a website of a place near home in a growing up community...More european webdesigners are PW addicted Nice job btw...
  18. Thanks Apeisa. It works fine...i didn't know about the shuffle method.
  19. i'm getting this strange behaviour with image getRandom I want to display all images of one field randomly. So i first count my total images and than use getRandom. <?php $tot = count($gallery->images); $gallery = $gallery->images->getRandom($tot); foreach ($gallery as $image){ ... } I always get the same order but if i change the $tot variable with a smaller value (smaller than the total count) it works...
×
×
  • Create New...