Activity Stream
48,167 MEMBERS
6860 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    droidrelease.co warezmalaysia.org

    Smile How To Make Select All In BB Code

    Hello KWWH

    Can You Give Code To Make Select All In BB Code



    hope you all can help me
    fbiotai93 Reviewed by fbiotai93 on . How To Make Select All In BB Code Hello KWWH Can You Give Code To Make Select All In BB Code http://imgcafe.com/view/uploads/catsofo.jpg hope you all can help me:)):)) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    1- Open the headinclude template and add in the end :
    PHP Code: 
    <script type="text/javascript">  
    function 
    selectCode(a)  
    {  
       var 
    a.parentNode.parentNode.getElementsByTagName('p')[0];  
       if (
    window.getSelection)  
       {  
          var 
    window.getSelection();  
           if (
    s.setBaseAndExtent)  
          {  
             
    s.setBaseAndExtent(e0ee.innerText.length 1);  
          }  
          else  
          {  
             var 
    document.createRange();  
             
    r.selectNodeContents(e);  
             
    s.removeAllRanges();  
             
    s.addRange(r);  
          }  
       }  
       else if (
    document.getSelection)  
       {  
          var 
    document.getSelection();  
          var 
    document.createRange();  
          
    r.selectNodeContents(e);  
          
    s.removeAllRanges();  
          
    s.addRange(r);  
       }  
       else if (
    document.selection)  
       {  
          var 
    document.body.createTextRange();  
          
    r.moveToElementText(e);  
          
    r.select();  
       }  
    }  
    </script> 
    2- Open the bbcode_code template and replace it with:
    PHP Code: 
    <div class="bbcode_container" 
        <
    div class="bbcode_description" style="padding-bottom:2px">{vb:rawphrase code}:&nbsp;<a href="#" onclick="selectCode(this); return false;" style="font-size:11px">(Click Here to Select All)</a></div
        <
    pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>><p>{vb:raw code}</p></pre
    </
    div
    3- Open the bbcode_html template and replace it with:
    PHP Code: 
    <div class="bbcode_container"
        <
    div class="bbcode_description" style="padding-bottom:2px">{vb:rawphrase html_code}:&nbsp;<a href="#" onclick="selectCode(this); return false;" style="font-size:11px">(Click Here to Select All)</a></div
        <
    pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']"style="height:<vb:if condition="$blockheight<=$vboptions['codemaxlines']">{vb:math {vb:math {vb:raw blockheight}+2}}*{vb:stylevar mid_fontSize}}<vb:else />{vb:math {vb:math {vb:raw blockheight}+1}*{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>><p>{vb:raw code}</p></pre
    </
    div
    4- Open the bbcode_php template and replace it with:
    PHP Code: 
    <div class="bbcode_container">
        <
    div class="bbcode_description" style="padding-bottom:2px">{vb:rawphrase php_code}:&nbsp;<a href="#" onclick="selectCode(this); return false;" style="font-size:11px">(Click Here to Select All)</a></div>
        <
    div class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>><code><p>{vb:raw code}</p></code></div>
    </
    div
    --------------------------------

    * If you want to add button instead of text :-
    Open the bbcode_code template and find :
    PHP Code: 
    <a href="#" onclick="selectCode(this); return false;" style="font-size:11px">(Click Here to Select All)</a
    Then replace it with :
    PHP Code: 
    <a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a
    Do the same thing in bbcode_html and bbcode_php

    Done !!!
    Im sory for my english, i hope all users can understand me

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to make all my download links in a code box?
    By jiefangjun in forum Webmaster Discussion
    Replies: 2
    Last Post: 10th Apr 2012, 01:53 PM
  2. Make Links clickable in Code. in vBulletin 4.1.7
    By Th3KiNG in forum vBulletin
    Replies: 2
    Last Post: 15th Nov 2011, 09:04 AM
  3. Pls ! Help me select building code forum (vBulletin - ipb - mybb) ????
    By fileserve4u in forum Webmaster Discussion
    Replies: 2
    Last Post: 14th Jul 2011, 03:11 PM
  4. Make Any Links Clickable in WordPress with One-Line Code
    By ThreeNF in forum Webmaster Resources
    Replies: 8
    Last Post: 13th May 2011, 02:46 PM
  5. How to make clickable links in code
    By SarMa in forum vBulletin
    Replies: 5
    Last Post: 28th Oct 2009, 01:10 PM

Tags for this Thread

BE SOCIAL