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.

Activity Share Box

10 years 3 months ago
  • Fevi's Avatar
    Topic Author
  • Fevi
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

Can you please tell me where to locate the file calling this function?

$this->view('profile')->modProfileUserstatus();

I found this in profile.index.php.

I need to add some function in this box.

Thanks!

Attachments:
10 years 3 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hello fevi

I would start looking at the profile view files, but if you need to add new tab there, you can simply alter status.form.php template file.


- Don't say feature not working. Instead, explain what you tried and what was the outcome.
- When you think you found the bug, try to replicate it on a fresh Joomla.
- When looking for support always provide temporary Super Administrative access to your site. We will ask for it anyway.
- Help yourself and read documentation which can give you answers to almost all questions you may have
10 years 3 months ago
  • Fevi's Avatar
    Topic Author
  • Fevi
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

Thanks I was able to add function in the box.

But unfortunately, I found out that when you enter html tag in the textarea to share for example <a href="meme.html">b</a>"/>

the content will be added in the meta og:description

<meta property="og:description" content="<a href="meme.html">b</a>"/>

Do you know where I can disable this description? and do you know how to disable html tags in the text area?

It is also causing the status box tabs not to function.

Thanks!

Attachments:
10 years 3 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hello Fevi

Have you considered hiring professional developer to do the task for you?
While we can generally give you some heads up and advices, we generally tend not to educate users nor provide guides regarding code changes and customizations.
You can hire a professional developer here:
www.jomsocial.com/jomsocial-developers


- Don't say feature not working. Instead, explain what you tried and what was the outcome.
- When you think you found the bug, try to replicate it on a fresh Joomla.
- When looking for support always provide temporary Super Administrative access to your site. We will ask for it anyway.
- Help yourself and read documentation which can give you answers to almost all questions you may have
10 years 3 months ago
  • Fevi's Avatar
    Topic Author
  • Fevi
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Sinisa,

What I was saying was that when you post an html in the share box.

You will see an html tag on the top right corner because of this og: description tag.

What if the user wants to post an html tag. The user page will be ruined.

This is a bug that needs to be resolved.

I paid for the component and now I am going to hire someone to fix the bug?

That is absurd.

Please let me know where to disable these tags.

Thank you so much.

10 years 3 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hello Fevi

Before your last post you meantioned nothing about any bug.
If you did, i would never recommend you to hire professional developer.

That being said, can you describe step by step how do i replicate this bug?


- Don't say feature not working. Instead, explain what you tried and what was the outcome.
- When you think you found the bug, try to replicate it on a fresh Joomla.
- When looking for support always provide temporary Super Administrative access to your site. We will ask for it anyway.
- Help yourself and read documentation which can give you answers to almost all questions you may have
10 years 3 months ago
  • Fevi's Avatar
    Topic Author
  • Fevi
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

Try to post an HTML code on the share box.

<a href="index.html">TEST</a>

You will see that the page will have an extra code on the top left corner of the page.

Because it is getting the content of the post and insert in OG: description tag.

10 years 3 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hello Fevi

i just did it here
demo.jomsocial.com/
and cant replicate the issue. Our demo is using latest JomSocial (although it shows that is 3.0, but you can see it by the backend)
Are you trying this with or without the hacks of your applied?


- Don't say feature not working. Instead, explain what you tried and what was the outcome.
- When you think you found the bug, try to replicate it on a fresh Joomla.
- When looking for support always provide temporary Super Administrative access to your site. We will ask for it anyway.
- Help yourself and read documentation which can give you answers to almost all questions you may have
10 years 3 months ago
  • Fevi's Avatar
    Topic Author
  • Fevi
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Sinisa

With or without hacks the bug is still occurring.

I posted this html tag and your demo site is showing the bug on the top left corner of the page.

If you could tell me where this OG:Description code is generated maybe I can fix the issue.

Thanks!

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

Is it in /public_html/components/com_community/helpers/head.php?

public static function setDescription($content) {

if ($content !== '') {

$document = JFactory::getDocument();

$document->setDescription($content);

self::addOpengraph('og:description', $content);

}

}

10 years 3 months ago
  • Fevi's Avatar
    Topic Author
  • Fevi
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 0
Licenses:
JomSocial Expired

i changed

self::addOpengraph('og:description', $content);

to

self::addOpengraph('og:description', strip_tags($content));

and it worked. Thanks for the help.

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