Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Check that a moderator is signed in?

I have implemented AdSense code onto my Vanilla forum site by creating and editing a default.master.php for my custom theme. It works fine, but to stay safe I want to dynamically add the following line:

google_adtest = “on”;

...into the AdSense code whenever I am logged into the forum. I know that whenever I am logged in the forum shows the 'Dashboard' link in the menu, which doesn't show for normal users, and the PHP for that is simply:

$this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Settings.Manage'), array('class' => 'Dashboard'));

...since I based my default.master.php file off Vanilla's default.

So can you help me out guys?

Comments

Sign In or Register to comment.