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: freshwap in PHP Questions on 6-08-2015, 10:05
How to add php code to run in main.tpl?
Categories separation
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: ahmede in PHP Questions on 4-08-2015, 00:54
set title as shortstory
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: 50Cent in PHP Questions on 25-07-2015, 12:53
try thisAnswered by: dlefaq
- open engine/modules/show.full.php findif( $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 withif( $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']; }
GIF image not loading uploaded without watermark
GIF image not loading uploaded without watermark Added by: Г. Ирээдүй in PHP Questions on 16-07-2015, 01:48
add multilinks
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: learn in PHP Questions on 3-07-2015, 20:03
I have a display with the profiles
I guess the best way to explain it is have you visit.. Then please tell me what to do LOLAdded by: Kathryn in PHP Questions on 3-07-2015, 18:07http://www.ebook-mecca.com/user/Siteadmin/
How Hide image short_story
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: GuilleOz in PHP Questions on 11-06-2015, 21:59
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...Answered by: yorismith
1) use css to hide image using display:none, for example wrap css around shortstory likethen add css in one of your css file<div class="my-short">{short-story} </div>
.my-short img{display:none}
2) using jquery to add remove() function to your shortstory block, for examplethen add this css in one of your js file like this<div class="my-short">{short-story} </div>
if not working then try$('.my-short > img').remove();
if still not working then try to add this before in your theme main.tpl$(document).ready(function(){
$('.my-short > img').remove();
});<script type="text/javascript">
$(document).ready(function(){
$('.my-short > img').remove();
});
</script>
favorites count
i want to show in shortstory how many people add news in favorites. help me Added by: wapmastera in PHP Questions on 17-05-2015, 07:11
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:Answered by: yorismithhttps://quantum-soft.ru/dle/modules/49095-podpiska-na-obnovlenie-novostey-dlya-dle.html
check username availability
how to chek automaticaly is username available or not For registration? Added by: wapmastera in PHP Questions on 8-05-2015, 14:04
You can use jquery to extract data from existing function within DLE registration process...Answered by: yorismith
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 filemake sure you check the path to file if you place the file in different folder than "js"[registration]<script type="text/javascript" src="{THEME}/js/register.js"></script>[/registration]
:::::: 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 withPlease 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<input type="text" name="email" size="25" id="email" class="f_input" onblur="check_mail(this)" />
<div id="result-mail"></div>
Social posting
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: Bonjour in PHP Questions on 24-04-2015, 07:30
No correct answer yet/Unsolve