SimplePortal

Customization => Custom Coding => Topic started by: saurabh1938 on August 22, 2014, 01:39:08 PM

Title: How can I put an auto refresh on SM Gallery block?
Post by: saurabh1938 on August 22, 2014, 01:39:08 PM
I want to run a slide show on a gallery block and not have it as a static block... If I refresh the whole page the pic gets changed but I don't want to refresh my whole page and that too manually. I want to tweak a gallery block in a way that only gallery block gets auto refreshed after say every 3-4 seconds.

Can I add a code for this and where?

Thanks,
Saurabh
Title: Re: How can I put an auto refresh on SM Gallery block?
Post by: Chen Zhen on August 23, 2014, 04:29:11 PM
jQuery has a function to reload a file every xxxxxx miliseconds.
You can develop a script that works from a file and use a custom php block to manipulate the necessary code.
Do note that 3 second reloading will cause an issue with memory. It would be best to have something refresh every minute or maybe more.

Here is an example with the recent post block: click (http://simpleportal.net/index.php?topic=13574.msg66983#msg66983)
Regards.
 
Title: Re: How can I put an auto refresh on SM Gallery block?
Post by: saurabh1938 on August 24, 2014, 04:33:55 AM
jQuery has a function to reload a file every xxxxxx miliseconds.
You can develop a script that works from a file and use a custom php block to manipulate the necessary code.
Do note that 3 second reloading will cause an issue with memory. It would be best to have something refresh every minute or maybe more.

Here is an example with the recent post block: click (http://simpleportal.net/index.php?topic=13574.msg66983#msg66983)
Regards.
 


Thanks, for helping me... but please help me with a bit of technical details.. means where to put what.. I have a very limited php knowledge. So, I don't know how to update that code to run for SMG block.
Title: Re: How can I put an auto refresh on SM Gallery block?
Post by: saurabh1938 on August 27, 2014, 07:29:59 PM
Is there anyone to help me?
Title: Re: How can I put an auto refresh on SM Gallery block?
Post by: saurabh1938 on September 04, 2014, 02:32:34 AM
Please help me with the technical details, I am in real need of this feature
SimplePortal 2.3.8 © 2008-2024, SimplePortal