@danbp you are my hero. i tried to find this code for 2 weeks 🙂 you solved that. my theme doesnt contain user menu. So i need to add count of notification. Lastly how can we move this menu items left side of menu?
@djsteveb Thanks for your reply. I am talking about protecting the url and images in posts from non members. The URL or the image will be visible if user loged in.
If not it will notify You must login or register to see this. or redirect to login page.
For example : http://forums.augi.com/showthread.php?157803-Raster-tools-not-recognised
in this forum when you click the attachments it redirects to the login page.