Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 685

A Tutorial To Fix A Few Problems You May Get With MyBB

$
0
0
Welcome To My Tutorial
I'll be showing you how to fix some errors / problems you may get well using MyBB.
I'll also have a few how to's in here.


1. Remove Date User Joined In Post

Go to

Admin CP -> Templates & Styles -> "Your Theme" -> Post Bit Templates -> Postbit_author_user

Remove {$lang->postbit_joined} and save.


2. Disable A A[b]ttachment Type[/b]

Go to

Admin CP -> Configurations -> Attachment Types

Now you can remove / add new attachment types.


3. Disable All Plugins At Once

Go to

Admin CP -> Configurations -> General Configurations

and now go down until you see "Disable All Plugins" and click "Yes" and save.


4. [b]Configure Search Friendly URLs[/b]

Go to

Admin CP -> Configurations -> Server and Optimization Options

Then change "Enable search engine friendly URLs?" to "Enable" Once this setting is enabled you need to make sure you have the MyBB .htaccess in your MyBB root directory (or the equivalent for your web server). Automatic detection may not work on all servers. Please see the MyBB Docs for assistance.


5. Database Error
"MyBB has experienced an internal SQL error and cannot continue.
SQL Error:1045 - Access denied for user [email=foo_mybb'@'localhost]'foo_mybb'@'localhost'[/email] (using password: YES)Query:[READ] Unable to connect to MySQL server
Please contact the MyBB Group for technical support."

To fix

~/inc/config.php file consists of database configuration settings. 
your forum's database password needs to be changed in it.
PHP Code:
~/inc/config.php file consists of database configuration settings
 
your forum's database password needs to be changed in it. 
more details : config.php


6. [b]Make Portal As Home Page[/b]

simple method is to use directory index rule in .htaccess file (assuming that server is Apache)
PHP Code:
DirectoryIndex portal.php index.php index.html index.htm 


7. Change The Text on MyBB landing/Login Page

The content is from header_welcomeblock_guest template of the theme.

[templates guidance]


8. Changing The Database Name

You can change database name & its related configuration in ~/inc/config.php file 

see more details => config.php file


9. Can't Login

Open ~/inc/settings.php file & remove / at the end of cookie domain value
then you should be able to login to forum admin panel 
again remove trailing slash used for cookie domain at Site Details page of Configuration section.


10. Error 44

Error Type: MyBB Error (44)


Error Message: MyBB was unable to load the SQL extension.  

Information: This can occur when the database type is incorrect in inc/config.php file. 

To fix this, open inc/config.php file and check the entry for $config['database']['type'].
A common issue is having mysql instead of mysqlior having mysqli instead of mysql

If you do not know what needs to be here, contact your host provider.


11. Logout A Banned User

In general, forum content is not visible to the banned users & they get banned message for all pages


If banned user is logged out then gets guest status & access to forum content unless you have set forced login


12. Change Default Forum avatar

Go to 
Code:
root/images/default_avatar.png

path and add the image you want.

13. Change Max Avatar Size
Go to Admin CP > Configuration > Settings > Show Thread Options > Maximum Avatar Dimensions in Posts.


Go to Admin CP > Configuration > Settings > User Registration and Profile Options > Maximum Avatar Dimensions.

Go to Admin CP > Configuration > Settings > Member List > Maximum Display Avatar Dimensions.

Change all of them to 26x26, unless you want it configured differently.


14. Attachment In Post Larger

forum admin panel >> Configuration (Settings) >> Attachments 
>> Show Attached Thumbnails in Posts >> select full size image & save the settings


15. Remove Date & Time From Post


You can remove {$lastpost_date} from templates => forumbit_depth1_forum_lastpost &  forumbit_depth2_forum_lastpost 


Also you can remove {$lastpostdate} from templates => forumdisplay_thread , search_results_threads_thread , portal_latestthreads_thread ...


16. Edit Post Templates

admin panel >> Templates & Style >> Templates >> [your theme templates] >> 

Edit Post Templates >> editpost_delete


see also : templates related guidance | expanding all templates


17. Edit Menu Bar

Go to Admin CP -> Templates & Styles -> Templates -> 'Your Theme' -> Header Templates -> header and edit that file


18. Get Rid of Thread Passwords

It is set in the forum settings in forum management section of admin panel

you have to edit that forum & remove the password


I hoped I help! I know I didn't cover everything but it's better then nothing.

Viewing all articles
Browse latest Browse all 685

Trending Articles