News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How Can I Hide Info Center From MEMBERS?

Started by robbinsnike, November 23, 2009, 06:51:16 PM

Previous topic - Next topic

Matthew K.

Also, I'd definitely take into consideration what Arantor said about where I added the edits. I would follow his instructions.

JasonDD

I did what Arantor suggested, but is it possible to somehow fix the layout issue in RC2? Or I'll have to wait for the next release?

Matthew K.

Definitely not the best way to go about it, but it works.

Find:template_info_center();
Add Before:if ($context['user']['is_admin'])

Find: echo '
<span class="lowerframe"><span></span></span>';

Replace with:
if ($context['user']['is_admin']){
echo '
<span class="lowerframe"><span></span></span>';
}

JasonDD

As for the second part of the edit I only found this piece of code


echo '
</div>
</div></div>
<span class="lowerframe"><span></span></span>';

So I replaced it with:

if ($context['user']['is_admin']){
echo '
</div>
</div></div>
<span class="lowerframe"><span></span></span>';
}


The layout issue is still there though

Matthew K.

You shouldn't see any lower section if you're a guest or even member with that code.

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Matthew K.

Or try "Info Center Permissions" which is supported on v2.0.x and works well.

Advertisement: