MyBB Community Forums

Full Version: Hide Forum Statistics from Guests
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
You mean to hide link or hide memberlist.php page ?
ACP >> Users & Groups >> Groups >> Guests >> Miscellaneous >> Can view member list? >> Untick
Yal,
I am talking about the following;

[Image: untitled400.jpg]


AJS,

It is already unchecked. But that uncheck will hide the member list i am talking about in the pic above?
No, unfortunately not. You'll need to manipulate the templates or use the template conditionals plugin mentioned earlier.
You can hide this by using Template Conditionals Plugin: http://community.mybb.com/thread-31860.html

Once you activate it, Go to header template and find memberlist link and wrap it with the following code;
<if $mybb->user['uid'] != "0" then>
// Memberlist link goes here
</if>
(2011-04-06, 05:18 PM)annaconda Wrote: [ -> ]Yal,
I am talking about the following;

[Image: untitled400.jpg]


AJS,

It is already unchecked. But that uncheck will hide the member list i am talking about in the pic above?
You got to do manual template edits.

Open ACP>Themes and templates>Your theme templates>Header templates>Header:

Find:

<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>

cut/remove it.

Goto:

header_welcomeblock_member templates:

then on top add something like:

<div class="menu"><ul><li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li></ul></div>

Then it would only show to members after logging in. Smile

Thanks Every one again.

Crazy,
I did what you mentioned, It works Smile but problem is it comes up like the following; How can we realign it like it was before with search and other links on the top. I put the Code on the Top of everything in Header_WelcomeBlock_member template.

[Image: untitled449.jpg]
In the header template, find:
				</ul>
			</div>
			<div id="panel">
				{$welcomeblock}
			</div>

Replace with:
				{$welcomeblock}
			</div>

In the header_welcomeblock_guest template, add to the very beginning:
				</ul>
			</div>
			<div id="panel">

In the header_welcomeblock_member template, add this after the list item:
				</ul>
			</div>
<div id="panel">

So it looks like:
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
				</ul>
			</div>
<div id="panel">
Do this much changes for now,more changes to align it exactly,I gotta think some way for it.

Open Header_welcomeblock_member:

Right after:

<div class="menu">
<ul>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li>
</ul></div>
(THIS CODE SHOULD BE RIGHT AT START.)

Add in next new line:

<div id="panel">

Open Header Templates:

Find and Remove:

<div id="panel">
right after <hr class="hidden" />

Then remove one </div> tag right after:

{$welcomeblock}

This should look something like this as of now if you did changes correctly:

[Image: Gml6l.png]
(2011-04-07, 06:29 AM)crazy4cs Wrote: [ -> ]....

Or just do what I said which lines it up perfectly.
Pages: 1 2 3