Jump to content

achabany

Members
  • Posts

    13
  • Joined

  • Last visited

  • Days Won

    1

achabany last won the day on February 3 2012

achabany had the most liked content!

About achabany

  • Birthday 04/14/1982

Contact Methods

  • Website URL
    http://www.livecomb.com

Profile Information

  • Gender
    Male
  • Location
    Morocco
  • Interests
    Web developement and user experience.

achabany's Achievements

Jr. Member

Jr. Member (3/6)

2

Reputation

  1. Here is my hack to do such thing easily : I edited the ProcessPageEditImageSelect.module to add two protected vars : $thumbWidth and $thumbHeight and i change the ___execute() function like so : foreach($images as $image) { //$width = $image->width(); $thumb = $image->size($this->thumbWidth, $this->thumbHeight); if($width > $this->maxImageWidth) $width = $this->maxImageWidth; $out .= "\n\t<li><a href='./edit?file={$image->basename}&modal=1&id={$this->page->id}&winwidth=$winwidth'>" . "<img src='{$thumb->url}' width='{$this->thumbWidth}' alt=\"{$image->description}\" /></a></li>"; } i used the size() function to change the image width and height, to create a thumbnail and instead of using $image->url i use $thumb-url Just after that, i change my css to make <li> element float in order to get a grid of elements : #select_images li { float: left; margin: 0 5px 5px 0; } see the attached image for an example of use. There is just a one problem, if the picture is smaller than the thumbnail width and height, the size function will make a pixelazed version wich isn't good, in such case, the function have to add a blank space to make a correct thumb.
  2. Thank you guys for your replies, i will correct all that at once and i will upload a new version soon. @ryan : can you share with us the processwire vector logo, i want to put a clean png logo with the theme instead of the gif version.
  3. Hello nikola, i don't know why you get this, wich browser do you use ? (the effect is simply a css opacity directive...)
  4. Thank you too for this great application... I am happy to participate to this project
  5. I am sorry for the attachment, you can download it now
  6. You can change the minimal version to check in the template-admin main.js file in line 59 : replace 8 by 7 and it will be ok, i have tried some tasks and it is still working... // we don't even want to go there if($.browser.msie && $.browser.version < 8) { $("#content .container").html("<h2>ProcessWire does not support IE7 and below at this time. Please try again with a newer browser.</h2>").show(); }
  7. I think the problem comes from the compatibility mode, because the user agent version returned in this mode is IE7, to read more http://msdn.microsof...9.aspx#VerToken
  8. Try to deactivate the quirks mode and check if you are not in IE7 mode, press F12 key to launch developer tools tab
  9. Here my first processwire admin theme, it's look and feel based on the processwire theme, with a custom login form and simple blue UI. To install just unzip the archive content and put to your default template-admin folder. minimalist_blue.zip
  10. Hello, bellow an AdminBar clone with just three links to : edit page action, add child action and logout action. All of this links open in a new tab. Put the folder AdminLinks in the /site/modules folder and install it from the admin -> setup -> modules section. Hope this help AdminLinks.zip
  11. Yes, it should be like the setup sub pages config Here is a progress for the french language files, i suggest that we add a forum section called "translation" with topics for each language so we can share and use the language packs easily. https://rapidshare.c...33721/fr_FR.zip PS : you have to change the folder structure in the json files to the default, because i have change it to sweet my needs.
  12. Hello, i am new to the forum, first i want to thank you ryan and all of you guys for this great app i have just found an issue with the translation system : the breadcrumb for the "users", "roles" and "permissions" will turn you every time to the access page wich is not correct. The problem come from this pageType module : public function init() { $this->config->scripts->add($this->config->urls->ProcessPageType . 'ProcessPageType.js'); $this->config->styles->add($this->config->urls->ProcessPageType . 'ProcessPageType.css'); $this->fuel->breadcrumbs->add(new Breadcrumb('../', $this->page->get('title|name'))); $this->pages = $this->fuel($this->page->name); if(is_null($this->pages)) $this->pages = $this->fuel('pages'); if($this->pages instanceof PagesType) $this->template = $this->pages->getTemplate(); parent::init(); } I removed this line in the init function : $this->fuel->breadcrumbs->add(new Breadcrumb('../', $this->page->get('title|name'))); And I have placed this line in the ___executeEdit() and ___executeAdd() functions : $this->fuel->breadcrumbs->add(new Breadcrumb('../', $this->page->get('title|name'))); Hope this help
×
×
  • Create New...