How to repair SMF Forum settings instantly

What are the Benefits using this tool: 

Allows you set set the paths for – Forum URL, Forum Directory, Sources Directory, Attachment Directory, Avatar URL, Avatar Directory, Smileys URL, Smileys Directory, Default Theme URL, Default Theme Images URL, and Default Theme Directory and Custom Theme Directories. This tool also allows you to fix your database such as MySQL server address, MySQL database name, MySQL username, MySQL password, and MySQL table prefix.

1. Download repair_settings.php

2. Upload it to your forum, putting it in the same directory as your settings.php file

3. Navigate to your browser and point it to  http://mydomain.com/repair_settings.php

You should see something like below:

Screen Shot 2556-09-23 at 6.13.23 PM

4. This script allows you to change the most important settings such as MySQL information, file paths and urls, and can be used when SMF is not working at all. That is what it is mostly used for: repairing your SMF enough so that an admin user can login and fix any other problems.

5. Once you have finished updating, click save settings.

6.  Remember to delete the file. If you do not delete the file, you will leave your forum vulnerable!

How to add an empty directory to a git repository

1. Create .gitignore file inside an empty folder.

2. Insert the following code inside .gitignore file.

# Ignore everything in this directory
*
# Except this file
!.gitignore

Optional: If you’re using Netbeans and by default all system core files are being ignored to prevent uploading to repo for security purposes. To include them in the repo you need to Unignore manually. How to? Solutions: Assuming you have followed the instructions above.

1. Right click the folder you want to include in repo

2. Go to >> Git >> “Unignore”

3. Finish. Now you can have them a copy in repo.

Modify WordPress Footer Using Child Themes

Assuming you have created a child theme inside your main wordpress templates. If not, Here’s How to create a child theme.

1. Copy footer.php from your main templates to your child-theme folder.

2. Edit footer.php and find the following code:

<?php do_action( 'twentythirteen_credits' ); ?>
 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>

3. Modify the code to:

<?php do_action( 'twentythirteen_credits' ); ?>
<a href="YOURSITE.COM" target="_blank" title="TITLE OF THE LINK"><?php printf( __( 'YOUR COPYRIGHT TEXT', 'twentythirteen' ), '' ); ?></a>

4. Save & Refresh your website. (If not showing clear your browser cache first)