Free Coding

Share | 
 

 Selectare totala pe forum [phpbb2]

View previous topic View next topic Go down 
DOMINIC



Sex : Male
Mesaje : 32
Free Dollars : 102
Data de inscriere : 2011-09-01
Varsta : 20
Localizare : MARAMURES

PostSubject: Selectare totala pe forum [phpbb2]   Fri Sep 02, 2011 12:11 pm

Titlu spune tot, as dori si eu codu de selectare totala pentru versiune de forum phpbb2 Very Happy
Back to top Go down
View user profile http://graphicart.forumhit.ro
puNNcT.

avatar

Sex : Male
Mesaje : 38
Free Dollars : 115
Data de inscriere : 2011-08-31
Varsta : 21
Localizare : Stokton , CA

PostSubject: Re: Selectare totala pe forum [phpbb2]   Fri Sep 02, 2011 1:05 pm

Nu cred ca e posibil Very Happy , parerea mea.
Back to top Go down
View user profile http://westcs.forum.st/forum
Gassy
Administrator
avatar

Sex : Male
Mesaje : 224
Free Dollars : 599
Data de inscriere : 2011-07-09
Varsta : 22
Localizare : Romania

PostSubject: Re: Selectare totala pe forum [phpbb2]   Fri Sep 02, 2011 10:21 pm

Este posibil si pe phpBB2 cu toate ca forumgratuit spune ca nu! Cool

PA => Module => HTML & JAVASCRIPT => Javascript codes management => Javascript Codes:
Click pe butonul 'Create a new javascript', iar la Javascript Code * :
Code:

    function selectCode(a)
        {
        // Get ID of code block
        var e = jQuery(a).closest('tr').next().find('.cont_code')[0];

        // Not IE
        if (window.getSelection)
        {
        var s = window.getSelection();
        // Safari
        if (s.setBaseAndExtent)
        {
        s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
        }
        // Firefox and Opera
        else
        {
        // workaround for bug # 42885
        if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>')
        {
        e.innerHTML = e.innerHTML + ' ';
        }

        var r = document.createRange();
        r.selectNodeContents(e);
        s.removeAllRanges();
        s.addRange(r);
        }
        }
        // Some older browsers
        else if (document.getSelection)
        {
        var s = document.getSelection();
        var r = document.createRange();
        r.selectNodeContents(e);
        s.removeAllRanges();
        s.addRange(r);
        }
        // IE
        else if (document.selection)
        {
        var r = document.body.createTextRange();
        r.moveToElementText(e);
        r.select();
        }
        }
        jQuery(function(){

        jQuery('div.postbody td.code').parent().prev().find('b').html('Code:
        <a href="javascript:void()" onClick="selectCode(this)"><font
        face="verdana" color="red"></font> Select Content </a>');
        });
Placement : In all the pages! Wink
Back to top Go down
View user profile http://free-coding.hitforum.ro
DOMINIC



Sex : Male
Mesaje : 32
Free Dollars : 102
Data de inscriere : 2011-09-01
Varsta : 20
Localizare : MARAMURES

PostSubject: Re: Selectare totala pe forum [phpbb2]   Sat Sep 03, 2011 9:07 am

Apare acolo selectare totala dar cand dai pe selectare totala, nu selecteaza :-??
Back to top Go down
View user profile http://graphicart.forumhit.ro
Gassy
Administrator
avatar

Sex : Male
Mesaje : 224
Free Dollars : 599
Data de inscriere : 2011-07-09
Varsta : 22
Localizare : Romania

PostSubject: Re: Selectare totala pe forum [phpbb2]   Sat Sep 03, 2011 9:17 am

Sigur ai bifat 'In all the pages!'?
Back to top Go down
View user profile http://free-coding.hitforum.ro
DOMINIC



Sex : Male
Mesaje : 32
Free Dollars : 102
Data de inscriere : 2011-09-01
Varsta : 20
Localizare : MARAMURES

PostSubject: Re: Selectare totala pe forum [phpbb2]   Sat Sep 03, 2011 9:18 am

Da, am seelectat !
Back to top Go down
View user profile http://graphicart.forumhit.ro
Gassy
Administrator
avatar

Sex : Male
Mesaje : 224
Free Dollars : 599
Data de inscriere : 2011-07-09
Varsta : 22
Localizare : Romania

PostSubject: Re: Selectare totala pe forum [phpbb2]   Sat Sep 03, 2011 9:20 am

Incercati sa puneti acest cod intr-un widget...
Back to top Go down
View user profile http://free-coding.hitforum.ro
DOMINIC



Sex : Male
Mesaje : 32
Free Dollars : 102
Data de inscriere : 2011-09-01
Varsta : 20
Localizare : MARAMURES

PostSubject: Re: Selectare totala pe forum [phpbb2]   Sat Sep 03, 2011 9:24 am

Aa, am rezolvat deja, aveam un cod in widget si din cauza aia nu mergea, codul era pentru phpbb3! topic.closed ! multam gassy !
Back to top Go down
View user profile http://graphicart.forumhit.ro
Gassy
Administrator
avatar

Sex : Male
Mesaje : 224
Free Dollars : 599
Data de inscriere : 2011-07-09
Varsta : 22
Localizare : Romania

PostSubject: Re: Selectare totala pe forum [phpbb2]   Sat Sep 03, 2011 9:28 am

Cu placere!

Topic rezolvat => Inchis!
Back to top Go down
View user profile http://free-coding.hitforum.ro
Sponsored content




PostSubject: Re: Selectare totala pe forum [phpbb2]   

Back to top Go down
 

Selectare totala pe forum [phpbb2]

View previous topic View next topic Back to top 

 Similar topics

-
» Pop-Up de conexiune pentru versiunea de forum PhpBB2 (forumgratuit)
» Buna CUM POT SA PUN UN MODERATOR LA O SINGURA CATEGORIE DIN FORUM
» [Phpbb2]Border-radius la toate avatarele forumului
» Cum sa iti maresti viteza internetului simplu (Windows)
» Vizualizare forum + widget-uri + restructurare categorii

Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Free Coding :: Suport Gratuit :: Suport JS :: Probleme rezolvate-