Is there any line of code that i can add to the <body> to give the page another div class when you view the profile page?
In Wordpress for example you have this...
<?php if(is_front_page() ) { ?> //do stuff <?php } ?>
Is there any line of code that i can add to the <body> to give the page another div class when you view the profile page?
|
for profile.php if(defined(BX_PROFILE_PAGE)) { //its profile page } so much to do.... |
I can't get it to work :( |
what exactly are you trying to accomplish - you can use a php block on the profile page for the code you want to use. If there is no visual result, then the block will not show, but code will still run.
I have a block on my homepage and on the account page that checks a users member type. If a certain type, then their membership is upgraded to a special membership. If they already have that membership, then no changes are made. And since there is no visual output, the user does not even know the block is there.
Or you can use an injection to accomplish the same thing. caredesign.net |
I want to add a class to the body if you are on the profile page. |
In templates/base/_header.html Find : class="bx-def-font" Replace with : class="bx-def-font __extra_class__"
In inc/classes/BxDolTemplate.php Find this code snippet : case 'is_profile_page': $sRet = (defined('BX_PROFILE_PAGE')) ? 'true' : 'false'; Just below it, add : case 'extra_class': someclass is the name of the class that should affect the Profile page only. Clear cache after making the changes. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Thanks, Modzzz!!! It worked :) |
Can i also do that with certain other pages? |
How can i do that with the profile info page? |
Do you mean you want the same class to appear for both Profile and Profile Info pages ? How can i do that with the profile info page?
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Yes. Or another class if that's easier... |
See below the full list of changes needed for both pages. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
THANKS!!!! It worked... |
And for the profile edit page? |
And for the profile edit page? |
We also need to give a different class to the member.php page. How can we do that? |