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 Tue Jun 05, 2012 11:59 pm

I need the html/java code for the wiget that allows users to change the forum width
avatar
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 Wed Jun 06, 2012 12:04 am

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



avatar
APE
Manager
Manager

Male Posts : 10662
Reputation : 996
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 Wed Jun 06, 2012 12:08 am

Uhm check the wiget on the right http://www.duelacademy.net/forum
avatar
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 Wed Jun 06, 2012 12: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



avatar
APE
Manager
Manager

Male Posts : 10662
Reputation : 996
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 Wed Jun 06, 2012 12:40 am

Link to LGForums?
avatar
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 Wed Jun 06, 2012 11:37 am

Thank you Rideem and Thank you APE for helping
avatar
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 Wed Jun 06, 2012 11:39 am

Devan is this solved?
avatar
Nera.
Energetic

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

http://webartzforum.com

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on Wed Jun 06, 2012 11: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
avatar
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 Wed Jun 06, 2012 5:24 pm

Alright
avatar
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 Wed Jun 06, 2012 8: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
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
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 Wed Jun 06, 2012 8:50 pm

Hm doesnt work and I have phpbb3 (prety sure)
avatar
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 Wed Jun 06, 2012 9: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.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
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 Wed Jun 06, 2012 10:26 pm

Hm doesnt work and i rechecked and ye i have phbb2 not 3-.- sorry
avatar
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 Fri Jun 08, 2012 7:20 pm

Hm so?
avatar
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 Fri Jun 08, 2012 7: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.
avatar
Tonight
Forumember

Male Posts : 258
Reputation : 69
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

Solved Re: Allow members to change width of forum

Post by LGforum on Fri Jun 08, 2012 7: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.
avatar
LGforum
Hyperactive

Male Posts : 2262
Reputation : 260
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 Fri Jun 08, 2012 8:28 pm

Lol what's next free beer and pretzels.

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

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

Back to top Go down

Solved Re: Allow members to change width of forum

Post by Devan on Sat Jun 09, 2012 8:49 pm

Thxs guys you may lock the topic
avatar
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 Sun Jun 10, 2012 4:15 am

Topic Solved & Locked


Jophy
avatar
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