Etano Version 2.60 Upgrade Guide:



Backup

Before editing or installing new files it's highly RECOMMENDED that you have an up-to-date BACKUP of all your site files and your database so you're able to restore the site to it's original state should something go wrong.

To avoid problems ... Take Your Time! ... Read and Follow the Instructions Carefully!

What's new in version 2.60 :







BBcode Modification & Upgrade :

This adds few more functions to BBcode such as images in posts, messages and replies, and options for larger text and to change the text color.

Note - It only has one additional choice for a larger size text and one additional choice for changing text color.


How to install:

Step 1. - In the package open the "installs" folder and choose either the "Etano Default Template" OR "Fusion Responsive Template", then upload and replace ALL files included to the same folder locations where your Etano site is installed.

If you purchased the "Fusion Responsive Template" as of March 1st 2018, you've already been upgraded to Etano 2.60. All you need to do is change the error message for the Mod to Allow Dashes in Usernames, and upgrade your Etano version as per the instructions provided HERE.

NOTE - If using another 3rd party template you will need to contact them about upgrading.


Step 2. - In the skins_site/def/styles/content.css file locate and replace the follow block of code starting on about line #522.
blockquote {
border: 1px solid #ccc;
background: #f5f5f5;
margin: 5px 0px 5px 30px;
padding: 5px;
}
With this ...
blockquote {
border: 1px solid #ccc;
background: #EAF2F8 url('../images/quote.png') no-repeat left top;
margin: 5px 0px 5px 75px;
padding: 5px;
padding: 10px 5px 5px 10px;
font-style: italic;
}



^Top






Customizing BBcode:


Text and Color options:

The default size of the larger text is 18px, and the default optional color choice is RED (#FF0000), which can be changed to whaterver you want by editing the following files:

skins_site/def/styles/bbbcode.css
skins_site/def/styles/message_read.css

Locate the following and edit the color and font size accordingly:
div.color {
display:inline-block;
color:#FF0000;
}

div.size {
display:inline-block;
font-size: 18px;
}


Removing Images from the BBcode menu:

All bbcode menu options are site wide, if you don't want to allow users to include images in all available posts such as blog posts, messages, photo comments or in comment boards, etc., you can use display: none; to hide the image icon from the bbode button menu in a particular section.
.bb_tools a.image {
background-image: url('../images/bbcode_image.gif');
display: none;
}
Include the above block of code in any of the following CSS files where you don't want the image icon button to appear:

skins_site/def/styles/blog_post_view.css
skins_site/def/styles/blog_posts_addedit.css
skins_site/def/styles/comment_board.css
skins_site/def/styles/message_send.css
skins_site/def/styles/photo_view.css
skins_site/def/styles/profile.css
skins_site/def/styles/my_profile.css

Include it directly below this line of code located at the top of each file.
@import url('bbcode.css');

IMPORTANT NOTE - this is basically just a deterrent as it only removes the image icon and function from the BBcode menu. This technically doesn't disable the function of being able to actually include images, a perceptive user could figure out that they can manually include the right code. But this isn't very likley to occur, if it does happen you can warn the user or suspend them for attempting to manipulate or expliot the site.



^Top






Mod to Allow Dashes in Usernames :

This modification allows dashes and underscores in usernames and also doesn't allow dashes and underscores to be included at the start or end of a username which can create odd looking usernames and also potential issues if dashes are used at the start or end.

This mod changes the regex pregmatch in 2 files:
processors/join.php and js/general.js

Once installed you should also change the error message so that users know everything that is and isn't allowed.

In the admin go to 'Skin Settings', then click 'Translate', then scroll down to Key #63 and replace the existing error message with this:
Please only use letters, numerals, dashes and underscores for your username. Dashes and underscores can not be included at the start or end of your username. Length of username must be 4-20 characters.



^Top






How to Update Your Etano Version Number :


Upgrading your Etano version isn't critical or required, it only allows you to keep track and know which version you're running for future upgrades.

If you want the new or latest version number to appear in your admin you'll need to do the following:

Go to your database in phpMyAdmin and select the "SQL" tab.


Enter the following SQL statement in the above textarea field and click the "Go" button.

UPDATE `dsb_modules` SET `version` = '2.60' WHERE `module_code` = 'core';



Then open your site's includes/defines.inc.php file and change the version number in there as well.
version


^Top