How to exclude code in the article

How to exclude code in the article

I use a plugin, Jumi, to embed video. It uses a short code in the article to work: {jumi [jumi/xxx.html]}
When sharing this code comes with the article text in FB. Is there a way to exclude this string from the FB-status? (The xxx varies all the time)

If possible I would also like to exclude the headline, marked with <h1>-----</h1>

Niklas

nikkra
useravatar
Offline
15 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: How to exclude code in the article

We don't have a built-in way to do this as { and } are valid symbols that some users want and there's no standard method for adding tags like that that we could detect.

What I would recommend is making sure that the Jumi plugin is ordered before any JFBConnect plugins. That should make it so the Jumi plugin executes first and removes its tags before JFBConnect tries to generate a description for the page.

If possible I would also like to exclude the headline, marked with <h1>-----</h1>

Again, we don't have a way to do this automatically. Any HTML tags should be automatically stripped, but we don't have a method to scan for specific tags and strip/keep the content within them.

Overall, the best recommendation I can give is to explicitly set the Open Graph description tag that you want to use on each page, like:

Code:

{SCOpenGraph description=My Description for the Page}

You can even use PHP within those tags to dynamically generate the description.

I hope that helps explain,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23813 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11498
Total Polls:
0
Total Posts:
48409
Posts today:
8
User Info
 
Total Users:
47473
Newest User:
martinpleon
Members Online:
3
Guests Online:
824

Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program