|
Force Classic or New Post Layout
|
|
08-30-2008, 02:18 AM
Post: #1
|
|||
|
|||
|
Force Classic or New Post Layout
I think we should have the option to force post layout on our users. We already have control over what the rest of our forum looks like, and this is an option that the admin should be able to control. I have no interest in allowing the new post layout on my board, and I am sure others love it and want all of their users to use it. So please give us the option.
|
|||
|
08-30-2008, 02:27 AM
Post: #2
|
|||
|
|||
|
RE: Force Classic or New Post Layout
You can change it back to classic via Admin CP.
My Boards |
|||
|
08-30-2008, 02:27 AM
Post: #3
|
|||
|
|||
RE: Force Classic or New Post Layout
(08-30-2008 02:27 AM)ToxicZero Wrote: You can change it back to classic via Admin CP. This option does not override the User CP. |
|||
|
08-30-2008, 06:43 AM
Post: #4
|
|||
|
|||
|
RE: Force Classic or New Post Layout
Something you could try is just copy the contents of postbit_classic and paste it into the postbit template.
|
|||
|
08-30-2008, 07:25 AM
Post: #5
|
|||
|
|||
RE: Force Classic or New Post Layout
(08-30-2008 06:43 AM)ZiNgA BuRgA Wrote: Something you could try is just copy the contents of postbit_classic and paste it into the postbit template. I did this, but the output was a little weird looking. That, and this is a rather contrived solution to something that should be simpler than this. |
|||
|
08-31-2008, 01:50 AM
Post: #6
|
|||
|
|||
RE: Force Classic or New Post Layout
(08-30-2008 07:25 AM)Bey Brad Wrote: I did this, but the output was a little weird looking. It should look exactly the same. This is probably the best solution until the option to force which postbit is used is added.
|
|||
|
08-31-2008, 06:51 AM
Post: #7
|
|||
|
|||
RE: Force Classic or New Post Layout
(08-31-2008 01:50 AM)monacelli Wrote:(08-30-2008 07:25 AM)Bey Brad Wrote: I did this, but the output was a little weird looking. Yes, well, it didn't, and I know how to copy and paste.
|
|||
|
08-31-2008, 07:23 AM
(This post was last modified: 08-31-2008 07:26 AM by mix..)
Post: #8
|
|||
|
|||
|
RE: Force Classic or New Post Layout
I'd also like this. Something that'd make the admin's choice of layout the default layout to both guests and registered members.
If they don't like it, there's always the User CP... but yeah, a change like this makes sense. EDIT: Oddly enough, setting "1" as the default value in the classpostbit field in the mybb_users table doesn't make "1" the default. It still shows "0" on all users that register after this change. bluemechaoxide - A collection of my stuff. |
|||
|
08-31-2008, 07:45 AM
Post: #9
|
|||
|
|||
RE: Force Classic or New Post Layout
(08-31-2008 01:50 AM)monacelli Wrote: It should look exactly the same. Actually there are two minor differences... for classic mode, MyBB shows the "classic header" (the thing that says Author and Message), and adds a <br /> tag to the usergroup image. Instead of changing the postbit templates to force one layout or the other, you can edit the User CP Options page and get rid of the option... Instructions Open the usercp_options template. Find and remove the following code: Code: <tr>Now find this (near the top of the template): Code: <form action="usercp.php" method="post">And add this underneath: Code: <input type="hidden" name="classicpostbit" value="1" />Change the value from 1 to 0 if you don't want the classic layout. Save the template. For new registrations, you'll need to apply the PHP code fix posted by DennisTT here (which will be included in 1.4.2). Finally, to set the option for all existing users, run this database query: Code: UPDATE mybb_users SET classicpostbit=1Again, change the 1 to 0 if necessary. Done. Note: I know users can still change the option if they really want to (and know how), but who cares?
|
|||
|
08-31-2008, 07:47 AM
Post: #10
|
|||
|
|||
|
RE: Force Classic or New Post Layout
The default values of MySQL columns aren't really used in the mybb_users table. Generally the user datahandler in MyBB dictates the "default" value.
Dennis Tsang :: MyBB Developer Follow me on Twitter: @dennistt |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help


![[Image: OTZoZ.jpg]](http://imgur.com/OTZoZ.jpg)




![[Image: celli.gif]](http://i255.photobucket.com/albums/hh136/rapewon/celli.gif)