Forum Index > FlashYourWeb OS Support > MiniSlide Show New Topic Post Reply
 Showing title and date without rolling over + cropping feature
 |  Printable Version
davidarnoult
 June 17 2013 04:05 AM (Read 1280 times)  
Forum Newbie
Newbie


Status: offline

Registered: 06/17/13
Posts: 8

Hi!

Your minislide show is working great, thanks for this work!

1/ Is it possible to show the title and the date by default as slides goes? A parameter such as title=true + date=true would be great... Because rollling over to get the title is nanoying, it stops and it is not practical.

2/ Is it possible to crop images to get exact size required without deformation? Like I have a div of 900x300, It resizes in auto to 900 and crop the rest to have 300 for example.

How can I do that myself otherwise?

Thanks...

Dvaid


 
Profile Email
Quote
suprsidr
 June 17 2013 05:18 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

PHP Formatted Code

h2.mini-title, a.mini-control {
    display: block !important;
}
 


Don't understand your thinking on the second question.

-s


There will always be...
 
Profile Email Website
Quote
davidarnoult
 June 17 2013 06:38 AM  
Forum Newbie
Newbie

Status: offline

Registered: 06/17/13
Posts: 8

Hi

Thanks!
It works for #1. However is it possible to show the date of the photo next to the title as well?

Re #2 the idea is to resize and fill a complete area by defining a priority on width or height. Imagine you have a div of 1000x400, and you have photo 2000x1000. You want to fill 1000x400, so you could give width=1000, height=400, priority=width : the system would resize width to 1000 (/2) and would crop the height (500) by keeping 300, removing 100 at top and 100 bottom. Am I clear enough?
Is it possible ?

Thanks for your precious help...

David





 
Profile Email
Quote
suprsidr
 June 18 2013 05:17 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

I'm not parsing the date from data received. If you want to add it checkout minislideshow.4.0.js line ~79 you can add it there yourself.

As for your other idea, I'm sure it could be done w/ the correct html/css.

-s


There will always be...
 
Profile Email Website
Quote
davidarnoult
 June 18 2013 08:01 AM  
Forum Newbie
Newbie

Status: offline

Registered: 06/17/13
Posts: 8

Hi,

Thanks. I have tried to add "date: item.entity.date" and in other place
.text(images.title + ' / ' + images.date).appendTo(a); at 221.

as described with no succcess.

Do I need to edit jquery.minislideshow.4.0.min.js as well? I have found some variables stuff such as title in it?

Thanks

David


 
Profile Email
Quote
suprsidr
 June 18 2013 18:48 PM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Do I need to edit jquery.minislideshow.4.0.min.js as well?

You can use one or the other. But if you are customizing the un-minified version then you'll want to use that.

The date has to be parsed from the data returned. You cannot assume item.entity.date it depends on which method you are using:
  • G2 Custom RSS(mediaRss.php)
  • G2 Slideshow Module's RSS
  • G3 Built-in RSS
  • G2 Cross-domain Custom REST(rest.php)
  • G3 Cross-domain REST


-s


There will always be...
 
Profile Email Website
Quote
davidarnoult
 June 19 2013 00:58 AM  
Forum Newbie
Newbie

Status: offline

Registered: 06/17/13
Posts: 8

OK I will edit the main js file then.
Re method:

G2 Custom RSS(mediaRss.php)
G2 Slideshow Module's RSS
G3 Built-in RSS
G2 Cross-domain Custom REST(rest.php)
G3 Cross-domain REST


I am using G2 Custom RSS, I have seen that date parameter exists in it. How can I access to it?

Thanks!


 
Profile Email
Quote
suprsidr
 June 19 2013 03:19 AM  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

around line ~327

PHP Formatted Code

                            type: $(MC).attr('type'),
                            title: $(this).children('title').text(),
                            description: $(this).children('description').text(),
                            link: $(this).children('link').text(),
                            date: $(MT).attr('time')
 


-s


There will always be...
 
Profile Email Website
Quote
davidarnoult
 June 19 2013 06:48 AM  
Forum Newbie
Newbie


Status: offline

Registered: 06/17/13
Posts: 8

It is working! Great.

I have now 2 questions:

1/The date I obtain via media rss is the modification date. Can I show the date of the shooting (g_originationTimestamp) stored in exif. Do I need to use another method to get this origination date? For example in your cooliris module (slideshow), the date shown is the one I want.

2/date format : how can I change it in .js to make it shorter like dd-mm-yy

Thanks suprsidr


 
Profile Email
Quote
davidarnoult
 June 19 2013 07:08 AM  
Forum Newbie
Newbie

Status: offline

Registered: 06/17/13
Posts: 8

For #1 I have changed in mediarss.php getModificationTimestamp to getOriginationTimestamp and it seems to work pretty well!


 
Profile Email
Quote
Content generated in: 0.93 seconds
New Topic Post Reply



 All times are PST. The time is now 11:36 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content