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 is a dedicated section for commercial extensions.
Post Reply
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Little extension redirect to other url & display a compt

Post by mathieu_bond »

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: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Post by zinc »

Thanks for this one I was just looking for something like this. Well done and thank you!!!
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

if you have other little tool like this that you can share, this can be much useful :wink:
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Post by me.prosenjeet »

Great Job!!!!
Thanks a ton :lol:
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

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: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

:wink: Way cool

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

Regards V8
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

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: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

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: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

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: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

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: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

:)

OK.....

I will try this

Thanks again for the wounderfull extention

Keep up the good work

Regards V8
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

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: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

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: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

8)

Oh My........

Thank you very much :wink:

I will try tomorrow afternoon and let you know

Much Much Regards V8
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

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
User avatar
v84x4
 
 
Posts: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

:cry: Sorry

Havnt had time to try it out yet

I will try on tuesday or wednesday

Much Regards V8
User avatar
cinemaker
 
 
Posts: 33
Joined: Thu Dec 15, 2005 3:01 pm
Location: Los Angeles, CA
Contact:

Post by cinemaker »

Is there an English version of the redirection extension? :D
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

Hi, the extension is in english, comment are in english, in the zip file take the extension open_new_window.xwb
User avatar
cinemaker
 
 
Posts: 33
Joined: Thu Dec 15, 2005 3:01 pm
Location: Los Angeles, CA
Contact:

Post by cinemaker »

Thank you for the clarification. I did not see that extension in my list. I only saw the two referring to redirect, one of which was not in English. Using the right one now. Also, thanks for the useful extension.
User avatar
zinc
 
 
Posts: 2146
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Post by zinc »

This will be part of Version 6.0 :)
User avatar
v84x4
 
 
Posts: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

Sorry.......

Thank you for all your hard work

That "Script" worked great

Check it out at; www.highwaytrucker.com

Much Much Regards V8
mathieu_bond
 
 
Posts: 29
Joined: Sun Oct 19, 2008 11:49 am

Post by mathieu_bond »

nice!!
you can do an extension nox :P
User avatar
v84x4
 
 
Posts: 102
Joined: Thu Sep 18, 2008 1:48 am
Contact:

Post by v84x4 »

:(

I wish I had time to mess with learnning how to build extentions

Someday

Thank you again for the script

Much Regards v8
Post Reply