Page 1 of 1

How do I make IM Album Block Scroll?

PostPosted: Thu Jun 22, 2006 3:20 am
Author: jolin
Hey Guys,

I saw on a couple of sites that your can make IM Album block scroll the

recent photos and was wondering how to do it as I haven't seen an option

to do make it scroll like there is for the Links block and the Recent topics

Block.

Have I missed something? :xo:

Jane

PostPosted: Thu Jun 22, 2006 4:17 am
Author: Adrian Rea
http://www.integrmod.com/home/viewtopic.php?p=41231#41231
I would search through the thread before installing.

A

PostPosted: Thu Jun 22, 2006 4:21 am
Author: Adrian Rea
Just got there first Treat :) Image


A

PostPosted: Thu Jun 22, 2006 8:30 am
Author: Threat009
"Adrian Rea";p="9972" wrote:Just got there first Treat :) Image


A

Thanks -A, both 17 after. Looks like you got me by a few seconds :)

PostPosted: Thu Jun 22, 2006 9:35 am
Author: jolin
"Threat009";p="9993" wrote:@ jolin, have you tried to clear cache under ACP > IM Portal and Extreme Styles?


Yes I did clear the cache under ACP > IM Portal and I don't use the cache option in extreme styles.

Anyway I cleared all temporary internet files cache and deleted all the cookies as well. But still BLANK album block <img>

Does it work for you just replacing the code in album_block.tpl with the one I posted and putting the .js in the root? I would guess it wont as the code does not refer to look for the .js file in the root but rather in the same directory as the album_block.tpl thus the blocks directory.

(I use album2_block.tpl but I did not see any reference in the code to the album_block.tpl so I guess that's not the problem)

Again does this work for you the way I described?

Is there any other settings I have to do or look for in the ACP?

Re: How do I make IM Album Block Scroll?

PostPosted: Fri Jun 23, 2006 7:23 am
Author: SLY LS1
I have this working "sometimes" it seems to have a mind of its own, also the posters details dont show up.

It will work, then I look at the forum or some posts, come back to the portal page and its blank again, tried refreshing and deleting cache etc etc,

Would be good to get this up and running, also make it so the images could scroll horizontal aswell for the centre blocks.

This is the code I used, as you can see I got rid of the posteds details because they didnt work.

<script></script>
<script>
</declare>
</script>
<body>


<table>
<BEGIN>
<tr>
<td><span>{L_NO_PICS}</span></td>
</tr>
<END>
<tr>
<td><span>
<script>
html = '';
<BEGIN>
<BEGIN>
html += '<table>'+
'<tr>'+
'<td>'+
'<a>'+
'<img>'+
'</a>'+
'</td>'+
'</tr>'+
'</table>';
<END>
<END>
// define the horizontal marquee
// 200 pixels high, 160 pixels wide,
//scrolls 1 pixels up each 50 ms
marquee = new xbMarquee('marquee', 100, 125, 1, 50, 'up', 'scroll', html);
marquee.onmouseover = function () { this.stop(); };
marquee.onmouseout = function () { this.start(); };
</script>
</span>
</td>
</tr>
<tr>
<td><span>[ <a>{L_ALBUM}</a> ]</span></td>
</tr>
</table>

Re: How do I make IM Album Block Scroll?

PostPosted: Fri Jun 23, 2006 12:22 pm
Author: Teelk
A much easier way to do this is to just use the marquee tag like the recent articles and links blocks.

Download the attached templates/yourtheme/blocks/album_block.tpl file and overwrite yours, in all templates that you use.

Re: How do I make IM Album Block Scroll?

PostPosted: Fri Jun 23, 2006 4:10 pm
Author: jolin
Yes Finally the pretty little images scroll. :wink:

I've tried adding the details but because of the switches they come out after all the images <img>

I wish also it could stop after each image for a moment like here:

http://web.dhjh.tcc.edu.tw/~gzqbyr/Hestia/index.php

Can you add the details to the code? (At least Title)

Re: How do I make IM Album Block Scroll?

PostPosted: Sat Jun 24, 2006 2:26 am
Author: SLY LS1
"Teelk";p="10054" wrote:A much easier way to do this is to just use the marquee tag like the recent articles and links blocks.

Download the attached templates/yourtheme/blocks/album_block.tpl file and overwrite yours, in all templates that you use.


Ahh thats much better....

Re: How do I make IM Album Block Scroll?

PostPosted: Sat Jun 24, 2006 2:38 am
Author: SLY LS1
"jolin";p="10063" wrote:Yes Finally the pretty little images scroll. :wink:

I've tried adding the details but because of the switches they come out after all the images <img>

I wish also it could stop after each image for a moment like here:

http://web.dhjh.tcc.edu.tw/~gzqbyr/Hestia/index.php

Can you add the details to the code? (At least Title)


Ok jolin, heres the code to add the details under each thumbnail, thanks to teelk's download.

Just replace all the code in your album_block.tpl or album2_block.tpl which ever one you use, with the code below.

You can also take bit of the details out buy deleting certin bits of the code.

Code: Select all
<table><BEGIN><tr>     <td><span>{L_NO_PICS}</span></td></tr><END><marquee><BEGIN><BEGIN>     <div><a><img></a></div>  <span>{L_PIC_TITLE}]</span></td></tr></table>

Re: How do I make IM Album Block Scroll?

PostPosted: Sat Jun 24, 2006 3:23 am
Author: SLY LS1
I kinda like this code, it just has the picture and the pic title all centered.


Code: Select all
<table><BEGIN><tr>     <td><span>{L_NO_PICS}</span></td></tr><END><marquee><BEGIN><BEGIN>     <div><a><img></a></div><div>{L_PIC_TITLE}]</span></td></tr></table>

Re: How do I make IM Album Block Scroll?

PostPosted: Sat Jun 24, 2006 12:36 pm
Author: jolin
Thanks guys,

I told you Im a dumb broad. :wink:

I've tired to see if the code from the original post would work but - nada. nothing <img>
http://www.integrmod.com/home/viewtopic.php?p=58634#58634

Many kisses ..

Re: How do I make IM Album Block Scroll?

PostPosted: Sun Jun 25, 2006 3:02 am
Author: SLY LS1
"jolin";p="10123" wrote:As a broad I have to bitch so I'll just say again I wish it would stop for a moment between each picture giving it a news ticker look wish is much nicer and that the loop wouldn't and with a blank like I saw on:

http://web.dhjh.tcc.edu.tw/~gzqbyr/Hestia/index.php

But you always have to leave room for improvements. :idea: how its done

Re: How do I make IM Album Block Scroll?

PostPosted: Sun Jun 25, 2006 6:35 am
Author: jolin
"SLY LS1";p="10173" wrote:Yeah that's crazy, i luv it, hes got them scrolling quick and then stopping, so cool, it must be something in the javascrip, have you asked him :wink:


The java.script used for the block can be downloaded from here:

[url=http]News Ticker Java.script Example code[/url]

If someone could put it in the album_block.tpl it would be great as it doesn't seem complicated at all but I just didn't know how to put the album block images array in the java.script format. <img>

Re: How do I make IM Album Block Scroll?

PostPosted: Sun Jun 25, 2006 6:58 am
Author: SLY LS1
"jolin";p="10181" wrote:First of all you spell luv as LOVE. (I'm a romantic girl) :wink:


Lets hope one of these skilled people on here can come up with a soloution, because I have no idea.

Luv SLY