Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: babjusi on June 03, 2009, 01:05:15 PM

Title: Set the forum width from the acp of your forum.
Post by: babjusi on June 03, 2009, 01:05:15 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1870)

This modification will allow you to set the forum width from the comfort of your own forum Acp. To set the forum width go to Current Theme-Width of your forum.
To have an idea of how the mod looks like when used, please have a look at the attached screenshots :)
Title: Re: Set the forum width from the acp of your forum.
Post by: alex30 on June 03, 2009, 10:48:55 PM
Nice mod, thanks.
Title: Re: Set the forum width from the acp of your forum.
Post by: G6™ on June 04, 2009, 11:32:06 AM
Seems to not be working properly, tested on 1.1.9 and it sets everything to the left side for some reason, have installed though the package manager and also did a manual install after that, still the same thing with everything align to the left side of the screen.
Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 04, 2009, 11:57:02 AM
Quote from: G6™ on June 04, 2009, 11:32:06 AM
Seems to not be working properly, tested on 1.1.9 and it sets everything to the left side for some reason, have installed though the package manager and also did a manual install after that, still the same thing with everything align to the left side of the screen.

After you install it, can you try to hard refresh the browser and give it another try G6™? I just tried it now and everything worked ok.
Title: Re: Set the forum width from the acp of your forum.
Post by: G6™ on June 04, 2009, 12:38:31 PM
Tried about everything now, still sets the entire forum to the left hand side.

Preview my live site here, Cant show my testsite as it's on my local here, but it behave the same way.

http://www.familjegodis.se/index.php?action=forum;theme=1
Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 04, 2009, 12:43:35 PM
Quote from: G6™ on June 04, 2009, 12:38:31 PM
Tried about everything now, still sets the entire forum to the left hand side.

Preview my live site here, Cant show my testsite as it's on my local here, but it behave the same way.

http://www.familjegodis.se/index.php?action=forum;theme=1 (http://www.familjegodis.se/index.php?action=forum;theme=1)

That site looks fine to me g6, no left aligning at all. Here is the screenshot attached.

I see that you are testing it with tp. Can you test it in a stand alone smf and see if that would make any difference?
Title: Re: Set the forum width from the acp of your forum.
Post by: zidlicky on June 05, 2009, 02:43:29 AM
Babjuci,

I get this error with your mod through package handler:
Execute Modification     ./Themes/default/style.css

This is the only error line, everything else ok. The only other mod I have installed with this is 'pretty url'. Known conflict?

Running v1.1.9 on Apache/Babylon theme.
If there is no fix I will try manual install. Thanks.
Title: Re: Set the forum width from the acp of your forum.
Post by: j_jindal1 on June 05, 2009, 04:57:43 AM
I installed this mod, but nothing happened.... Will this mod work only for default theme.. I'm using a custom theme.. I installed this mod and I dont' see the

"Width of your forum" option anywhere in theme settings.... Please help....  :)
Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 05, 2009, 10:27:40 AM
Quote from: zidlicky on June 05, 2009, 02:43:29 AM
Babjuci,

I get this error with your mod through package handler:
Execute Modification     ./Themes/default/style.css

This is the only error line, everything else ok. The only other mod I have installed with this is 'pretty url'. Known conflict?

Running v1.1.9 on Apache/Babylon theme.
If there is no fix I will try manual install. Thanks.

You can use the mod parser under the mod download link to make the edits for the style.css file.

Quote from: j_jindal1 on June 05, 2009, 04:57:43 AM
I installed this mod, but nothing happened.... Will this mod work only for default theme.. I'm using a custom theme.. I installed this mod and I dont' see the

"Width of your forum" option anywhere in theme settings.... Please help....  :)

Yes, the mod works with default theme only. To make it work with a custom theme you must make the edits manually to that theme''s template that my mod edits.
Title: Re: Set the forum width from the acp of your forum.
Post by: j_jindal1 on June 05, 2009, 11:07:08 AM
Thanks babjusi .... I will try it..
Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 05, 2009, 11:18:43 AM
Quote from: j_jindal1 on June 05, 2009, 11:07:08 AM
Thanks babjusi .... I will try it..

No problem, let me know how it will go.
Title: Re: Set the forum width from the acp of your forum.
Post by: Tattoocu_Cartel on June 05, 2009, 12:34:40 PM
good mod thanks , can you make for 2.0 rc-1 ?
Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 05, 2009, 01:14:11 PM
Quote from: Tattoocu_Cartel on June 05, 2009, 12:34:40 PM
good mod thanks , can you make for 2.0 rc-1 ?

I plan to upgrade it soon for 2.0.
Title: Re: Set the forum width from the acp of your forum.
Post by: the_shadow on June 05, 2009, 07:54:49 PM
thnkx i will wait
Title: Re: Set the forum width from the acp of your forum.
Post by: Tattoocu_Cartel on June 06, 2009, 05:16:18 PM
Quote from: babjusi on June 05, 2009, 01:14:11 PM
Quote from: Tattoocu_Cartel on June 05, 2009, 12:34:40 PM
good mod thanks , can you make for 2.0 rc-1 ?

I plan to upgrade it soon for 2.0.

okay ;)
Title: Re: Set the forum width from the acp of your forum.
Post by: lovearat on June 06, 2009, 10:45:18 PM
I get this error with your mod through package handler:
Execute Modification     ./Themes/default/style.css

