MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Jul 05, 2008, 11:02 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Read
Frequently Asked Questions (FAQ)
MODx Community Forums
»
Development & Coding
»
Module, Plugin & Snippet Creation and Modification
(Moderators:
zi
,
PaulGregory
)
»
DirectResize : Plugin to resize your images
Pages: [
1
]
2
3
Go Down
« Previous topic
Next topic »
Print
Author
Topic: DirectResize : Plugin to resize your images (Read 4115 times)
0 Members and 1 Guest are viewing this topic.
Perrine
Moderators
Posts: 1,676
DirectResize : Plugin to resize your images
«
on:
Apr 12, 2007, 07:42 AM »
Before starting this thread, I wand to say that I'm not the developer of this wonderful plugin but I wanted to help
Arnaud
in translating his plugin (maybe I shouldn't... let's see how I write english !
)
DirectResize is a plugin to resize your images. It also generates the lightbox link if necessary.
You just have to upload your image, add it in a document or a chunck (or anything else you want to display) and DirectResize will generate a thumbnail for the image.
Try this and if you have any question, we will help !
DirectResize-0.5.zip
(5.81 KB - downloaded 327 times.)
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45 || Debian 4.0 (Etch)
krypto
Jr. Member
Posts: 36
Re: DirectResize : Plugin to resize your images
«
Reply #1 on:
Aug 29, 2007, 12:42 PM »
Salut!
I am trying to use this plugin but I cannot get the lightbox effects to work.
The instructions say to put lightbox in your template but I don't know if I am doing it correctly here is my call in the head of my template:
<script type="text/javascript" src="assets/snippets/maxigallery/lightboxv2/js/prototype.js"></script>
<script type="text/javascript" src="assets/snippets/maxigallery/lightboxv2/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="assets/snippets/maxigallery/lightboxv2/js/lightbox.js"></script>
The plugin generates the thumbnail but it does not seem to be using lightboxv2 to display the full image.
Any help is appreciated
Logged
Perrine
Moderators
Posts: 1,676
Re: DirectResize : Plugin to resize your images
«
Reply #2 on:
Aug 29, 2007, 02:16 PM »
Hi Krypto,
Li 9 of the plugin, do you have $lightbox set to 1 ? If so, you have to add a class="lightbox" to img tag in order the link is built.
If you set $lightbox to 2, DirectResize will build the link whatever class you have.
If you set $lightbox to 0, DirectResize will not build the link.
Also, lightbox link is built only if the image you want to link is bigger than the thumbnail.
I personnaly use
slimbox
with this call in head :
Code:
<script type="text/javascript" src="assets/js/mootools.js"></script>
<script type="text/javascript" src="assets/js/slimbox/js/slimbox.js"></script>
<link rel="stylesheet" href="assets/js/slimbox/css/slimbox.css" type="text/css" media="screen" />
Hope that helps
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45 || Debian 4.0 (Etch)
Perrine
Moderators
Posts: 1,676
Re: DirectResize : Plugin to resize your images
«
Reply #3 on:
Aug 29, 2007, 02:24 PM »
krypto : I guess this post will help you :
http://modxcms.com/forums/index.php/topic,17751.msg111505.html#msg111505
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45 || Debian 4.0 (Etch)
krypto
Jr. Member
Posts: 36
Re: DirectResize : Plugin to resize your images
«
Reply #4 on:
Aug 29, 2007, 04:29 PM »
Hi Perrine~
I am trying but still not having any success.
I have tried the slimbox method you posted, but I get the same result. A thumbnail is generated on the page but when I click on the thumbnail it opens a larger image but without the slimbox javascript. Do I need to set a different css class type for slimbox.
I followed the steps outlined here:
http://netambition.dynalias.org/dr/3.html
and in tools->configuration set up a css selector for tinyMCE. Do I need a different selector for the slimbox method?
Thanks for your reply
Logged
Perrine
Moderators
Posts: 1,676
Re: DirectResize : Plugin to resize your images
«
Reply #5 on:
Aug 29, 2007, 04:38 PM »
The only thing you need to do is add class="lightbox" to your <img />
Do you have a url where I could see this ?
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45 || Debian 4.0 (Etch)
alphanono
Jr. Member
Posts: 43
Re: DirectResize : Plugin to resize your images
«
Reply #6 on:
Aug 29, 2007, 04:45 PM »
Hello,
For using Lightbox, you muste have these 4 lignes :
<script src="....../prototype.js" type="text/javascript"></script>
<script src="....../scriptaculous.js" type="text/javascript"></script>
<script src="....../lightbox.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="....../lightbox.css" />
and be sure that the files are at the right place.
(Krypto, you have say 'Salut', are you french ?)
Logged
plugin directResize
http://modxcms.com/forums/index.php/topic,12598.0.html
http://netambition.dynalias.org/dr
Metaller
Committed to MODx
Posts: 877
Re: DirectResize : Plugin to resize your images
«
Reply #7 on:
Aug 29, 2007, 04:55 PM »
Hello.
Some time im working on new version of this plugin. It based on ver 0.7 by alphanono but has many improvements and new features like:
* all options removed to config file (like in ditto or wayfinder), no need to change plugin in DB
* tempale system with using Chunkie class and PHx class allow to use any gallery script to enlarge picture (highslide, slimbox, slidebox...) not only lightbox
* using Thumbnail and Watermark Class for resizing. Its allow to watermark thumbs and big images (all parameters like in MG, thanks doze)
* new resizing method - crop image
* when we edit document with images wich will resized by plugin in WYSIWYG editor in backend, plugin replace big images with they thumbs to reduce traffic. But we can also resize this thumb and thumb whith new sizes and with lightbox link on original image (if needed) will be created next time.
I cant explain all coming features with my knowlege of english, but when plugin is released, i hope you like it.
«
Last Edit: Aug 29, 2007, 05:02 PM by Metaller
»
Logged
[PLUGIN] DirectResize - as Maxigallery but for single images ::
Download
::
Support
::
Old topic
Maxigallery для одиночных изображений - русскоязычный топик
[SNIPPET] WriteWord - Generating image from the text with any font. Caching, templating and other options ::
Download
::
Support
Текст в картинку, генерация графической надписи с заданным шрифтом, шаблонами, кешированием и рядом дополнительных параметров - русскоязычный топик
[FAQ] Проблема с браузером картинок TinyMCE / FCKeditor
krypto
Jr. Member
Posts: 36
Re: DirectResize : Plugin to resize your images
«
Reply #8 on:
Aug 29, 2007, 05:19 PM »
Right now I am testing this plugin out locally, I will put it up somewhere online tomorrow because I still can't get the proper result and maybe we can work from there. I am pretty sure all my script and css calls are pointing to the right place...
Just a few more pieces of information. I have uploaded the full size images to assets/images/Nekretnine which is the same as $lien_base
I have another folder assets/images/cache which is the same as $path
(No alpha I am not French, I studied it in school for many years and can still understand most of it when I read it, and love to listen to it spoken. If I were to try to speak [or type], ca serait une tragedie
)
Logged
Perrine
Moderators
Posts: 1,676
Re: DirectResize : Plugin to resize your images
«
Reply #9 on:
Aug 30, 2007, 01:24 AM »
If you can click on thumbnail, that means that DirectResize built the link and if you have $lightbox to 1 or 2, the link should be opened with slimbox or lightbox.
The only thing I see now is either a conflit in .js, or the .js part is not found.
If you use Firefox, you should install Firebug to get all js errors and be able to see what's wrong
@Metaller : Glad to see you're working on it. Tell us when it's ready !
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45 || Debian 4.0 (Etch)
krypto
Jr. Member
Posts: 36
Re: DirectResize : Plugin to resize your images
«
Reply #10 on:
Aug 30, 2007, 01:15 PM »
You were right Perrine, I added Firebug and it comes up with an error.
In slimbox.js on line 244:
fileLoadingImage is not defined
I don't know if you know what that means or what can be done to fix it.
I tried it online and the same thing happens, you can see it here:
http://shop.server-019.com/~drvolik/
Logged
Perrine
Moderators
Posts: 1,676
Re: DirectResize : Plugin to resize your images
«
Reply #11 on:
Aug 30, 2007, 05:01 PM »
I don't konw where this error comes from. Are you sur you downloaded the good version of Mootools ?
I give you here the version of
Mootools
and
Slimbox
I use.
Hope this helps !
«
Last Edit: Aug 31, 2007, 10:11 AM by Perrine
»
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45 || Debian 4.0 (Etch)
krypto
Jr. Member
Posts: 36
Re: DirectResize : Plugin to resize your images
«
Reply #12 on:
Aug 31, 2007, 10:04 AM »
Hi Perrine~
Your link for slimbox seems to be wrong, but it does not matter. I went to the slimbox site and downloaded latest slimbox.js and mootools.js and did everything as per the instructions on the page but I still have the same problem.
I don't know why I cannot get the js to work on my pages which is too bad because I could really use this and it seems to work so well on all the example pages.
Thank you for all your effort!
Logged
Perrine
Moderators
Posts: 1,676
Re: DirectResize : Plugin to resize your images
«
Reply #13 on:
Aug 31, 2007, 10:13 AM »
Oops, sorry, was not a slimbox.js but slimbox.zip ! Try again... we never know ^^ (I've changed the link above)
I guess it can be a problem with the newest version of Mootools or Slimbox... or maybe you didn't get the good mootools package ?
I don't know what to say if it's not that :/
Logged
Nouveau sur MODx ?
||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...
Atelier d'architecture Gambino
Déco'In
: l'
idée déco
qu'il vous faut
HistWar :
jeu de stratégie
napoléonien
Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45 || Debian 4.0 (Etch)
Nitrok
Jr. Member
Posts: 6
Re: DirectResize : Plugin to resize your images
«
Reply #14 on:
Sep 11, 2007, 06:12 PM »
Hi!
I just installed MODx and i love it.
Now i tried to install this DirectResize plugin and did everything as install.txt told me to. Still when i insert picture on document and test the page i don't see any changes. All images i have inserted are in their original sizes. Seems that plugin hasn't done anything... And when i look folders through my ftpclient there are no thumbnail files
So any idea where would the problem be?
Edit: I feel so dumb now. I had to resize it myself. Dunno why i thought it would resize image automatically
«
Last Edit: Sep 11, 2007, 06:50 PM by Nitrok
»
Logged
Pages: [
1
]
2
3
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder (and DropMenu)
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı