![]() |
Hide pop on home page (mechbunny)
Wanting to pop something everywhere except the home page, pop will be added to the footer.
Anyone know what code I could use to do this? I don't wanna bother mechbunny atm as they're pretty busy with their new script version. $15 paxum for the help, beer monies. Edit: my script version is a few years old as it has too man customization to upgrade. |
<?php
$homepage = "/"; $currentpage = $_SERVER['REQUEST_URI']; if($homepage!=$currentpage) { include('popup.php'); } ?> |
Quote:
|
Just put it on the video template.
|
Quote:
Coders: What if my php echoed the JS like echo'<script src="popup.js"></script>';, would that work?.. |
Quote:
|
Quote:
I'm sure someone that knows MB will have a better answer than me. :upsidedow |
<?php if (!checkNav('index')) { ?>
<script src="popup.js"></script> <? } ?> See sig for my hourly rate; minimum 1 hour. :1orglaugh |
Quote:
|
Quote:
|
Quote:
Here you go : <? if ($thisController == 'index' && !$_GET['mode'] && !$_GET['page']) { } else { ?> <script src="popup.js"></script> <? } ?> |
Quote:
|
Quote:
Code:
<?php |
Quote:
I think BlackMonsters has the right idea but it wont work on my script version, I'm sure there is a way tho, I remember hiding banners from certain pages ages ago. |
<?php
$homepage = "/"; $currentpage = $_SERVER['REQUEST_URI']; if($homepage!=$currentpage) { echo' <script src="popup.js"></script>'; } ?> Try this, then. If it doesn't work, do a test and see if something other than / is the output for $currentpage then change $homepage = "/"; to the homepage value. That way you don't need another php file. :upsidedow |
an actual business thread on gfy!?!
|
Quote:
|
nice...good to see webmasters helping each other
|
Quote:
Glad it works! |
Quote:
|
Quote:
|
Quote:
|
10 PRINT "Hello World!"
20 GOTO 10 |
Quote:
10 PRINT "I miss programming with line numbers" 20 X = X + 1 30 If X = 1000 THEN GOTO 100 40 GOTO 10 100 PRINT "I'm over it" 110 PRINT ":upsidedow" |
All times are GMT -7. The time now is 08:01 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc