Do not remember me!

Attention DLEStarter.com Members!!!

To all dlestarter.com members, currently the site is offline/closed due to team member emergency situations, so if you have asked or requested any works to team members, please contact me on dlefaq.com because dlestarter team member went missing, fortunately he has been rescued but in critical conditions, so any work requests will be on hold or possibly return or refund your payments...however, dlefaq.com is primary partner with dlestarter.com so we will do whatever we can to help dlestarter team survive...Thank you
Sort articles by: Date | Most Rates | Most Views | Comments | Alphabet

Datalife Engine log me out, I have to login again and again

+5
I am use Datalife Engine and every time I lgin to my website, my website keep log me out and I have to keep login again and again, is there any solution for this issue? Added by: in MySQL Questions on
Yes, This issue happens a lot to many users, most of problems happens to users who use shared host or using some kind of server cache systems like "varnish cache", "xCache" and some other server cache, so to fix this issue you must contact your server admin or host provider to disable server cache, after server cache is disabled the nyou can use third party cache like Cloudflare or even DLE cache if you really need cache on your server. There is no direct solution from Datalife Engine side because the problem is coming from your server side cache.
Answered by: dlefaq

Can you provide step by step setup authentication for google?

+3
I am using Datalife engine 10.4 and want to use Google to login to my website but I don't really know how to set it up, can you provide step by step setup login for Google please? Added by: in Others on
1) go to https://code.google.com/apis/console/
2) Click on "Create Project" from "Start using the Google APIs console"
3) Click on "Create new Client ID"
4) Enter your website URL for "Authorized javascript origins"
5) Enter authorization URL flr "Authorized redirect URIs", the URL should be like this:
http://www.dlefaq.com/index.php?do=auth-social&provider=google

6) Click "Create Client ID" to finish create API
7) Return to your website and go to Social Network Configurations: http://site.com/admin.php?mod=social
8) Make sure "Enable authentication using the Google Network" is set to "Yes" and enter "Application ID in the Google Network (Client ID)" and "The private/secret key in the Google Network (Client secret)"

Can you provide step by step setup authentication for google?
Can you provide step by step setup authentication for google?
Can you provide step by step setup authentication for google?
Can you provide step by step setup authentication for google?
Can you provide step by step setup authentication for google?
Answered by: dlefaq

Ads by DLEStarter.com

How to display xfield image (poster) in quick search?

+5
Hello, I run DLE website for movies/films and I use xfield to add movie posters, is there any way I can show xfield image in quick search drop down list? Added by: in PHP Questions on
Yes you can easily add xfield image in quick search, simply open /engine/ajax/search.php and find:
$db->query("SELECT id, short_story, title, date, alt_name, category FROM " . PREFIX . "_post WHERE " . PREFIX . "_post.approve=1".$this_date." AND (short_story LIKE '%{$query}%' OR full_story LIKE '%{$query}%' OR xfields LIKE '%{$query}%' OR title LIKE '%{$query}%') ORDER by date DESC LIMIT 5");
Replace with:
$db->query("SELECT id, short_story, title, date, xfields, alt_name, category FROM " . PREFIX . "_post WHERE " . PREFIX . "_post.approve=1".$this_date." AND (short_story LIKE '%{$query}%' OR full_story LIKE '%{$query}%' OR xfields LIKE '%{$query}%' OR title LIKE '%{$query}%') ORDER by date DESC LIMIT 5");
Find:
$description = preg_replace( "'\[attachment=(.*?)\]'si", "", $description );
Add below:
$xfieldsdata = xfieldsdataload( $row['xfields'] );

Now you can add image tag in quick search by find the line:
$buffer .= "<span>".$description."</span></a>";
Replace with:
$buffer .= "<span><img src=\"".$xfieldsdata['Name of your additional fields']."\" class=\"poster\" style=\"float:left;margin:5px;width:"50px;height:50px\" />".$description."</span></a>";
You must replace "Name of your additional fields" with your actual xfield name and adjust the size of your choice...

This hack has been tested with DLE 9.8 and newer.
Answered by: dlefaq

How to remove specific categories when addnews by group?

+9
I want to remove specific categories when add news in main page and if possible remove specific categories for different usergroups, can I do that? Added by: in jQuery Questions on
Open /templates/your-theme/addnews.tpl, on top add this jquery
<script type="text/javascript">
$(document).ready(function(){
$("#category option[value=10],#category option[value=30],#category option[value=99]").remove();
});
</script>

Specify category ID: #category option[value=X] where "X" is your category ID, use comma to separate multiple categories, example:
#category option[value=10],#category option[value=30],#category option[value=99]


If you are using jQuery "Chosen" then use this code instead
<script type="text/javascript">
$(document).ready(function(){
$("#category_chzn_o_10,#category_chzn_o_30,#category_chzn_o_99").remove();
});
</script>

Specify category ID: #category_chzn_o_X where "X" is your category ID, use comma to separate multiple categories, example:
#category_chzn_o_10,#category_chzn_o_30,#category_chzn_o_99

You can specify [group] and [not-group] to wrap around the jquery cod above for different usergroups
Answered by: dlefaq