Do not remember me!
Sort articles by: Date | Most Rates | Most Views | Comments | Alphabet

How to add php code to run in main.tpl?

+1
How to add php code to run in main.tpl?
I want to install an ads which required a php code after
Plz help! Added by: in PHP Questions on

Categories separation

0
Hi guys!
I was wondering how to separate categories on shortstory using other punctuation instead of commas. Basically I want categories to be like cat1-cat2-cat3 instead of cat1, cat2, cat3 . I hope its an easy answer. Added by: in PHP Questions on

Ads by DLEStarter.com

set title as shortstory

0
hello admin i m reddy i looking help in hack can i set title of post as automatics as short story lot of my authors are not using short story and by that dle script is unable to create keywords and description which is effecting my seo.so can you pls help thanks Added by: in PHP Questions on
try this
- open engine/modules/show.full.php find
		if( $row['keywords'] == '' AND $row['descr'] == '' AND $config['create_metatags'] ) create_keywords( $row['short_story'] . $row['full_story'] );
		else {
			$metatags['keywords'] = $row['keywords'];
			if( $row['descr'] ) $metatags['description'] = $row['descr']; else $metatags['description'] = $row['title'];
		}

Replace with
		if( $row['keywords'] == '' AND $row['descr'] == '' AND $config['create_metatags'] ) create_keywords( $row['title'] . $row['short_story'] . $row['full_story']);
		else {
			$metatags['keywords'] = $row['title'] . $row['keywords'];
			if( $row['descr'] ) $metatags['description'] = $row['descr']; else $metatags['description'] = $row['title'];
		}
Answered by: dlefaq

GIF image not loading uploaded without watermark

0
GIF image not loading uploaded without watermark Added by: in PHP Questions on

add multilinks

0
Hello
I want to do a simple project:

create a page to add links
Member can add external links and select a category at the same moment.
(Visitors, Member) can view the links under the article.

Anybody who can help me on this?
Url Picture: http://i.imgur.com/azgcvbx.png?1 Added by: in PHP Questions on

Ads by DLEStarter.com

I have a display with the profiles

0
I guess the best way to explain it is have you visit.. Then please tell me what to do LOL

http://www.ebook-mecca.com/user/Siteadmin/
Added by: in PHP Questions on

How Hide image short_story

0
Goods,

I need you help to Hide the images in tag { short_story }, i try with { short_story limit="x" }, but bbcode style is lost.

Thanks for you time,

GuilleOz Added by: in PHP Questions on
if you use short-story limit then it will completely remove all html tags so you can "hide" images instead of remove it since you can't psychically remove it unless you edit article one by one...so you can do it in a few ways...
1) use css to hide image using display:none, for example wrap css around shortstory like
<div class="my-short">{short-story} </div>
then add css in one of your css file
.my-short img{display:none}

2) using jquery to add remove() function to your shortstory block, for example
<div class="my-short">{short-story} </div>
then add this css in one of your js file like this
$('.my-short > img').remove();
if not working then try
$(document).ready(function(){
$('.my-short > img').remove();
});
if still not working then try to add this before in your theme main.tpl
<script type="text/javascript">
$(document).ready(function(){
$('.my-short > img').remove();
});
</script>
Answered by: yorismith

favorites count

+1
i want to show in shortstory how many people add news in favorites. help me Added by: in PHP Questions on
Currently there is no option for Datalife Engine to set for this option/function, however you can use third party module which is available here:
https://quantum-soft.ru/dle/modules/49095-podpiska-na-obnovlenie-novostey-dlya-dle.html
Answered by: yorismith

check username availability

+2
how to chek automaticaly is username available or not For registration? Added by: in PHP Questions on
You can use jquery to extract data from existing function within DLE registration process...

1) Download the file below and upload to your theme folder, ex "js" folder
2) Open your theme "registration.tpl"
:::::: Add this code in the beginning of the file
[registration]<script type="text/javascript" src="{THEME}/js/register.js"></script>[/registration]
make sure you check the path to file if you place the file in different folder than "js"

:::::: Find
				<input type="text" name="name" id='name' style="width:175px; margin-right: 6px;" class="f_input" /><input class="bbcodes" style="height: 22px; font-size: 11px;" title="Check available" onclick="CheckLogin(); return false;" type="button" value="Check" />
<div id='result-registration'></div>

:::::: Replace with
            	<input type="text" name="name" id='name' size="25" class="f_input" onblur="check_login(this); return false;" required />
<div id='result-registration'></div>

If you want this form to check if password is matched in both fields then follow steps below
:::::: Find
<input type="password" name="password1" class="f_input" />

:::::: Replace with
           	<input type="password" name="password1" size="25" id="password1" class="f_input" onblur="check_first( this )" />
<div id="result-first"></div>

:::::: Find
<input type="password" name="password2" class="f_input" />

:::::: Replace with
            	<input type="password" name="password2" size="25" id="password2" class="f_input" onblur="check_password()"/>
<div id="result-pass"></div>

To check if user input valid email format like someone@somedomain.com then follow step below

:::::: Find
<input type="text" name="email" class="f_input" />

:::::: Replace with
            	<input type="text" name="email" size="25" id="email" class="f_input" onblur="check_mail(this)" />
<div id="result-mail"></div>
Please note, this jquery will not check email from database if it's been registered yet, it will only check if user input valid forma as name@site.com
You are not allow to download file from our server
Answered by: yorismith

Social posting

+6
Hi,
I'm using DLE 10.3
Need a module to post my article in social network (Facebook, Google+, Twitter) in real time
Hope find some help here Added by: in PHP Questions on
No correct answer yet/Unsolve