Current time: 03-19-2010, 04:49 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MyBB 1.4.1] "Display posts using the classic layout"
08-18-2008, 06:56 PM (This post was last modified: 08-18-2008 07:22 PM by GG-Xtreme.)
Post: #1
Thumbs Down [MyBB 1.4.1] "Display posts using the classic layout"
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.

The Mercenary X Clan - http://mercx.exofire.net
Visit this user's website Find all posts by this user
08-18-2008, 10:22 PM (This post was last modified: 08-18-2008 10:22 PM by Snorlaxative.)
Post: #2
RE: [MyBB 1.4.1] "Display posts using the classic layout"
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.
Visit this user's website Find all posts by this user
08-19-2008, 12:08 AM
Post: #3
RE: [MyBB 1.4.1] "Display posts using the classic layout"
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?

The Mercenary X Clan - http://mercx.exofire.net
Visit this user's website Find all posts by this user
08-19-2008, 12:19 AM (This post was last modified: 08-19-2008 12:19 AM by Dennis Tsang.)
Post: #4
RE: [MyBB 1.4.1] "Display posts using the classic layout"
In inc/datahandlers/user.php, find:
PHP Code:
$this->verify_yesno_option($options'classicpostbit'0); 
Replace with:
PHP Code:
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.

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user
08-19-2008, 12:56 AM
Post: #5
RE: [MyBB 1.4.1] "Display posts using the classic layout"
(08-19-2008 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.

[Image: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user
08-19-2008, 01:05 AM (This post was last modified: 08-19-2008 01:06 AM by OhLiam.)
Post: #6
RE: [MyBB 1.4.1] "Display posts using the classic layout"
(08-19-2008 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.
Find all posts by this user
08-19-2008, 02:26 AM
Post: #7
RE: [MyBB 1.4.1] "Display posts using the classic layout"
(08-19-2008 12:19 AM)DennisTT Wrote:  In inc/datahandlers/user.php, find:
PHP Code:
$this->verify_yesno_option($options'classicpostbit'0); 
Replace with:
PHP Code:
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.

(08-19-2008 12:56 AM)Ryan Gordon Wrote:  
(08-19-2008 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.

The Mercenary X Clan - http://mercx.exofire.net
Visit this user's website Find all posts by this user
08-19-2008, 10:24 AM
Post: #8
RE: [MyBB 1.4.1] "Display posts using the classic layout"
What querie do I run in phpmyadmin to change all users to classic ?
Find all posts by this user
08-19-2008, 10:57 PM
Post: #9
RE: [MyBB 1.4.1] "Display posts using the classic layout"
Try this:
Code:
UPDATE mybb_users SET classicpostbit=1

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user
08-20-2008, 01:31 AM
Post: #10
RE: [MyBB 1.4.1] "Display posts using the classic layout"
Seems good,

Does this mean the code fix is good to go for 1.4.2?
Find all posts by this user


Forum Jump: