Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. don't know really. does your php setting allow allow_url_fopen? or is save mode on? in case this kind of import from external url wouldn't work.
  2. could it be that jpg isn't entered in the image field setting? are you importing them from external website or url?
  3. it should be "". '' only enters strings "" is different, it parses variables and makes \n newlines foreach ($autori as $autore){ $lineautori .= $autore."\n"; }
  4. just checked: you should be able to compare $user->pass->matches('string'); returns true if it matches.
  5. sorry I confused something... I meant decrypted, but that's false anyway. have a look at FieldtypePassword.module ...
  6. Have you tried $user->pass for getting the current passwort and compare? $user->pass returns encrypted password.
  7. I spotted something strange. I created a custom admin page and have a Process module to render certain pages in a admin data table. So far it works, but for the image on those pages I got problems. $p->image->url(); wouldn't work, even though it is a single image inputfield (1) , I have to use $p->image->first()->url to get it working. Is this a bug? Module code: <?php class ProcessBilder extends Process { protected $selLimit = 'template=bild, sort=-created, limit=50, include=all'; protected $selAll = 'template=bild, sort=-created, include=all'; public static function getModuleInfo() { return array( 'title' => 'Bilder', 'summary' => 'Page to manage Galerie Images', 'version' => 001, ); } public function ___execute() { $out = ''; $table = $this->modules->get('MarkupAdminDataTable'); $table->setSortable(true); $table->setEncodeEntities(false); $header = array('Bild','Title','Status','created','usermodified'); $table->headerRow($header); $rows = array(); $pageArr = $this->pages->get('/bilder/')->find($this->selLimit); foreach($pageArr as $p){ $editUrl = "{$this->config->urls->admin}page/edit/?id={$p->id}"; $img = $p->image->first()->size(0,100)->url(); // $p->image->url() throws error... $rows[] = "<img src=".$img." />"; $rows[] = $p->editable() ? "<a href='{$editUrl}'>".$p->get('title|name|id').'</a>' : $p->get('title|name|id'); $rows[] = $p->status; $rows[] = date('Y.m.d H:i:s',$p->created); $rows[] = $p->modifiedUser->name; $table->row($rows); $rows = null; } $button = $this->modules->get('InputfieldButton'); $button->value = 'Create New'; $button->href = "{$this->config->urls->admin}page/add/?parent_id=1001"; $button->class .= ' align_right'; $pager = $this->getTotal() > count($pageArr) ? $pageArr->renderPager() : ''; $out = '<p style="overflow:hidden">' . $button->render() . '</p>' . $pager . $table->render() . $pager . '<p style="overflow:hidden">' . $button->render() . '</p>'; return $out; }
  8. Just testing this cache for first time. It doesn't really save any chache files for me so far except for 1 case where I edited a summary of a page and there was a .cache file saved. Folders are generated but no .cache file. What's going on? ... just noticed that I wasn't really paying attention that it has option "for guest users" ... ... now it's flowing.
  9. Just brillant! Thanks for integrating this awesome options ;D
  10. hehe sorry for keeping you away from sleeping... ;D we all suffer on the same
  11. did you somehow change header html.. I think it may be hidden in the default theme when loaded in modal window... so renaming things will cause it to not get hidden. This problem doesn't occur on my theme and I did change nothing on the html.
  12. experience same issue as with bootstrap theme...
  13. just noticed one big problem...
  14. Just cleaned and checked in on github. Updated first post too. https://github.com/somatonic/ModulesSectionCollapse Makes things alot easier. Thanks
  15. Thanks Ryan, glad you like it! Just wanted to mention, it's on github now: https://github.com/somatonic/HelperFieldLinks
  16. just tested and it work. thanks! 8)
  17. hey slkwrm, glad you're using my theme. I can't reproduce the drag position, I'm using latest chrome too. Make sure you have latest and clear cache. Do you have the vertical scrollbar area visible even if page isn't scrolling?
  18. I can't deinstall the module, how can I fix that? Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/PagesType.php on line 71 Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/PagesType.php on line 146 TemplateFile: Unable to delete pages of type '' #0 [internal function]: PagesType->___delete(Object(NullPage)) #1 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #2 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('delete', Array) #3 [internal function]: Wire->__call('delete', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/site/modules/AdminBar/AdminBar.module(318): Permissions->delete(Object(NullPage)) #5 [internal function]: AdminBar->___uninstall() #6 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #7 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('uninstall', Array) #8 [internal function]: Wire->__call('uninstall', Array) #9 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Modules.php(455): AdminBar->uninstall() #10 [internal function]: Modules->___uninstall('AdminBar') #11 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #12 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('uninstall', Array) #13 [internal function]: Wire->__call('uninstall', Array) #14 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/modules/Process/ProcessModule/ProcessModule.module(241): Modules->uninstall('AdminBar') #15 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/modules/Process/ProcessModule/ProcessModule.module(184): ProcessModule->renderEdit('AdminBar', Array) #16 [internal function]: ProcessModule->___executeEdit() #17 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #18 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('executeEdit', Array) #19 [internal function]: Wire->__call('executeEdit', Array) #20 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/ProcessController.php(194): ProcessModule->executeEdit() #21 [internal function]: ProcessController->___execute() #22 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #23 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('execute', Array) #24 [internal function]: Wire->__call('execute', Array) #25 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/admin.php(45): ProcessController->execute() #26 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/site/templates-admin/controller.php(13): require('/Applications/X...') #27 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/site/templates/admin.php(13): require('/Applications/X...') #28 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/TemplateFile.php(88): require('/Applications/X...') #29 [internal function]: TemplateFile->___render() #30 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #31 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('render', Array) #32 [internal function]: Wire->__call('render', Array) #33 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/modules/PageRender.module(194): TemplateFile->render() #34 [internal function]: PageRender->___renderPage(Object(HookEvent)) #35 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #36 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('renderPage', Array) #37 [internal function]: Wire->__call('renderPage', Array) #38 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(289): PageRender->renderPage(Object(HookEvent)) #39 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('render', Array) #40 [internal function]: Wire->__call('render', Array) #41 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/modules/Process/ProcessPageView.module(73): Page->render() #42 [internal function]: ProcessPageView->___execute() #43 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(267): call_user_func_array(Array, Array) #44 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/wire/core/Wire.php(229): Wire->runHooks('execute', Array) #45 [internal function]: Wire->__call('execute', Array) #46 /Applications/XAMPP/xamppfiles/htdocs/pw2.ch/index.php(181): ProcessPageView->execute() #47 {main}
  19. Just checked in on github: https://github.com/somatonic/darknight-admin-theme-pw2
  20. Just checked in on github, edited first post. Thanks. https://github.com/somatonic/FormSaveReminder
  21. I only see edit link from template... Ah I see. But I can't uninstall admin bar: Unable to delete pages of type '' !
  22. I tested this, and looks good. BUT I can't see the bar when I log in as a custom user, although I see the edit button I can't see the admin bar. Not guud ;D
  23. Nice and clean theme, looks good! Thanks for sharing.
  24. I experienced something strange when playing with users,roles,permission. I created extra inputfield page reference in user template to select pages. If I select a page that is unpublished it doesn't get saved, although it says it changed. Screencast
  25. Thanks for the suggestions, but I didn't even bother to check what changes, fact was it changed (though only if save button pressed) But I've been able to come up with a simple solution: I needed to somehow make the check not getting attached when pressing save. So after unsuccessfully trying to set the callback to null or anything, I tried using a flag, so when pressing button, it would be set to false and thus the tinymce check ed.isDirty would fail to continue... finally. I just released the first initial version here: http://processwire.com/talk/index.php/topic,505.0.html Thanks for the support.
×
×
  • Create New...