Jump to content

Tutorial Adaugare Sidebar Extensibil Mybb


Recommended Posts

  • Moderators

Daca doriti sa adaugati un sidebar extensibil (adica care se poate restrange), aici aveti un tutorial bun. (L-am incercat si merge perfect). 


AdminCP > Templates & Style > Templates > Tema ta > Index Templates > index.


Înlocuim tot ce este acolo cu:


 <script type="text/javascript">
     lang.no_new_posts = "{$lang->no_new_posts}";
     lang.click_mark_read = "{$lang->click_mark_read}";
 // -->
 <style type="text/css">
 .buttons {
     background: url(images/arrowright.png) no-repeat;
     width: 16px;
     height: 16px;
     display: block;
     cursor: pointer;

 .clickedbuttons {
     background: url(images/arrowleft.png) no-repeat;
     width: 16px;
     height: 16px;
     display: block;
     cursor: pointer;
 <a class="buttons" style="float: right;"></a>
 <a class="clickedbuttons" style="float: right;"></a>
 <br class="clear" />
 <div class="sidebar" style="float: right;width: 19%;">
 <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
 <td class="thead"><strong>
 Latest News
 <td class="trow1">
 You can put some news stuff here
 <div class="forums" style="float: left;width: 80%;">
 <br class="clear" />

 <dl class="forum_legend smalltext">
     <dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>

     <dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>

     <dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
 <br style="clear: both" />



Acum: AdminCP > Templates & Style > Templates > Tema ta > Ungrouped Templates > headerinclude . După linia 







<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/sidebar.js"></script>



Am ataşat 4 fişiere intr-o arhiva, după cum urmează:

1. cele 2 imagini se urcă în fişierele temei folosite din FTP (din folderul images)

2. cele 2 fisiere .js se urca in folderul jscripts


  • Upvote 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.