Announcement: New plug-in SuperSizer

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

opawaldburger wrote: Hi Jeremy!
.
.
.
Where's the mistake?
Greez, Opa
oh it's on both of us here.. :D the last version in the post here took care of that... I should have published that new version... :D it is done.. you should not see the error any more with it...

Cheers -Jeremy
User avatar
opawaldburger
Forum Members
Forum Members
Posts: 94
Joined: Tue Nov 04, 2008 2:10 pm

Re: Announcement: New plug-in SuperSizer

Post by opawaldburger »

Hi Jeremy!
.
.
.
Where's the mistake?
Greez, Opa
oh it's on both of us here..  the last version in the post here took care of that... I should have published that new version...  it is done.. you should not see the error any more with it...
Well, I thought since you developed this plug-in you would know it best... AND I WAS RIGHT :D Thanks a lot for you help. The new version works properly!

Greets Opa
- Sir, we are sourrounded!
- Excellent, now we can attack in any direction!
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

one question.
i was checking every post here but did not find a answer. i have news. and a customfield for images. it is NO upload field but a wysiwyg field because i need a filepicker.
for the custom field i get this value:
but afaik i just need the raw path to that image. thats the reason why it wont work with jeremys snippet:

Code: Select all

{capture assign=imgIs}{$entry->file_location}/{$field->image}{/capture}
{supersizer path=$imgIs width="32" crop='true' subdir=$entry->id alt=""}
i get

Code: Select all

"There is a path issue with the orginal image!
Does this look right?"
So, how to get the path of that image? my custom field is called "bild"
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

nicmare wrote: one question.
i was checking every post here but did not find a answer. i have news. and a customfield for images. it is NO upload field but a wysiwyg field because i need a filepicker.
for the custom field i get this value:
but afaik i just need the raw path to that image. thats the reason why it wont work with jeremys snippet:

Code: Select all

{capture assign=imgIs}{$entry->file_location}/{$field->image}{/capture}
{supersizer path=$imgIs width="32" crop='true' subdir=$entry->id alt=""}
i get

Code: Select all

"There is a path issue with the orginal image!
Does this look right?"
So, how to get the path of that image? my custom field is called "bild"
What does
{$field->bild}

Output.. also.. putting {get_template_vars} at the bottom will help you know what you have and where it it.. in the case of the field IIRC you need.. {$fields|@print_r} to output them and see what you need..

Jut FYI, you can't use the root path.. I have made sure of that.. I don't want to let people pull rope to hang themselves..

Hope this helps.. Cheers -Jeremy
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

i am playing around all the while and this nearly works:

Code: Select all

{if $entry->bild}{capture assign=imgIs}{$entry->bild}{/capture}
{supersizer path=$imgIs width="32" crop='true' subdir=$entry->id alt=""}{/if}
output:

Code: Select all

<font color="#FF0000">There is a path issue with the orginal image!</font><br/><strong>Does this look right?<br/>Path:</strong>/www/htdocs/w00885cf/lmdm/cmsms/<img src="uploads/images/image1.jpg" alt="image1" width="180" height="200" /><br/><img src="http://www.url.de/cmsms/uploads/SuperSizerTmp/>-w32-h0-p0-F-S1.jpg" alt="image1" width="180" height="200" />"    alt=""    />
so as you can see it generates the thumb.
but now i am checking the smarty docs for a solution to get just the src attribute out of the var "bild".
because it shows

Code: Select all

<img src="uploads/images/image1.jpg" alt="image1" width="180" height="200" />
by default
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

use the strip tag param... set that to true and it should be fixed..

{if $entry->bild}{capture assign=imgIs}{$entry->bild}{/capture}
{supersizer path=$imgIs width="32" crop='true' subdir=$entry->id alt="" stripTag=true}{/if}


-J
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

jeremy. this wont work. but then i took a deeper look into function.supersizer.php and discovered the right attribute for this. it is stripTags :D (note: also wrong in first post)
now it works perfectly! awesome plugin! where is the donation button?? :)
Last edited by nicmare on Wed Apr 07, 2010 7:50 am, edited 1 time in total.
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

oh boy. well I guess I ned to go back and edit all the areas.. :/ my donationis in the tag's help area below the help links... I'm glad you got it working.. it does aim to hand anything and everything dealing with images :D... cheers -J
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

allright, check your pp account. mention: its just a symbolic action by myself because i really appreciate your ambition in cmsms :)
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

TK.. :D it's much appreciated for sure.  I’m glad I can be of some help.. Cheers and tk again.. -J
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

what do you think of rounded corners as a new filter? i dont need it but there a lot of users they could need i can imagine of?
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

I have looked at that before when adding the crop, but I have ruled out due to a few reasons.. one being the weight it'd take to do it (almost doubling the footprint),  and you can reproduce that same effect with css and js... have a lookies http://www.hellscanyonsportfishing.com/ ... I think the next addition well be joining images... but I'm not sure on that as well.  I want this to be as light as I can since it's suppose to help speed sites up, not just make our lives easier :D sorry I would have to pass on that one. Cheers -J
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Announcement: New plug-in SuperSizer

Post by nicmare »

nice idea but is this still a supersizer? seems to get a superjoiner then ;-).
i vote for keeping it what it is. a resizer! and its great. push a stable release first plz :-)
JeremyBASS

Re: Announcement: New plug-in SuperSizer

Post by JeremyBASS »

Well the joining would be for a water mark mostly... since this handles gifs and alphas on pngs correctly it should not be much at all to add thou it's only a thought atm.. still thinking on it... :D  but that would be the last thing I guess since you can do everything from attach a jQuery uploads and crop script to it to sizing images on upload to ... well tons of things lol...
User avatar
opawaldburger
Forum Members
Forum Members
Posts: 94
Joined: Tue Nov 04, 2008 2:10 pm

Re: Announcement: New plug-in SuperSizer

Post by opawaldburger »

Hi, me again ;)

But this time with a lot more interesting question :D. Okay, I want to use the plugin with lightbox. And as we all know you need to include the rel="lightbox" tag into the tag to get it working. Any now my unpredictable question: how am I going to do that? Since I don't think you included this in your script, it would be lovely to add it to the stable version ;)

Greez,
Opa
- Sir, we are sourrounded!
- Excellent, now we can attack in any direction!
Locked

Return to “Modules/Add-Ons”