How do you make a widget that allows the users to set the width of the forum? im not so sure of how that code would look
4 posters
how to make a width adjusting widget
aamir.boyd- New Member
- Posts : 11
Reputation : 1
Language : english
- Post n°1
how to make a width adjusting widget
TheCrow- Manager
- Posts : 6916
Reputation : 795
Language : Greek, English
- Post n°2
Re: how to make a width adjusting widget
You could add this and get done with it. This will leave you with default width or when wanted with widgets.
 Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
aamir.boyd- New Member
- Posts : 11
Reputation : 1
Language : english
- Post n°3
Re: how to make a width adjusting widget
i mean like, i want it so that the members can adjust the width to whatever they like
Kite Trojan- Forumember
- Posts : 823
Reputation : 19
Language : English
- Post n°4
Re: how to make a width adjusting widget
Something like this?Â
http://tokenatoracademy.topicboard.net/forum like the one of this forum?
http://tokenatoracademy.topicboard.net/forum like the one of this forum?
aamir.boyd- New Member
- Posts : 11
Reputation : 1
Language : english
- Post n°5
Re: how to make a width adjusting widget
yeah, like that, nd wow that place looks cool
Kite Trojan- Forumember
- Posts : 823
Reputation : 19
Language : English
- Post n°6
Re: how to make a width adjusting widget
I don't know the code yet , Â but I can try to get u the code
aamir.boyd- New Member
- Posts : 11
Reputation : 1
Language : english
- Post n°7
Re: how to make a width adjusting widget
thatd be greatly appreciated thanks
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°8
Re: how to make a width adjusting widget
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
aamir.boyd- New Member
- Posts : 11
Reputation : 1
Language : english
- Post n°9
Re: how to make a width adjusting widget
the widget shows up on the page, but whenever i click set, nothing happens, any pointers on something i might be doing wrong or something i left out? i used the javascript code from the first guy and the widget source from the second guy
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°10
Re: how to make a width adjusting widget
Create a Widget:
- Code:
  <script type="text/javascript">
  jQuery(document).ready(function(){
  jQuery("#forumwidth").click(function(){
  var a=eval(document.getElementById("selectwidth").value);
  var b=0;
  jQuery("body#phpbb").animate({width:a},800, "linear");
  if(a==1050){b=1;}
  if(a==1100){b=2;}
  if(a==1200){b=3;}
  if(a==1300){b=4;}
  setKuki('bodylinewidthkuki',b,365);
   });
  });
  </script>
  <center><div style="text-align: center;"><input type=submit id="forumwidth" value="Set">
  <select id="selectwidth">
   <option selected>980</option>
   <option>1050</option>
   <option>1100</option>
   <option>1200</option>
   <option>1300</option>
  </select>
  </div></center>
- Code:
  jQuery(function(){
  jQuery(window).load(function(){
  if(parseInt(getKuki('bodylinewidthkuki'))==0){
  jQuery("table.bodylinewidth").width(980);
  }
  if(parseInt(getKuki('bodylinewidthkuki'))==1){
  jQuery("table.bodylinewidth").width(1050);
  }
  if(parseInt(getKuki('bodylinewidthkuki'))==2){
  jQuery("table.bodylinewidth").width(1100);
  }
  if(parseInt(getKuki('bodylinewidthkuki'))==3){
  jQuery("table.bodylinewidth").width(1200);
  }
  if(parseInt(getKuki('bodylinewidthkuki'))==4){
  jQuery("table.bodylinewidth").width(1300);
  }
  });
  });
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
aamir.boyd- New Member
- Posts : 11
Reputation : 1
Language : english
- Post n°11
Re: how to make a width adjusting widget
kk thanks, Â topic solved and locked
SLGray- Administrator
- Posts : 51498
Reputation : 3523
Language : English
Location : United States
- Post n°12
Re: how to make a width adjusting widget
You're welcome.
Topic Solved & Locked
Topic Solved & Locked
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.