Log in

View Full Version : Whats the redirect code?



RLY-CRAIG?
12-10-2006, 03:13 PM
Hey,

What's the re-direct code to redirect a site in BB Code please?

+rep to whoever

Thanks

Tomm
12-10-2006, 03:14 PM
There is no "BB code" way to redirect. In php:



header("Location: http://yoursite.com/yourpage.php");

Sam
12-10-2006, 03:16 PM
I didnt know you could do a redirect in BBcode .. Learn something new every day..

RLY-CRAIG?
12-10-2006, 03:18 PM
There is no "BB code" way to redirect. In php:



header("Location: http://yoursite.com/yourpage.php");


I mean code that will work in a vBulletin template to redirect a forum?

zoey101
12-10-2006, 03:39 PM
What about the codes on the websites I need that one

RYANNNNN
12-10-2006, 04:04 PM
You could use a META redirect on vbulletin or just on your site.

For the meta you'll need to do something like this..

<meta HTTP-EQUIV="REFRESH" content="0; url={param}">

I think it's {param}. Should be quite easy. Then you'd just type your url and wrap it in [redirect] tag's or whatever you called it.

nets
12-10-2006, 04:06 PM
BBCode isn't a language, it's used on forums etc. when users are not allowed to submit their own HTML. BBCode is parsed and turned into HTML once submitted; I doubt there's a "redirect BB Code" specified, therefore you'll need to use HTML/JavaScript.

<script type="text/javascript">
<!--
setTimeout("document.location.href='URL here'", 10000);
-->
</script>

Edit: If you're looking for a redirect script so you can supply users with a "Redirect BBCode", I suggest you do not use JavaScript.

RYANNNNN
12-10-2006, 04:20 PM
http://img179.imageshack.us/my.php?image=10122006171920li4.png

Tried and tested :)

Just enter into BBCode manager on vbulletin that, you might want to change 0 to 3-5 but it's up to you.

Want to hide these adverts? Register an account for free!