PDA

View Full Version : how to hide one div based on php file name?


drew82
29 Jul 2009, 13:07
how to hide one div based on php file name?

--------------- Added 1248874937 at 1248874937 ---------------

how to hide one div based on php file name?

for example :
suppose my page name is blog.php.i need to hide latest blogs div

testbot
29 Jul 2009, 15:59
not exactly sure what you're trying to do but you can use css style to hide divs...

<div style="display: none; visibility: invisible;">hidden text</div>

drew82
30 Jul 2009, 07:57
How to check condition for hidding div?

suppose if we are using hand code we can check like this :


$curpage = $_SERVER['PHP_SELF'];

same variable i need to take in vbulletin.how do to this?

testbot
30 Jul 2009, 14:08
do you mind if i ask what variable or what page? there might be something already available.