MyBB Community Forums

Full Version: How get search, memberlist, calendar, help menus back?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

playcentreforums.co.nz/forum

A while ago, I removed the search, memberlist, calendar, and help menu items from the header; I removed this code:

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

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

<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li> 
                    </ul> 
               </div> 

Now, I want those menu items back; the default way. Should be simple...

I tried to put the same code back to get those menu items back; and when I click "submit" in the template editor, I get "A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.", and it's not letting me do it.

Why? What am I doing wrong? I'm overlooking something, but can't see what it is.

Any advice greatly appreciated!

THANKS!

Matt


This is the complete code that I was trying to use:

<div id="container">

          <a name="top" id="top"></a>

          <div id="header">

               <div class="logo"><a href="{$mybb- >settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb- >settings['bbname']}" title="{$mybb- >settings['bbname']}" /></a></div>

               <div class="menu">
                    <ul>
                         <li><a href="{$mybb- >settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang- >toplinks_search}</a></li>
                         <li><a href="{$mybb- >settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang- >toplinks_memberlist}</a></li> 
                         <li><a href="{$mybb- >settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang- >toplinks_calendar}</a></li>
                         <li><a href="{$mybb- >settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang- >toplinks_help}</a></li>
                    </ul>
               </div>

               <hr class="hidden" />
               <div id="panel">
                    {$welcomeblock}
               </div>

          </div>

          <hr class="hidden" />
          <br class="clear" />
          <div id="content">
               {$pm_notice}
               {$bannedwarning}
               {$bbclosedwarning}
               {$unreadreports}
     {$pending_joinrequests}
               <navigation>
               <br />

</div>
It's because of this code;

{$lang- >toplinks_calendar}

The space shouldn't be there

{$lang->toplinks_calendar}
Wow man, that was lightning fast! Thank you so much!

I really didn't see that space, thanks!

Fixed that now, still the same error though... so still overlooking something else :-(

Here is the code I'm trying now:

     <div id="container">
          <a name="top" id="top"></a>
          <div id="header">
               <div class="logo"><a href="{$mybb- >settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb- >settings['bbname']}" title="{$mybb- >settings['bbname']}" /></a></div>
               <div class="menu">
                    <ul>
                         <li><a href="{$mybb- >settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang- >toplinks_search}</a></li>
                         <li><a href="{$mybb- >settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang- >toplinks_memberlist}</a></li> 
                         <li><a href="{$mybb- >settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang- >toplinks_calendar}</a></li>
                         <li><a href="{$mybb- >settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
                    </ul>
               </div>
               <hr class="hidden" />
               <div id="panel">
                    {$welcomeblock}
               </div>
          </div>
          <hr class="hidden" />
          <br class="clear" />
          <div id="content">
               {$pm_notice}
               {$bannedwarning}
               {$bbclosedwarning}
               {$unreadreports}
     {$pending_joinrequests}
               <navigation>
               <br />

If I could borrow your eagle eye again, that would be great...

THANKS

Matt

Got rid of three more empty spaces. Still the same error.

Code now:

     <div id="container">
          <a name="top" id="top"></a>
          <div id="header">
               <div class="logo"><a href="{$mybb- >settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb- >settings['bbname']}" title="{$mybb- >settings['bbname']}" /></a></div>
               <div class="menu">
                    <ul>
                         <li><a href="{$mybb- >settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
                         <li><a href="{$mybb- >settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li> 
                         <li><a href="{$mybb- >settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
                         <li><a href="{$mybb- >settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
                    </ul>
               </div>
               <hr class="hidden" />
               <div id="panel">
                    {$welcomeblock}
               </div>
          </div>
          <hr class="hidden" />
          <br class="clear" />
          <div id="content">
               {$pm_notice}
               {$bannedwarning}
               {$bbclosedwarning}
               {$unreadreports}
     {$pending_joinrequests}
               <navigation>
               <br />

Undecided

Matt

Strike that. Found more empty spaces, works now.

Except... now the layout is messed up, as you can see at

playcentreforums.co.nz/forum

Not sure why.

Matt
There are still some spaces in there in the wrong places. Try this;

     <div id="container">
          <a name="top" id="top"></a>
          <div id="header">
               <div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
               <div class="menu">
                    <ul>
                         <li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>
                         <li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title="" />{$lang->toplinks_memberlist}</a></li> 
                         <li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title="" />{$lang->toplinks_calendar}</a></li>
                         <li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$theme['imgdir']}/toplinks/help.gif" alt="" title="" />{$lang->toplinks_help}</a></li>
                    </ul>
               </div>
               <hr class="hidden" />
               <div id="panel">
                    {$welcomeblock}
               </div>
          </div>
          <hr class="hidden" />
          <br class="clear" />
          <div id="content">
               {$pm_notice}
               {$bannedwarning}
               {$bbclosedwarning}
               {$unreadreports}
     {$pending_joinrequests}
               <navigation>
               <br />

EDIT: NVM you saw them Toungue

I see the layout but I don't know what's messed up about it as I don't know what your theme is supposed to look like Toungue
Eh yeah sorry should have explained.

- The four (now: three, minus memberlist) menu items, I would like to be closer together, and moved to the right of the screen;

- I would like the huge empty spaces above and below them gone;

- And I would like the black "The Playcentreforums" above the category "Welcome Mat" gone.

I think this happened after the last upgrade, but not sure, and need to fix it since it's untidy.

Matt

Thank you for your time, really appreciate it.

Matt
First, in the header try changing

  <div class="menu">

to

  <div id="menu">
Thanks, but didn't do much. It puts the four menu items into a bullet point list, one underneath the other.

I should not have played with it...

Any more suggestions?

Also, any idea why suddenly the "Hello there..." text in the "welcome block" is not leftbound anymore, but indented?

Does anyone have the unadultered original code for "header" for me?

Cheers,

Matt