I have forum v bulletin I need to redirect a visitor to example.php page .. automatically after a short delay,countdown  when he clicks the download attachment already upload at my server or external link posted in my forum . Is there any possible way to do that in a .htaccess (JavaScript) code or any thing ..

my site :  shneler.com/vb
example attachment URL : http://shneler.com/vb/attachment.php?attachmentid=2063&d=1380201538

Thank you 

What about using a Javascript timeout?

$('#element').click(function() {
    setTimeout(function() {
        window.location.href = 'http://website.com';
    }, 3000);

it is not working

    $('#element').click(function() {
    setTimeout(function() {
    window.location.href = 'http://shneler.com/vb5test';
    }, 3000);

not working .... is there any thig should i change and is this java for external link , attachment file uploaded in my server ?

a somewhat backwards approach maybe, to goto the example page and continue from there
current link to a particualar attachment may be
<a href='http://shneler.com/vb/attachment.php?attachmentid=2063&d=1380201538'>something to download</a>

different link
<a href='http://shneler.com/vb5test?attachmentid=2063&d=1380201538'>something to download</a>

and in /vb5test/index.php in the <head> somewhere

if(isset($_GET['attachmentid'])) { 
echo "<meta http-equiv='refresh' content='5; url=/vb/attachment.php?attachmentid=$_GET['attachmentid']&d=$_GET['d']'>"; 
} ?>

plwase note
redirect to blank page see attached please

see attachment

Member Avatar

What are you trying to show with these screenshots?

first of all i m not programmer i have some information in php but i can execut what you ask me to do
let me clarification
1: in my forum i m using hack vbAnonymizer , This product will make all outgoing URL's have no referrer
i dont have problem in external links it is working well
my issue when the member ask to download the attachment upload in my root ,
can yo add rules in the attached file (product) to redirect any member ask to download attachment to redirect to my waiting page i m already use at external link
please use user: test and password: 123456 to allow see the attachment

*example attachment
*example external link

the product

You cannot edit VB files like that, thats why they create plugins and templates to create something as you want. try asking product maker to edit file as you want

You didn't think to write, in the original question,
that you were f_ing with a functional system with some 'hack',
(badly) coded by some f_wit, to hide your referer.
the hack f_s up the system,
get the fix from the f_wit that wrote the hack, or,
remove the hack

there is one reason to hide the referer; malice. are you? :)

edit: read the source: badly written?;bohze moi,
so much wrong
there are vb anonymizers, that do work, try another

Member Avatar

Have a think about what you're actually asking for and read this: http://bit.ly/Dwebphp