This is the only error line, everything else ok. The only other mod I have installed with this is 'pretty url'. Known conflict?

Running v1.1.9 on default theme

I used the mod parser and then went to do the manual edit to the style.css  Part of the edit said to find  ?>  and place this before it, #forumwidth
{
   text-align: left;
   margin: 0 auto 0 auto;
   min-width: 750px;
   padding: 0 1px 0 1px;
}

But this is what is at the end of my file:

/* The AJAX notifier */
#ajax_in_progress
{
   background: #32CD32;
   color: white;
   text-align: center;
   font-weight: bold;
   font-size: 18pt;
   padding: 3px;
   width: 100%;
   position: fixed;
   top: 0;
   left: 0;
}

/* MOD New Style Message Icon */
#newstyleMI { width: 94%; border: 1px solid #7f9db9 }
#newstyleMI input { margin: 5px 10px 5px 15px }

So what do I need to do?

Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 07, 2009, 10:29:22 AM
Quote from: lovearat on June 06, 2009, 10:45:18 PM
I get this error with your mod through package handler:
Execute Modification     ./Themes/default/style.css

This is the only error line, everything else ok. The only other mod I have installed with this is 'pretty url'. Known conflict?

Running v1.1.9 on default theme

I used the mod parser and then went to do the manual edit to the style.css  Part of the edit said to find  ?>  and place this before it, #forumwidth
{
   text-align: left;
   margin: 0 auto 0 auto;
   min-width: 750px;
   padding: 0 1px 0 1px;
}

But this is what is at the end of my file:

/* The AJAX notifier */
#ajax_in_progress
{
   background: #32CD32;
   color: white;
   text-align: center;
   font-weight: bold;
   font-size: 18pt;
   padding: 3px;
   width: 100%;
   position: fixed;
   top: 0;
   left: 0;
}

/* MOD New Style Message Icon */
#newstyleMI { width: 94%; border: 1px solid #7f9db9 }
#newstyleMI input { margin: 5px 10px 5px 15px }

So what do I need to do?



Can you attach here the style.css file and I will make the edits for you.
Title: Re: Set the forum width from the acp of your forum.
Post by: lovearat on June 07, 2009, 12:12:56 PM
Quote from: babjusi on June 07, 2009, 10:29:22 AM
Quote from: lovearat on June 06, 2009, 10:45:18 PM
I get this error with your mod through package handler:
Execute Modification     ./Themes/default/style.css

This is the only error line, everything else ok. The only other mod I have installed with this is 'pretty url'. Known conflict?

Running v1.1.9 on default theme

I used the mod parser and then went to do the manual edit to the style.css  Part of the edit said to find  ?>  and place this before it, #forumwidth
{
   text-align: left;
   margin: 0 auto 0 auto;
   min-width: 750px;
   padding: 0 1px 0 1px;
}

But this is what is at the end of my file:

/* The AJAX notifier */
#ajax_in_progress
{
   background: #32CD32;
   color: white;
   text-align: center;
   font-weight: bold;
   font-size: 18pt;
   padding: 3px;
   width: 100%;
   position: fixed;
   top: 0;
   left: 0;
}

/* MOD New Style Message Icon */
#newstyleMI { width: 94%; border: 1px solid #7f9db9 }
#newstyleMI input { margin: 5px 10px 5px 15px }

So what do I need to do?



Can you attach here the style.css file and I will make the edits for you.

Thank you so much for your reply and your offer to make the edits for me. :)   But I got it figured out and I did the edits.
Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 07, 2009, 01:23:29 PM
Glad to hear that you worked it out lovearat.
Title: Re: Set the forum width from the acp of your forum.
Post by: ddarrell on June 09, 2009, 09:24:16 PM
Why would one want to set the width?

As it is, the forum just shrinks or expands to fit the viewer's window/page size.

Just curious.

?


Title: Re: Set the forum width from the acp of your forum.
Post by: babjusi on June 10, 2009, 07:48:26 AM
Quote from: ddarrell on June 09, 2009, 09:24:16 PM
Why would one want to set the width?

As it is, the forum just shrinks or expands to fit the viewer's window/page size.

Just curious.

?




I am not sure I understood you. How can you set the width of your forum with ''just shrinks or expands to fit the viewer's window/page size.''
Title: Re: Set the forum width from the acp of your forum.
Post by: Sevgiformu.com on June 10, 2009, 02:00:56 PM
Very nice Mod

Ticher

My Your Lisance

Turkish.


./Themes/default/languages/Modifications.turkish.php

Find (at the end of the file)

?>

Add Before:


//The language strings for the mod
$txt['set_forum_width'] = '<strong>Genişliği Forumunuzun:</strong>';
$txt['forum_width_desc'] = '<strong>Burada forum için piksel veya yüzde olarak genişliğini ayarlayabilirsiniz!</strong>';





Thank you
Title: Re: Set the forum width from the acp of your forum.
Post by: Ravac on June 10, 2009, 11:46:57 PM
Serbian Latin

// The language strings for the mod
$txt['set_forum_width'] = '<strong>Širina foruma:</strong>';
$txt['forum_width_desc'] = '<strong>Ovde postavljate širinu vašeg foruma, u pikselima ili procentima!</strong>';