Showing and scrolling layers *** UPDATED Aug-26-2012 ***

In this section you can announce self-made paid extensions.
*** THIS SECTION CONTAINS PAID EXTENSIONS ONLY ***
Post Reply
User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Wed Apr 04, 2012 11:39 pm

i edited my post while you posted...
i think is preferable to add a new extension (is i told you in my previous post) instead to overcomplicate the existing ones.

(i meant the custom code to copy, paste, and modify)

supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by supersonictt » Wed Apr 04, 2012 11:42 pm

mmm, I didn't get you! Do you mean that you updated the first post with the new features and options?

User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Wed Apr 04, 2012 11:45 pm

advanced -> custom start

supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by supersonictt » Wed Apr 04, 2012 11:58 pm

By the way this is what I asked you about the first time! But then, you added that extra option in ocpn extension (which says: "Go to on open"), and at that time, I believed that "Custom start" does what I wanted!
Ok, so now in the pagination extension (in my design it is named "Extension2"), I should add this before </head>:

Code: Select all

<script type="text/javascript">var Extension2_default_layer=1;</script>
Am I right?
I know am bothering you so much! Am really sorry for that man!

User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Thu Apr 05, 2012 12:05 am

this code is right.
the difference with "go to on open" is: each time you open after you close, goes to the specific layer.
the custom code is "one-time" only...

supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by supersonictt » Thu Apr 05, 2012 12:18 am

Yes, but even this code is not working for me! I replaced the default layer "1" with "3" but it is still showing layer 1 as the first time I open the extension! Strange, but never mind :)

User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Thu Apr 05, 2012 12:21 am

the zip you download from the first post, has a sample project.
open it and take a look into the optional html boxes...
or
you can enter you desired layer number in the go to on open property.
you can choose the first element, the last viewed one, or type in the number you want.

supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by supersonictt » Thu Apr 05, 2012 12:50 am

Yes, I got exactly what you mean, and yes it is working.
When you added the new option in ocpn, this option always shows the first layer as the extension opens, and this is the exact code:

Code: Select all

Extension2_open_fixed(); if (1){Extension2_curr_layer = 1;}
But I don't think it will be valid for the pagination (not this exact code, I mean the idea), and this is because the pagination is ALWAYS shown, so there is no way to go to the first layer (it doesn't close to open again with the first layer shown).
Well, in the demo site you have, the PANEL C has a pagination extension inside a layer, now if I click on the pagination and go to the second item, then I clcik on PANEL A (which will close PANEL C and open PANEL A), then I open PANEL C again, the pagination will still be on the second item. In order to make the pagination go to the first item, this can be done by javascript goto(1) for the pagination extension, I tried it in my case and it worked well, and that will be valid because the script will be attached to the Text Link... But what about if I want the button do this? Would it be doable?

*****EDIT*****
OH! I think it is doable, I am trying it now :)

User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Thu Apr 05, 2012 12:55 am

next version will have user events as the button/peel extensions have, so you can add what you want and add more control on these ones. (i need to double-check it because we don't want any conflict...)

supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by supersonictt » Thu Apr 05, 2012 1:05 am

[RZ], I did that.
I added:

Code: Select all

Extension2_goto(1);
to the button that opens the extension containing the layer that has the pagination extension.
Well, I was looking at the code in the html file... Man, you are UNBELIEVABLY GENIUS!
And from now, thanks a million for whatever you are going to do regarding this extension! I am building my whole site using the geniality of your extensions :)

User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Thu Apr 05, 2012 7:34 am

Well, I was looking at the code in the html file... Man, you are UNBELIEVABLY GENIUS!
yes, i'm aware of this, unfortunately there is nothing we can do about it.
:lol: just kidding!! :lol:
thanks for your kind words and for find this extensions set useful.

User avatar
docdoc
 
 
Posts: 55
Joined: Sun Jul 18, 2010 9:34 am

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by docdoc » Thu Apr 05, 2012 9:27 am

@chicguy1
I have the strange feeling that you are just SPAMMING here!

User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Thu Apr 05, 2012 9:28 am

@docdoc
just feeling?

User avatar
[RZ]
 
 
Posts: 2161
Joined: Tue Nov 04, 2008 12:08 pm

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by [RZ] » Thu Apr 05, 2012 9:39 pm

fix available here. [*** link removed, the fix is obsolete and is no longer available ***]
Last edited by [RZ] on Sat Apr 07, 2012 9:22 pm, edited 1 time in total.

supersonictt
 
 
Posts: 398
Joined: Sun May 15, 2011 10:27 am

Re: Showing and scrolling layers *** UPDATED MAR-25-2012 ***

Post by supersonictt » Fri Apr 06, 2012 8:49 pm

[RZ]
Thanks man :)

By the way, just a question. I have a flash photo slider that lets me specify links for each image, the links are stored in the generated .xml files between <link></linl>, can I transfer these links to an event? I mean, clicking one image will open a layer (just like text event: onclick-->javascript-->Extension7_open();). Are events acceptable in the .xml file?
Thanks.

Post Reply