Upgrade Theme 9.2 to 9.4

19-07-2014, 14:30. Author: dlestarter
Home » DLE Template Upgrade » Upgrade Theme 9.2 to 9.4
Upgrade Theme
9.2 to 9.4
Last Updated:November 20, 2013
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.

Files to change:

  1. addcomments.tpl (add tag question/answer)
  2. addnews.tpl (add tag question/answer)
  3. comments.tpl (Change and add editor style)
  4. fullstory.tpl (add topnews list style)
  5. login.tpl (add tag do not remember me option)
  6. pm.tpl (add google reCaptcha)
  7. profile_popup.tpl (add tag subscribe to user RSS feed)
  8. registration.tpl (add tag question/answer)
  9. userinfo.tpl (add google reCaptcha)

Files to add:

  1. relatednews.tpl (additional files for related news module)
  2. topnews.tpl (additional files for top news module)
  3. frame.css (additional styles for quick edit popup windows)
  4. dleimages/delete.png
  5. dleimages/videopreview.jpg
  6. dleimages/youtubepreview.jpg
  7. images/complaint.png

Files to change

1) Open addcomments.tpl

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

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

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
4) 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
5) Open login.tpl

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

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

Find

{news_num} [ {news} ]

Add after

[rss]<img src="{THEME}/images/rss.png" alt="rss" style="vertical-align: middle; margin-left: 5px;" />[/rss]
8) Open registration.tpl

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]
9) 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 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

Files to add (Download from attached file)

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)
- relatednews.tpl
- topnews.tpl
- frame.css
- dleimages/delete.png
- dleimages/videopreview.jpg
- dleimages/youtubepreview.jpg
- images/complaint.png
  1. relatednews.tpl: this file is used for tag {related-news} for related news in fullstory.tpl, the purpose of this file to be added independently because Datalife Engine have added and improve the new way to display related news, they have added some tags that are very helpful for those who want to customize the way related news to display, now you can use additional tags to display images and text from the article for additional enhanced look...the following tags are applied within the file relatednews.tpl:
  2. topnews.tpl This file is used for the tag "{topnews}" in either main.tpl or sidebar.tpl (depending on design), the purpose of this file and the additional tags are exactly the same as relatednews.tpl above, you can use tags {image-X} and {text limit="XXX"}, so please refer to the above details above the additional tags
    Both files are using the default tag

    HTML

    <li><a href="{link}">{title}</a></li>
    
    • {link}: is the full link url for the article, it will automatically converted to any link formats of your SEO settings or none SEO
    • {title}: is the actual article title
  3. frame.css This file is for the new popup Windows for new "Quick Edit" mode in the front page

Download File (Attached File)


Go back