By SamSound on
Im trying to get a block to only show on users accounts. But whenever I put to show only on user/* under block visability settings it shows up on all user pages, such as user/*/edit and user/*/contact.
I just want the block on user accounts. Im guessing I nee dto put some php in, but I have no idea what :(
Thanks for any advice.
Comments
<?php $args = arg(); if
You should probably check the second argument if you the path is users/username but this should be sufficient.
i cant get it to work
ive put the code in
enabled Show if the following PHP code returns TRUE.
Saved the block, and now nothing shows up on any pages.
I go to users/exampleuser and the block just aint their. :S
Oops - here is the fixed code
Oops - here is the fixed code ($arg replaced with $args in one place):