Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

my Article Plugin - Intro text

8 years 9 months ago
  • Henning's Avatar
    Topic Author
  • Henning
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Expired

Hii,
I see the documentation documentation.jomsocial.com/wiki/My_Articles that there is a way to show the intro text... But in my plugin settings from My Article there is no option for allow intro text... How it works ?

8 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Henning,

I am not sure this feature be deleted or bug from us, but I already reported this to our developer.

thank you!

8 years 9 months ago
  • Henning's Avatar
    Topic Author
  • Henning
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Expired

can you tell me if it works? I realy wanna enjoy that feature

8 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Sure, I will let you know once the developer fix this..

8 years 9 months ago
  • Henning's Avatar
    Topic Author
  • Henning
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Expired

Do we have a update here ?

8 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Henning,

The My Article plugin is discontinued till version 4.0



but dont worry, i will give you the solution to show the intro text.

Please you open this file plugins/community/myarticles/myarticles.php, after this code :
$html .= '      <a href="' . $link . '">' . htmlspecialchars($data->title) . '</a>';
put this new addtional code :
$html .= '      <p>' . substr(strip_tags($data->introtext,''),0,100) . '...</p>';

thank you

Attachments:
8 years 8 months ago
  • Henning's Avatar
    Topic Author
  • Henning
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Licenses:
JomSocial Expired

Why it does not the whole intorduction with images and reading more Button ? Can we change this or its not available with this code ?

8 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

I used the stript_tags on it, to avoid the broken layout on your page, if you wanna to show image as well you can remove substr and strip_tags code to be like this :

$html .= '      <p>' . $data->introtext . '...</p>';

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW