SimplePortal

Support => English Support => Topic started by: Ciler on January 09, 2011, 10:15:16 AM

Title: How to get images scrolling in Recent Images Attachement Block
Post by: Ciler on January 09, 2011, 10:15:16 AM
Does anybody knows the code to get the images scrolling for Recent Images Attachements Block?

In the script it looks like this:

   $block_parameters = array(
      'limit' => 'int',
      'direction' => 'select',
      'disablePoster' => 'check',
      'disableDownloads' => 'check',
      'disableLink' => 'check',
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Ciler on January 09, 2011, 06:08:33 PM
Nobody? I thought it was not that hard question.... :(
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Ciler on January 12, 2011, 09:59:43 AM
Nobody who can answer this according to me not too complex question???

Where stays support I noticed that a lot of questions also from other users are not answered... :(
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: AngelinaBelle on January 13, 2011, 11:28:52 AM
That direction parameter is not designed for scrolling.
It is used to select between horizontal and vertical orientation of the gallery items.
You can see, when editing a block of that type in the block editor, what kind of choices you have.
 
And you can see from the code that the options for $parameters['direction'] are empty and !empty
 
 
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Ciler on January 13, 2011, 02:37:13 PM
I already saw it but my question is what code to add to the script and in what php file to get the images scrolling (marquee code)
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: AngelinaBelle on January 13, 2011, 03:27:19 PM
You are correct -- you could add the HTML marquee tag to the function, if you wanted to.  You would wrap it around the entire thing you wanted to scroll.
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Old Fossil on October 15, 2011, 06:58:35 PM
Apologies for opening this

BUT


Is there a scrolling attachments block out there somewhere?

Can attached images be resized automatically?
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Chen Zhen on October 15, 2011, 07:48:05 PM
Apologies for opening this

BUT


Is there a scrolling attachments block out there somewhere?

Can attached images be resized automatically?

HTML marquee has been deprecated. It still works in most browsers current versions but in the near future it will not.
Imo use javascript to get this effect.
ie. http://www.dynamicdrive.com/dynamicindex2/

So.. you want a block that scrolls attachments from specified boards and/or all boards?
 
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Old Fossil on October 15, 2011, 07:55:53 PM
Was looking at all boards.

Whats the best size for image attachments?
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Chen Zhen on October 15, 2011, 08:29:39 PM
Was looking at all boards.

Whats the best size for image attachments?

Use some trial and error to have it display as you see fit. ie. 20x20, 50x50
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: Old Fossil on October 15, 2011, 08:30:36 PM
Will do.
Title: Re: How to get images scrolling in Recent Images Attachement Block
Post by: AngelinaBelle on October 17, 2011, 04:20:03 PM
CSS3 supports a marquee.
So, for up-to-date browsers, you can add this to the style of any div, for example.
http://www.w3schools.com/cssref/default.asp#marquee

The HTML marquee tag is deprecated, but will likely be supported by many browsers for at least a little while longer, as it is such a popular website feature.
SimplePortal 2.3.8 © 2008-2024, SimplePortal