My b2evolution Version: 1.9.3
How would I makes the views that are displayed under post titles only viewable when your logged in? I don't think regular visitors need to see them but I would like to see it when I'm logged in to the site. I searched through the Misc. section of the code that was on the sidebar in the default skin to see how it displays its sections when your logged in as a user, but didn't find what made this happen.
TIA
Tom
http://hudsonvalley.bytheplate.com
Open your skins/yourskin/_main.php file and look through it a bit. Eventually you'll find something that looks like "$Item->views()", or at least very similar to that. Whatever the line actually is, you'll need to wrap it in a login check, like this:
Be a bit careful with your php stuff too. Use a "smart" editor like html-kit (and there are many others) so that you get color-coded syntax. It will help you see if your php tags are open or not. For example let me grab a quick piece of code with php open and closed and open again...
The "<php" line starts php stuff, and "?>" ends it, so anyway it shouldn't be that hard after you get a handle on which parts are php and which parts are html.