MyBB Community Forums
[MyBB 1.4.1] "Display posts using the classic layout" - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.1 (https://community.mybb.com/forum-93.html)
+------ Thread: [MyBB 1.4.1] "Display posts using the classic layout" (/thread-36138.html)

Pages: 1 2


[MyBB 1.4.1] "Display posts using the classic layout" - GG-Xtreme - 2008-08-18

No matter what the 'Post layout' setting is set to in the Show Thread Options in the Admin CP, the horizontal post layout is always displayed. Now, no offense to the MyBB team and those that like the horizontal post layout, but I hate it and I will keep my forums closed until I get the classic post layout back.
Edit: Ok, someone figured out that the update reset the individual values for this setting for each user. However, I can't access this value from the Admin CP (only from the User CP). I would just run an SQL query, but I need to force every user to use the classic post layout without even giving them the option, and it's pretty stupid that any user can override the admin settings. Please fix this.
Edit: Ok, I have modified the templates to remove the option, but new user registrations automatically revert to the horizontal post layout. I don't know why someone moved this from the bug report forums, because there shouldn't be an option in the Admin CP if it doesn't do anything.


RE: [MyBB 1.4.1] "Display posts using the classic layout" - Snorlaxative - 2008-08-18

If you have phpmyadmin, you can change the default value to classicsetting (or whatever the row is) to 1 instead of 0. That'll make all new registered users have that setting.

The option in the Admin CP works, but only for guests.


RE: [MyBB 1.4.1] "Display posts using the classic layout" - GG-Xtreme - 2008-08-19

But how could they make such a stupid change and call it a feature? At least have a user/group option in the admin CP to set this. In 1.4, the admin CP option overrode the User CP option, but now that it doesn't, I have to use phpMyAdmin just to change a setting?


RE: [MyBB 1.4.1] "Display posts using the classic layout" - Dennis Tsang - 2008-08-19

In inc/datahandlers/user.php, find:
$this->verify_yesno_option($options, 'classicpostbit', 0);
Replace with:
if($mybb->settings['postlayout'] == 'horizontal')
{
    $this->verify_yesno_option($options, 'classicpostbit', 0);
}
else
{
    $this->verify_yesno_option($options, 'classicpostbit', 1);
}

That should fix the classic postbit setting on registration (it will take the setting from the Admin CP). Please give this a try and let me know if it solves the registration problem.

However, as there's an option for this in the User CP, the User CP option will always override the Admin CP option (or else why would we have a UCP option). The ACP option is for guests, as above poster said.


RE: [MyBB 1.4.1] "Display posts using the classic layout" - Ryan Gordon - 2008-08-19

(2008-08-19, 12:08 AM)GG-Xtreme Wrote: But how could they make such a stupid change and call it a feature? At least have a user/group option in the admin CP to set this. In 1.4, the admin CP option overrode the User CP option, but now that it doesn't, I have to use phpMyAdmin just to change a setting?

We're not 100% perfect and I don't expect you to be either.


RE: [MyBB 1.4.1] "Display posts using the classic layout" - OhLiam - 2008-08-19

(2008-08-19, 12:19 AM)DennisTT Wrote: That should fix the classic postbit setting on registration

That works Wink
Tested x

Thanks.. XD I wanted this as my template looks best in classic.


RE: [MyBB 1.4.1] "Display posts using the classic layout" - GG-Xtreme - 2008-08-19

(2008-08-19, 12:19 AM)DennisTT Wrote: In inc/datahandlers/user.php, find:
$this->verify_yesno_option($options, 'classicpostbit', 0);
Replace with:
if($mybb->settings['postlayout'] == 'horizontal')
{
    $this->verify_yesno_option($options, 'classicpostbit', 0);
}
else
{
    $this->verify_yesno_option($options, 'classicpostbit', 1);
}

That should fix the classic postbit setting on registration (it will take the setting from the Admin CP). Please give this a try and let me know if it solves the registration problem.

However, as there's an option for this in the User CP, the User CP option will always override the Admin CP option (or else why would we have a UCP option). The ACP option is for guests, as above poster said.
Thank you, I will give that a try.

(2008-08-19, 12:56 AM)Ryan Gordon Wrote:
(2008-08-19, 12:08 AM)GG-Xtreme Wrote: But how could they make such a stupid change and call it a feature? At least have a user/group option in the admin CP to set this. In 1.4, the admin CP option overrode the User CP option, but now that it doesn't, I have to use phpMyAdmin just to change a setting?

We're not 100% perfect and I don't expect you to be either.
I'm sorry if I came across as rude, it's just that I was pretty sure that it was a bug, but when my thread was moved here, I figured that no one else noticed the change between the versions and that I was being mistaken as an idiot. I shouldn't have made that assumption, and I apologize.


RE: [MyBB 1.4.1] "Display posts using the classic layout" - OhLiam - 2008-08-19

What querie do I run in phpmyadmin to change all users to classic ?


RE: [MyBB 1.4.1] "Display posts using the classic layout" - Dennis Tsang - 2008-08-19

Try this:
UPDATE mybb_users SET classicpostbit=1



RE: [MyBB 1.4.1] "Display posts using the classic layout" - ajsuk - 2008-08-20

Seems good,

Does this mean the code fix is good to go for 1.4.2?