![]() |
PHP in Javascript
I'm working on a hack for one of my boards ( http://www.dragoon-networks.net ) and I've encountered a problem.
The hack is two parts, one part checks to see whether the board is in a frame, the other consists of KuraFire's Register/UserCP button hack. Basically, when the board is in a frame, the banner doesn't show, when its outside, it does. My problem is that the browser doesn't want to parse the $reg_ucp hack within the banner when it displays... Any ideas on how to make this work? |
why not make a php file write javascript code and incorporate it via the <script> tag:
PHP File (javascript.php): PHP Code:
Code:
<script type="text/javascript" src="javascript.php"></script> |
All times are GMT. The time now is 04:50 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:
|