Upgrade Theme 9.2 to 9.3

19-07-2014, 13:35. Author: dlestarter
Home » DLE Template Upgrade » Upgrade Theme 9.2 to 9.3
Upgrade Theme
9.2 to 9.3
Last Updated: November 20, 2013
Upgrade Datalife Engine theme from 9.2 to 9.3 is one of the easiest theme upgrade in Datalife Engine CMS, even in DLE 9.3 has a lot of changes in the script itself but the changes are only effected in the script structure and security as well as performance, but in theme only a few files are required to upgrade, also there are some improvements in the script especially in multimedia system and security, so theme upgrade will require some files added to the theme for those security and multimedia functions. The major changes in this version is focus on internal communication system specifically for Error Reports and Abuse Reports, so the users can report the error in your posts also can report abusive activities in both articles, user profile as personal communications and block the users by add abusive users or spammers to black list (Ignore List) to make there is no more communication from that user, this function is known as "Complaint Module". In the multimedia side, DLE have added some great features in new multimedia player as well as the easy way for you to create your own preview logo in all multimedia you add to your website.

In this tutorial I will show you how to upgrade your theme from 9.2 to work with 9.3 step by step so that you can easily upgrade your theme, please note that in this tutorial I we will still keep to use Default theme as the step to follow, we will also add some notes if necessary for additional details in case you use the different themes so that you can understand the concept and the changed functions are for.

Files to change:

- comments.tpl (Change and add editor style)
- fullstory.tpl (add topnews list style)
- pm.tpl (add google reCaptcha)
- userinfo.tpl (add ignore list)

Files to add:

- dleimages/delete.png
- dleimages/videopreview.jpg
- dleimages/youtubepreview.jpg
- images/complaint.png

Files to change

1) Open comments.tpl

Find

<li>[com-edit]Edit[/com-edit]</li>

Add after

<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
2) Open fullstory.tpl

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
3) Open pm.tpl

Find

<li>[del]Delete[/del]</li>

Add before

<li>[complaint]Report Abuse[/complaint]</li>
<li>[ignore]Add Sender to my black 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 black list.
4) Open userinfo.tpl

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 Black 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

Files to add

Please download the images within 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)
- dleimages/delete.png
- dleimages/videopreview.jpg
- dleimages/youtubepreview.jpg
- images/complaint.png

Download File (Attached File)


Go back