Afisare/Ascundere Categorie • Tutoriale PHPBB3 • Forum CS Gothic - Tutoriale Counter Strike - Server CS
It is currently 18 May 2012, 16:53












Mobile Payments by Fortumo



 Page 1 of 1 [ 1 mesaj ] 
Your Ad Here
Author Message
 Post subject: Afisare/Ascundere Categorie
PostPosted: 01 Nov 2011, 11:38 
Membru Fidel
User avatar

Joined: 09 Oct 2011, 14:49
Posts: 260
Location: In spatele tau
Multumiri date: 4
Multumiri primite: 10
Arma Preferata: M4a1
Harta Preferata: deathrun_skills
Puncte Reputatie: 422
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Your Ad Here
Descriere: Puteti ascunde categoria printr-un simplu click.

Autor: Sniper_E

Fisere de modificat:
prosilver/template/overall_header.html
prosilver/template/forumlist_body.html

Instalare:
* Creeati un fisier scripts.js cu continutul:

var PreloadFlag = false;
    var expDays = 90;
    var exp = new Date();
    var tmp = '';
    var tmp_counter = 0;
    var tmp_open = 0;

    exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

    function SetCookie(name, value)
    {
       var argv = SetCookie.arguments;
       var argc = SetCookie.arguments.length;
       var expires = (argc > 2) ? argv[2] : null;
       var path = (argc > 3) ? argv[3] : null;
       var domain = (argc > 4) ? argv[4] : null;
       var secure = (argc > 5) ? argv[5] : false;
       document.cookie = name + "=" + escape(value) +
          ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
          ((path == null) ? "" : ("; path=" + path)) +
          ((domain == null) ? "" : ("; domain=" + domain)) +
          ((secure == true) ? "; secure" : "");
    }

    function getCookieVal(offset)
    {
       var endstr = document.cookie.indexOf(";",offset);
       if (endstr == -1)
       {
          endstr = document.cookie.length;
       }
       return unescape(document.cookie.substring(offset, endstr));
    }

    function GetCookie(name)
    {
       var arg = name + "=";
       var alen = arg.length;
       var clen = document.cookie.length;
       var i = 0;
       while (i < clen)
       {
          var j = i + alen;
          if (document.cookie.substring(i, j) == arg)
          {
             return getCookieVal(j);
          }
          i = document.cookie.indexOf(" ", i) + 1;
          if (i == 0)
          {
             break;
          }
       }
       return null;
    }

    function ShowHide(id1, id2, id3)
    {
       var res = expMenu(id1);
       if (id2 != '')
       {
          expMenu(id2);
       }
       if (id3 != '')
       {
          SetCookie(id3, res, exp);
       }
    }

    function expMenu(id)
    {
       var itm = null;
       if (document.getElementById)
       {
          itm = document.getElementById(id);
       }
       else if (document.all)
       {
          itm = document.all[id];
       }
       else if (document.layers)
       {
          itm = document.layers[id];
       }
       if (!itm)
       {
          // do nothing
       }
       else if (itm.style)
       {
          if (itm.style.display == "none")
          {
             itm.style.display = "";
             return 1;
          }
          else
          {
             itm.style.display = "none";
             return 2;
          }
       }
       else
       {
          itm.visibility = "show";
          return 1;
       }
    }

    function showMenu(id)
    {
       var itm = null;
       if (document.getElementById)
       {
          itm = document.getElementById(id);
       }
       else if (document.all)
       {
          itm = document.all[id];
       }
       else if (document.layers)
       {
          itm = document.layers[id];
       }
       if (!itm)
       {
          // do nothing
       }
       else if (itm.style)
       {
          if (itm.style.display == "none")
          {
             itm.style.display = "";
             return true;
          }
          else
          {
    //         itm.style.display = "none";
             return true;
          }
       }
       else
       {
          itm.visibility = "show";
          return true;
       }
    }

    function hideMenu(id)
    {
       var itm = null;
       if (document.getElementById)
       {
          itm = document.getElementById(id);
       }
       else if (document.all)
       {
          itm = document.all[id];
       }
       else if (document.layers)
       {
          itm = document.layers[id];
       }
       if (!itm)
       {
          // do nothing
       }
       else if (itm.style)
       {
          if (itm.style.display == "none")
          {
    //         itm.style.display = "";
             return true;
          }
          else
          {
             itm.style.display = "none";
             return true;
          }
       }
       else
       {
          itm.visibility = "hide";
          return true;
       }
    }

    function IsIEMac()
    {
       // Any better way to detect IEMac?
       var ua = String(navigator.userAgent).toLowerCase();
       if( document.all && ua.indexOf("mac") >= 0 )
       {
          return true;
       }
       return false;
    }


    function select_text(obj)
    {
       var o = document.getElementById(obj)
       if( !o ) return;
       var r, s;
       if( document.selection && !IsIEMac() )
       {
          // Works on: IE5+
          // To be confirmed: IE4? / IEMac fails?
          r = document.body.createTextRange();
          r.moveToElementText(o);
          r.select();
       }
       else if( document.createRange && (document.getSelection || window.getSelection) )
       {
          // Works on: Netscape/Mozilla/Konqueror/Safari
          // To be confirmed: Konqueror/Safari use window.getSelection ?
          r = document.createRange();
          r.selectNodeContents(o);
          s = window.getSelection ? window.getSelection() : document.getSelection();
          s.removeAllRanges();
          s.addRange(r);
       }
    }



