Sep 07, 2008, 02:07 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: Support/Comments for DirectResize  (Read 5309 times)
0 Members and 1 Guest are viewing this topic.
Metaller
Committed to MODx
*****
Posts: 940



« on: Jan 10, 2008, 10:58 AM »

This is an auto-generated support/comment thread for DirectResize.

Use this forum to post any comments about this addition or any questions you have regarding its use.

Brief Description:
Its like Maxigallery but for single images.
Logged

Metaller
Committed to MODx
*****
Posts: 940



« Reply #1 on: Jan 12, 2008, 02:26 AM »

Sorry, i forgot to add empty drgalleries folder to archive. If you have no this folder, create it as subfolder in assets.
Logged

worchyld
Full Member
***
Posts: 141

I love MODx!


« Reply #2 on: Feb 11, 2008, 07:09 AM »

Is it possible to combine DirectResize with Template variables?  If so, please give an example of how to do this.
Logged
endyzer
Jr. Member
*
Posts: 35


« Reply #3 on: Feb 11, 2008, 08:10 AM »

Code:
[+phx:if=`[*docthumbnail*]`:is=``:then=``:else=`<img src="[*docthumbnail*]"  title="[+phx:if=`[*docthumbdescr*]:is=``:then=`[*menutitle*]`:else=`[*docthumbdescr*]`+]" alt="[+phx:if=`[*docthumbdescr*]:is=``:then=`[*menutitle*]`:else=`[*docthumbdescr*]`+]" align="left" width="180" class="drlightbox">`+]

docthumbnail is a TV with type image.
Image Widget is not used (thats why I insert "<img ....")
Insert the code above in a chunk and use it in your template.
« Last Edit: Feb 11, 2008, 08:12 AM by endyzer » Logged
worchyld
Full Member
***
Posts: 141

I love MODx!


« Reply #4 on: Feb 11, 2008, 09:18 AM »

Thank you so much for this -- I actually got the thumbnailing to work with your plug-in!

Code:
[+phx:if=`[+tv_vehicle_picture+]`:isnot=``:then=`<img src="[+tv_vehicle_picture+]" width="100" style="border:none;" />`+]

Quick question -- how do you change the border colour produced by the plug-in? It is a dark grey colour.
« Last Edit: Feb 11, 2008, 09:24 AM by worchyld » Logged
Metaller
Committed to MODx
*****
Posts: 940



« Reply #5 on: Feb 11, 2008, 09:34 AM »

Look for *.css in the assets\plugins\directresize\libs\your_config_name
Logged

worchyld
Full Member
***
Posts: 141

I love MODx!


« Reply #6 on: Feb 12, 2008, 04:32 AM »

Okay - thanks so much!
Logged
endyzer
Jr. Member
*
Posts: 35


« Reply #7 on: Feb 12, 2008, 03:28 PM »

I figured out that the Plugin havin problems with http://www.domain.de and http://domain.de
First one - no problems
Second (without www: the plugin does not create/show thumbs or the lightbox/slimbox/... link
Logged
Metaller
Committed to MODx
*****
Posts: 940



« Reply #8 on: Feb 13, 2008, 12:53 AM »

I need more information about this problem. domain.de is the domain where plugin installed or where located images processed by plugin.
Logged

worchyld
Full Member
***
Posts: 141

I love MODx!


« Reply #9 on: Feb 14, 2008, 07:09 AM »

I got the thumbnail working within a ditto template - but it totally ignores my Alt tag - and it puts in HTML code that is sometimes empty and so invalidates my page.

I'd like to change the HTML - I can do this within the config file - but the documentation seems to imply you can do it via chunks by setting up your own template.

Quote
Parameters
$tpl = Chunk name (defaulted to assets/plugins/ directresize/templates/lightboxv2.html

Placeholders
[+dr.alt+]

But I am confused as to how to do this - Am I right in thinking I create my own config file - or is it done via the ditto call? 
Logged
Metaller
Committed to MODx
*****
Posts: 940



« Reply #10 on: Feb 14, 2008, 02:05 PM »

It is incorrect that you can use chunk name in $tpl parameter. In last version of plugin $tpl is html code  with own placeholders, not chunk or file name - only html code. All configuration is in config file in direct resize folder.
Logged

Pete
Full Member
***
Posts: 105


« Reply #11 on: Mar 02, 2008, 02:05 PM »

Cheers for this plugin - it's really great Smiley

My only problem so far is that images with .jpeg extension (not .jpg, those are fine) don't seem to be parsed by the thumbnailer.

Changing the extension to .jpg and re-uploading them doesn't seem to work either.

Any ideas?

EDIT: Seems to be only pictures with either an ampersand (&) or the word "and" in the title. Is some part of the code trying to parse these bits as literal PHP?
« Last Edit: Mar 02, 2008, 02:13 PM by Pete » Logged
AntonL
Full Member
***
Posts: 112


« Reply #12 on: Mar 24, 2008, 08:32 PM »

I noticed that the thumbnail images and the "wysiwyg..." images stay in the drgalleries folder (for each doc) even after they are removed from the doc in the RTE. This means that my client will end up with hundreds or even 1000s of redundant image files in the drgalleries folders over time as they keep editing their docs. Is there any way to delete the removed images automatically?

Thanks,
Anton
Logged
Metaller
Committed to MODx
*****
Posts: 940



« Reply #13 on: Mar 25, 2008, 03:32 AM »

@AntonL Just look in readme for &clearCache option in plugin configuration.
Logged

Jako
Jr. Member
*
Posts: 37


« Reply #14 on: Mar 25, 2008, 06:53 AM »

You have to put this anywhere on the download page and maybe it is not a good idea to make the example using a 'semi-commercial' script:

Quote
Redistribution: You are allowed to distribute Highslide JS with non-commercial packages given that you a) emphasize on your download page that Highslide JS is not free for commercial use, and b) provide a link back to this web page on your download page.
Logged
Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!