Archived Boards and Threads... > SMF Feedback and Discussion

How Can I Hide Info Center From MEMBERS?

<< < (9/10) > >>

Labradoodle-360:
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?

Labradoodle-360:
Definitely not the best way to go about it, but it works.

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

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

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


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

--- End code ---
So I replaced it with:

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

--- End code ---

The layout issue is still there though

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

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version