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.
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!
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
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.
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?
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.
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?
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);
}
}