Little extension redirect to other url & display a compt

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.

There are already more than 250 extensions available!
mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Little extension redirect to other url & display a compt

Post by mathieu_bond » Sun Jan 04, 2009 5:36 pm

Hi there is just 2 little extension but which can be useful
* redirect to other url after time : you set the time in ms and a url and after the time is finish, the navigator switch automaticly to the url specify, you can download here http://www.mathieuweb.fr/google/redirection.zip

* display a compt down , you enter the date you want and this extension display the time which is remaining until this date, you can download here http://www.mathieuweb.fr/google/comptdown.zip

You can see the result in preview mode :wink:

i will like we can share too many little extension which can make win little time :idea: :D

User avatar
zinc
 
 
Posts: 1501
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom

Post by zinc » Sun Jan 04, 2009 5:46 pm

Thanks for this one I was just looking for something like this. Well done and thank you!!!

mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond » Sun Jan 04, 2009 5:52 pm

if you have other little tool like this that you can share, this can be much useful :wink:

User avatar
me.prosenjeet
 
 
Posts: 1245
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet » Sun Jan 04, 2009 5:58 pm

Great Job!!!!
Thanks a ton :lol:

mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond » Mon Jan 05, 2009 6:03 pm

HI, i was do little cahnge in this extension comptdown tell me now if this work correctly, i was have too options witch allow cahnge color, font, and choose if you want display all ( hour, min, day ,sec) :wink:

User avatar
v84x4
 
 
Posts: 115
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 » Tue Jan 06, 2009 2:39 pm

:wink: Way cool

Can "Redirect" have an option to open in different browser window?
or "Pop-up" window?

Regards V8

mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond » Tue Jan 06, 2009 10:18 pm

hi
now i was do improvement in extension redirec, now you can choose if you want :
* redirect to other url after a time parameter
or
* open a other popup windows with parameter
:wink:
name of extension was change , now it is "open_new_window"
tell me if it works correctly
:D

User avatar
v84x4
 
 
Posts: 115
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 » Wed Jan 07, 2009 7:32 am

8) WOW

Works great...............

Thank you!!! :D ........ thank you!!!! :D


Verry cool :wink:

See working example here: www.highwaytrucker.com

Much Much Regards V8

User avatar
v84x4
 
 
Posts: 115
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 » Wed Jan 21, 2009 4:24 am

8)

This extention is great.....

The only thing is that when you return to the page (home page)
where the extention is........ it reloads the extention :cry:

Am i saying this right?

Is there any way to make it so it knows that you already
use it (oppened it) so when you return to that page it
wont try to open again?

Regards V8

mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond » Wed Jan 21, 2009 5:16 pm

Hello
i don't know enough good javascript and all what is possible to do
i can make you some proposition, if your server support php session you can do this, you must create a session variable when the page is open , and if this session variable exist then you don't activate again the pop up
maybe there is other better way to do, i dont know..

User avatar
v84x4
 
 
Posts: 115
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 » Wed Jan 21, 2009 8:21 pm

:)

OK.....

I will try this

Thanks again for the wounderfull extention

Keep up the good work

Regards V8

mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond » Wed Jan 21, 2009 8:24 pm

you can try this little program, be careful you must set you page propriety to php for make it work, and write this on start of the page , change texte "url_pop_up" to the url you want to open :

<?php

session_start();

if ( !(isset ($_SESSION['pop_up'])) ) {

echo "<SCRIPT LANGUAGE=\"JavaScript\">
function ouvrir_popup() {
window.open('http://www.url_pop_up.com','MyPopupWindow','height=800,width=600,
top=50,left=50,resizable=yes,menubar=no,status=no,scrollbars=yes,
menubar=no'); }
ouvrir_popup();
</SCRIPT> " ;
$_SESSION['pop_up'] = 'actif';
}

?>

mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond » Wed Jan 21, 2009 8:40 pm

i have forget, if you had this code in your page, you must shut out the extension "redirect" from the page! you can not have the extension and this code together on the page, if this work possible is to build a new extension :wink:

User avatar
v84x4
 
 
Posts: 115
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 » Thu Jan 22, 2009 6:23 am

8)

Oh My........

Thank you very much :wink:

I will try tomorrow afternoon and let you know

Much Much Regards V8

mathieu_bond
 
 
Posts: 35
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond » Sat Jan 24, 2009 9:36 am

HI
you was try the script? it works? on my server this work, but if your server don't accept session this will not work( important: the script must be write on start the page and this must be first code of the page!), then this is possible to do with cookies too, let me know

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests