Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #11  
Old 10-16-2007, 06:17 AM
Laprodo Offline
forum loafer
 
Join Date: Sep 2007
Posts: 10
That solution seems to be smarter, it doesn't require extra sql-statemants and reuse existing variables of pixelpost:
http://www.pixelpost.org/forum/showthread.php?t=717
Reply With Quote
  #12  
Old 01-01-2008, 10:06 AM
irishblue Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
I just figured how to preload for those using the secret addon too. I know nuts about scripting but it seems to work hehe

HTML Code:
<script type="text/javascript">
if (document.images) 
{
   img1 = new Image();
   img1.src = "images/<PRELOAD_IMAGE_NAME>";
   img1.src = "images/o_<PRELOAD_IMAGE_NAME>";
}
</script>
assuming "o" is the prefix of your secret images (which is the default from that addon, unless you changed it)
Reply With Quote
  #13  
Old 10-06-2008, 10:39 AM
irishblue Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
any idea how I can preload the secret image for the very first image?
since the <PRELOAD_IMAGE_NAME> only loads the "previous" image.
Reply With Quote
  #14  
Old 10-07-2008, 07:26 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
You are on the right track, but you don't need the <PRELOAD_IMAGE_NAME>.
Just use
Code:
<script type="text/javascript">
if (document.images) 
{
   img1 = new Image();
   img1.src = "images/o_<IMAGE_NAME>";
}
</script>
You don't need the Image Pre-Loader Addon since you are only interested in the actual images name (<IMAGE_NAME>)
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #15  
Old 10-07-2008, 02:07 PM
irishblue Offline
forum loafer
 
Join Date: Dec 2006
Posts: 18
thank you very much for the quick reply!
it works like a charm now!
much appreciated
Reply With Quote
  #16  
Old 10-07-2008, 02:21 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
n/p
I use it in my blog too now so I have to thank you for the idea
__________________
Uh!log Photoblog
My Addons
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 08:55 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs