The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Allow members to change width of forum

View previous topic View next topic Go down

Solved Allow members to change width of forum

Post by Devan on June 6th 2012, 1:59 am

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

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by APE on June 6th 2012, 2:04 am

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




APE
Manager
Manager

Male Posts : 8622
Reputation : 754
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 6th 2012, 2:08 am

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

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by APE on June 6th 2012, 2:28 am

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




APE
Manager
Manager

Male Posts : 8622
Reputation : 754
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 6th 2012, 2:40 am

Link to LGForums?

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 6th 2012, 1:37 pm

Thank you Rideem and Thank you APE for helping

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Nera. on June 6th 2012, 1:39 pm

Devan is this solved?

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 6th 2012, 1:42 pm

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
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 6th 2012, 7:24 pm

Alright

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by LGforum on June 6th 2012, 10: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

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 6th 2012, 10:50 pm

Hm doesnt work and I have phpbb3 (prety sure)

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by LGforum on June 6th 2012, 11: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.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 7th 2012, 12:26 am

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

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 8th 2012, 9:20 pm

Hm so?

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Tonight on June 8th 2012, 9: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.

Tonight
Forumember

Male Posts : 241
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

Solved Re: Allow members to change width of forum

Post by LGforum on June 8th 2012, 9: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.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by kirk on June 8th 2012, 10:28 pm

Lol what's next free beer and pretzels.

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

kirk
Forumaster

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

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on June 9th 2012, 10:49 pm

Thxs guys you may lock the topic

Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Jophy on June 10th 2012, 6:15 am

Topic Solved & Locked


Jophy

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum