Support Online: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

file replacement introtext at the first paragraph of article

More
8 years 8 months ago #11991 by Vladislav
Hello! I have a bit of a standard question. But may be will help. I need introtext instead, paste the first paragraph of the article.

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #11993 by Vladislav
He figured, maybe someone will need

In file
modules\mod_jux_news_wall\tmpl\default.php
Instead of the line 110
<?PHP Echo $item->introtext; ?>
replace
<?php $patern="#<[\s]*p[\s]*>([^<]*)<[\s]*/p[\s]*>#i"; ?>
<?php if(preg_match($patern, $item->introtext, $matches)) echo "<span>".$matches[1]."..</span>"; ?>

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #12000 by NT
HI Vladislav,
Thanks for contacting us and choosing our product!
Thanks you! :)

****************
Best Regards
__DiepNT__

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.028 seconds
Powered by Kunena Forum