• 0
  • Shopping Cart
    0
Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:
Welcome, Guest
Username: Password: Remember me

TOPIC: replacement introtext at the first paragraph of article

replacement introtext at the first paragraph of article 3 years 3 months ago #11991

  • Vladislav
  • Vladislav's Avatar
  • purchased
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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.
The administrator has disabled public write access.

replacement introtext at the first paragraph of article 3 years 3 months ago #11993

  • Vladislav
  • Vladislav's Avatar
  • purchased
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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>"; ?>
The administrator has disabled public write access.

replacement introtext at the first paragraph of article 3 years 3 months ago #12000

  • NT
  • NT's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1744
  • Thank you received: 117
  • Karma: 23
HI Vladislav,
Thanks for contacting us and choosing our product!
Thanks you! :)
****************
Best Regards
__DiepNT__
The administrator has disabled public write access.
Time to create page: 0.296 seconds
Powered by Kunena Forum