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.

How override html output (web site link preview in share panel)

11 years 9 months ago
  • P's Avatar
    Topic Author
  • P
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 4
Licenses:
JomSocial Expired

Dear sirs, I shoud try to change the html output of your component via template/layout overrides, so that the the link (of an article preview in the status/share panel) gets a class name.
I think the part of code which I should change is this:

<article class="joms-stream-fetch-content" style="margin-left:0; padding-top:0">
<a <?php echo $anchorAttr; ?>><?php echo $attachment->title; ?></a>
How can I change it?
I should this code it to use "modalizer plugin" where the class autoconvert option only works if the classname is on the <a> tag.
Thank you so much.

11 years 9 months ago
Licenses:

Hi.

Just do an template override just like for any other file of that kind in Joomla!.

Copy file ROOT/components/com_community/templates/default/activities.stream.php to ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them).

Then edit file in line 175 and add class to anchor.

But in some cases you don't need to have specific class. You can select certain element without a class just using type of element e.g

.joms-stream-box .span4 a


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
11 years 9 months ago
  • P's Avatar
    Topic Author
  • P
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 4
Licenses:
JomSocial Expired

Thank you for your reply, but can you help me to transform that code.
Because I was told the link should gets a class name and now that code is not in this way.
Thank you

11 years 9 months ago
Licenses:

HI.

No problem, please, edit your first post and add FTP credentials to corresponding boxes.
Then update this thread so I'll know.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped 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