The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
+3
Nera.
Ape
Devan
7 posters

    Allow members to change width of forum

    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Allow members to change width of forum

    Post by Devan June 5th 2012, 4:59 pm

    I need the html/java code for the wiget that allows users to change the forum width
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19327
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Allow members to change width of forum

    Post by Ape June 5th 2012, 5:04 pm

    Sorry but we can not change the size of the forum for each member
    we just don't have the settings sorry



    Allow members to change width of forum Left1212Allow members to change width of forum Center11Allow members to change width of forum Right112
    Allow members to change width of forum Ape_b110
    Allow members to change width of forum Ape1010
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 5th 2012, 5:08 pm

    Uhm check the wiget on the right http://www.duelacademy.net/forum
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19327
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Allow members to change width of forum

    Post by Ape June 5th 2012, 5:28 pm

    Wow i stand corrected lol you could pm the admin there and ask or maybe LGforum could help out on this one Wink



    Allow members to change width of forum Left1212Allow members to change width of forum Center11Allow members to change width of forum Right112
    Allow members to change width of forum Ape_b110
    Allow members to change width of forum Ape1010
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 5th 2012, 5:40 pm

    Link to LGForums?
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 6th 2012, 4:37 am

    Thank you Rideem and Thank you APE for helping
    Nera.
    Nera.
    Energetic


    Female Posts : 7078
    Reputation : 2017
    Language : English
    Location : -

    Solved Re: Allow members to change width of forum

    Post by Nera. June 6th 2012, 4:39 am

    Devan is this solved?
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 6th 2012, 4:42 am

    Not realy, idk why but it's moving to right and left and center beside actually changing the size
    maybe its changing the whole sites width? i think i wanted the forums width
    http://www.duelacademy.net/forum <<if you change width there the forum size changes
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 6th 2012, 10:24 am

    Alright
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Allow members to change width of forum

    Post by LGforum June 6th 2012, 1:37 pm

    Here's the fixed version of Rideems. He's going away, so I've got it for him lol.

    Code:

    <select id="body_font"><option value="1000px">1000px</option><option value="500px">500px</option></select> <input type="button" onClick="setWidth(document.getElementById('body_font').value)" value="Change Width" />
    <script type="text/javascript">
    function setWidth(val) {
      document.getElementById('main').style.width = val;
      my_setcookie('body_width', val, true);
    }
    if(my_getcookie('body_width')) setWidth(my_getcookie('body_width'));
    </script>

    Note that this is a simple version. It won't perform the smooth animation or anything.
    It also may not work since I don't know anything about phpbb2 and refuse to look at its ugliness Razz
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 6th 2012, 1:50 pm

    Hm doesnt work and I have phpbb3 (prety sure)
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Allow members to change width of forum

    Post by LGforum June 6th 2012, 2:18 pm

    If you use phpbb3 (your profile says phpbb2) then use this:
    Code:

    <select id="body_font"><option value="1000">1000px</option><option value="500">500px</option></select> <input type="button" onClick="setWidth(document.getElementById('body_font').value)" value="Change Width" />
    <script type="text/javascript">
    function setWidth(val) {
      document.getElementById('wrap').style.width = val+'px';
      my_setcookie('body_width', val, true);
    }
    if(my_getcookie('body_width')) setWidth(my_getcookie('body_width'));
    </script>
    (You may have to clear your cookies in order to try this)

    This is such an odd thing to do. Fixed widths are bad enough as it is.
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 6th 2012, 3:26 pm

    Hm doesnt work and i rechecked and ye i have phbb2 not 3-.- sorry
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 8th 2012, 12:20 pm

    Hm so?
    Tonight
    Tonight
    Forumember


    Male Posts : 312
    Reputation : 80
    Language : Estonian, English, Russian
    Location : Estonia

    Solved Re: Allow members to change width of forum

    Post by Tonight June 8th 2012, 12:46 pm

    Code:
    jQuery(document).ready(function(){

    jQuery("#posaljiwidth").click(function(){
    var a=eval(document.getElementById("selektwidth").value);
    var b=0;
    jQuery("table.bodylinewidth").animate({width:a},800, "linear");
    if(a==1000){b=1;}
    if(a==1100){b=2;}
    if(a==1200){b=3;}
    if(a==1300){b=4;}
    if(a==1400){b=5;}
    setKuki('bodylinewidthkuki',b,365);
      });


    });
    Should be Javascript.
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Allow members to change width of forum

    Post by LGforum June 8th 2012, 12:58 pm

    That won't work. For a number of reasons.

    The code I provided was for phpbb3. I don't plan on looking at phpbb2. You could wait for Rideem3 to come back... maybe he'll be willing to look.
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    Solved Re: Allow members to change width of forum

    Post by kirk June 8th 2012, 1:28 pm

    Lol what's next free beer and pretzels.

    Nice work guys. Just when you think you seen it all thumright
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Allow members to change width of forum

    Post by Devan June 9th 2012, 1:49 pm

    Thxs guys you may lock the topic
    Jophy
    Jophy
    ForumGuru


    Male Posts : 17922
    Reputation : 836
    Language : English
    Location : Somewhere

    Solved Re: Allow members to change width of forum

    Post by Jophy June 9th 2012, 9:15 pm

    Topic Solved & Locked

    Allow members to change width of forum Modera10
    Jophy

      Current date/time is September 23rd 2024, 8:36 am