Upgrade Datalife Engine theme from 9.2 to 9.4 is our upgrade guide project to help users upgrade the theme in single tutorial without having to worry about 9.3 upgrade version, this tutorial will cover the theme upgrade in versions 9.3 and 9.4. Usually when you upgrade Datalife Engine from version 9.2 to 9.4 you have to upgrade theme from 9.2 to 9.3 and then upgrade 9.3 to 9.4, our all in one tutorial series will make it easy for you so that you can easily upgrade theme for 9.2 to 9.4 step by step in single tutorial.
Find
[sec_code]
Add before
[question]
<tr>
<td class="label">Question:</td>
<td><div>{question}</div></td>
</tr>
<tr>
<td class="label">Answer:<span class="impot">*</span></td>
<td><div><input type="text" name="question_answer" id="question_answer" class="f_input" /></div></td>
</tr>
[/question]
Find
[sec_code]
Add before
[question]
<tr>
<td class="label">Question:</td>
<td><div>{question}</div></td>
</tr>
<tr>
<td class="label">Answer:<span class="impot">*</span></td>
<td><div><input type="text" name="question_answer" class="f_input" /></div></td>
</tr>
[/question]
Find
<li>[com-edit]Edit[/com-edit]</li>
Add before
<li>[complaint]Report Abuse[/complaint]</li>
The theme design will be different, but the point to modify this file is to add complaint module button to report inappropriate comments to the site administrator, you can use your own languages, image or icon that suite to your theme design but you must keep the tags [complaint] and [/complaint] for the link to click for report
Find
<li>{favorites}</li>
Add after
<li>[complaint]<img src="{THEME}/images/complaint.png" title="Report Error" alt="Report Error" />[/complaint]</li>
The theme design will be different, but the point to modify this file is to add complaint module button to report inappropriate comments to the site administrator, you can use your own languages, image or icon (DLE also provide icon for the function, please download it below) that suite to your theme design but you must keep the tags [complaint] and [/complaint] for the link to click for report
Start: Skip this step if you are not using "Default" theme
Find
<a class="addcombtn" href="javascript:ShowOrHide('addcform')">
Replace with
<a class="addcombtn" href="#" onclick="$('#addcform') .toggle();return false;">
End: Skip this step if you are not using "Default" theme
Find
<label for="login_name">Name:</label><input type="text" name="login_name" id="login_name" />
Replace with
<label for="login_name">{login-method}</label><input type="text" name="login_name" id="login_name" />
Note: the theme design maybe vary, so don't worry if you can't find the code above, this upgrade instruction is base on the "Default" theme that comes with script, so if you are not using Default theme then please note this option is for "Login" method, the tag is only to let your site members know that which method your website is setting to login by using "Username" or "E-mail", so the exactly purpose of tag {login-method} is to switch between method text, so if you have special design on your theme, you just need to put the text to tell your members which method you use for login in your website, so that you don't have to put the tag {login-method} in your theme, for example www.dlestarter.com is using email login method and we use icon for login input, so we just use email icon and text to tell our members that we use email login, not username...so that's good example.
Find
<li class="lbtn"><button class="fbutton" onclick="submit();" type="submit" title="Login"><span>Login</span></button></li>
Add before
<li class="lfield lfchek"><input type="checkbox" name="login_not_save" id="login_not_save" value="1"/><label for="login_not_save"> Do not remember me</label></li>
Note: the theme design maybe vary, so don't worry if you can't find the code above, this upgrade instruction is base on the "
Default" theme that comes with script, so if you are not using Default theme then please note this option is for "
Login" cookie either to save cookie or not saving cookie on the local computer you are using to login to your website, the tag input ID "
login_not_save" is to give the option for you and your members the option for "
Do not save me" if this option is check when you and your members login to your site, the cookie session for your site login will not be be saved on that computer, this option is very helpful if you and your members using ublic computers or friends' computers. The code can be placed anywhere within a login form in login.tpl file, the only require tags are:
<input type="checkbox" name="login_not_save" id="login_not_save" value="1" />
And text for checkbox label:
Do not remember me
So you can apply them to your own design theme without having to worry some tags and code maybe missing like I said above, the theme designs are different from Default theme...!
Find
<li>[del]Delete[/del]</li>
Add before
<li>[complaint]Report Abuse[/complaint]</li>
<li>[ignore]Add Sender to my block list[/ignore]</li>
The theme design will be different, but the point to modify this file is to add complaint module button to report abusive users and spammers to the site administrator, you can use your own languages, image or icon that suite to your theme design but you must keep the tags
- [complaint] and [/complaint] for the link to click for report.
- [ignore] and [/ignore] for the link adding the sender to the ignore list or block list.
Find
{news_num} [ {news} ]
Add after
[rss]<img src="{THEME}/images/rss.png" alt="rss" style="vertical-align: middle; margin-left: 5px;" />[/rss]
Find
[sec_code]
Add before
[question]
<tr>
<td class="label">Question:</td>
<td><div>{question}</div></td>
</tr>
<tr>
<td class="label">Answer:<span class="impot">*</span></td>
<td><div><input type="text" name="question_answer" class="f_input" /></div></td>
</tr>
[/question]
Find
<tr>
<td class="label">Location:</td>
<td><input type="text" name="land" value="{land}" class="f_input" /></td>
</tr>
Add after
<tr>
<td class="label">My Block list:</td>
<td>{ignore-list}</td>
</tr>
The theme design will be different, but the point to modify this file is to add ignore list in user profile also known as "Black List" or "Block List", this option requires for block/black/ignore list management, each user will have their own list and they can manage the list to remove the users from the list. You can use your own languages, image or icon that suite to your theme design but you must keep the tags {ignore-list} for the list of users who have been added to the list so the members can manage them
Please download the attached file and place them within folder /templates/YOUR THEME/
The following files are included in the package (You can use your own images if you like)