![]() |
Need javascript help with hack!
Hello everyone!
I'm working on my first hack and I need some help with the javascript part of it. I want to tell the script if the location in the browser does not equal a certain location that I specified, then to go to that location I specified and if it does equal that location specified, then to do nothing. If you help, I will be most happy! I also plan on releasing this nifty hack once it is done, as I think I don't think it's been released yet (or so it seems) What is it? It's a template editing system so certain moderators can have access to their own style/templates for their forum so they may edit their forum to however they like. |
<script language=JavaScript>
if (document.location.href == "http://www.wrongsite.com/wrongfile.html") { document.location.href = "http://www.rightsite.com/rightfile.html"; } </script> |
Ok I re-wrote some of my code to ensure security and now I have another little problem...
PHP Code:
$post[field7] is a custom profile field that will equal the expandset number |
Nevermind, I got it :)
|
<a href="http://www.stardust-one.net/forums" target="_blank">http://www.stardust-one.net/forums</a> = $bburl
just in case you didnt know... |
If you haven't sent headers yet (i.e., not written any HTML) then you can do this in PHP:
PHP Code:
|
All times are GMT. The time now is 10:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|