Uploadati-l in prosilver/template/ !
Deschideti prosilver/template/overall_header.html:
Cautati:

<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>



Adaugati dupa:

<script type="text/javascript" src="{T_TEMPLATE_PATH}/scripts.js"></script>



Deschideti prosilver/template/forumlist_body.html:
Cautati: [linia7]

</div>



Adaugati dupa:

</div>



Cautati:

<div class="forabg">



Adaugati inainte:

<div id="{forumrow.FORUM_NAME}_h" style="display:none">
          <div class="forabg">
             <div class="inner"><span class="corners-top"><span></span></span>
             <ul class="topiclist">
                <li class="header">
                   <dl class="icon">
                      <dt><!-- IF forumrow.S_IS_CAT --><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a><!-- ELSE -->{L_FORUM}<!-- ENDIF --></dt>
                      <dd class="topics">&nbsp;</dd>
                      <dd class="posts">&nbsp;</dd>
                      <dd class="lastpost"><span>{forumrow.FORUM_NAME} forums are hidden<div style="float:{S_CONTENT_FLOW_END}"><img src="{T_THEME_PATH}/images/show.gif" width="15" height="15" onclick="javascript:ShowHide('{forumrow.FORUM_NAME}','{forumrow.FORUM_NAME}_h','{forumrow.FORUM_NAME}');" style="cursor:pointer;" alt="Show" title="Show {forumrow.FORUM_NAME} Forums" /></div></span></dd>
                   </dl>
                </li>
             </ul>
             <span class="corners-bottom"><span></span></span></div>
          </div>
       </div>

       <div id="{forumrow.FORUM_NAME}" style="display:block">
          <script type="text/javascript">
          <!--
          tmp = '{forumrow.FORUM_NAME}';
          if(GetCookie(tmp) == '2')
          {
             ShowHide('{forumrow.FORUM_NAME}', '{forumrow.FORUM_NAME}_h', '{forumrow.FORUM_NAME}');
          }
          //-->
          </script>


Cautati:

 <dd class="lastpost"><span>{L_LAST_POST}</span></dd>



Inlocuiti cu:

<dd class="lastpost"><span>{L_LAST_POST}<div style="float:{S_CONTENT_FLOW_END}"><img src="{T_THEME_PATH}/images/hide.gif" width="15" height="15" onclick="javascript:ShowHide('{forumrow.FORUM_NAME}','{forumrow.FORUM_NAME}_h','{forumrow.FORUM_NAME}');" style="cursor:pointer;" alt="Hide" title="Hide {forumrow.FORUM_NAME} Forums" /></div></span></dd>



Cautati:

</div>



Adaugati dupa:

</div>



* Copiati show.gif si hide.gif in prosilver/theme/images/.
* Da-ti refresh la template !
Download : Aici







Daca te-am ajutat dami un Image sau un Image !!!


Image
Toate probleme se posteaza pe forum!


ImageImageImageImage
Offline
 Profile  
 
Afisare/Ascundere Categorie Top
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 mesaj ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: