-
AuthorPosts
-
ozzymanson2 Friend
ozzymanson2
- Join date:
- September 2012
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 4 times in 1 posts
December 11, 2012 at 8:00 pm #183034can you add or how can i add by myself text area that set extended classes to all videos that loaded trought one of Social feed youtube profiles?
i want all videos have dark or hilight classes. or may be different classes my my own.
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
December 12, 2012 at 10:43 am #475977Hi ozzymanson2,
Just clarify what you are really need here.
If you want to set extended class to youtube articles, here steps:
– Open article in edit mode
– Expand Metadata Options
– Set your extended class to ‘Extended Classes’ fieldIf you have problem with edit the youtube aricle (after click saved, the video is missing). then you have to allow iframe tag in Tiny-MCE editor. Here the steps how to do it.
– Open Plugin Manager
– Search for ‘Editor – TinyMCE’ plugin and open it in edit mode
– remove ‘iframe’ in Prohibited Elements field.Save and try to edit your youtube article again.
Regards
ozzymanson2 Friendozzymanson2
- Join date:
- September 2012
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 4 times in 1 posts
December 12, 2012 at 3:09 pm #476006<em>@Wall Crasher 350272 wrote:</em><blockquote>Hi ozzymanson2,
Just clarify what you are really need here.
If you want to set extended class to youtube articles, here steps:
– Open article in edit mode
– Expand Metadata Options
– Set your extended class to ‘Extended Classes’ fieldIf you have problem with edit the youtube aricle (after click saved, the video is missing). then you have to allow iframe tag in Tiny-MCE editor. Here the steps how to do it.
– Open Plugin Manager
– Search for ‘Editor – TinyMCE’ plugin and open it in edit mode
– remove ‘iframe’ in Prohibited Elements field.Save and try to edit your youtube article again.
Regards</blockquote>
i mean can you add in socail feed text area where i can set extended classes which will be added to the articles AUTOMATICALLY
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
December 13, 2012 at 2:46 am #476054Hi ozzymanson2,
Here are steps to customize the social feed plugin for Youtube.
Please make sure you have BACKUP before customizing.
1. Open pluginssystemjasocial_feedjasocial_feed.xml and this block code at line 215
<field name="youtube_exclass" type="text" default="" label="Extened Class" description="Extened Class"/>
2. Open pluginssystemjasocial_feedjasocial_feed.php and add this block code at line 535
if($youtube_exclass){
$post['metadata'] = json_encode(array('xclass' => $youtube_exclass));
}3. Open pluginssystemjasocial_feedtablesjoomla.php and add this block code at line 95
$item['metadata'] = isset($post['metadata']) ? $post['metadata'] : '';
Now save all, set the extended class in a youtube profile (please save profile first) and press Run now button.
Please note: Those extended classes will not be applied to your existing articles. And only new articles will added to database, existing articles will not be replaced. You should consider to delete those feeds (must empty the Trash) to make those feeds import again.
Hope it helps.
Regards
1 user says Thank You to Wall Crasher for this useful post
ozzymanson2 Friendozzymanson2
- Join date:
- September 2012
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 4 times in 1 posts
December 14, 2012 at 12:42 pm #476291wall crasher;350370hi ozzymanson2,
here are steps to customize the social feed plugin for youtube.
Please make sure you have backup before customizing.
1. Open pluginssystemjasocial_feedjasocial_feed.xml and this block code at line 215
<field name="youtube_exclass" type="text" default="" label="extened class" description="extened class"/>
2. Open pluginssystemjasocial_feedjasocial_feed.php and add this block code at line 535
if($youtube_exclass){
$post['metadata'] = json_encode(array('xclass' => $youtube_exclass));
}3. Open pluginssystemjasocial_feedtablesjoomla.php and add this block code at line 95
$item['metadata'] = isset($post['metadata']) ? $post['metadata'] : '';
now save all, set the extended class in a youtube profile (please save profile first) and press run now button.
Please note: Those extended classes will not be applied to your existing articles. And only new articles will added to database, existing articles will not be replaced. You should consider to delete those feeds (must empty the trash) to make those feeds import again.
Hope it helps.
Regards
thank you!!!!
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
December 17, 2012 at 7:53 am #476441Hi ozzymanson2,
I missed one step.
You should declare the variable $youtube_exclass= $this->getProperty($profile, ‘youtube_exclass’, ”);
Please add the line code above to file pluginssystemjasocial_feedjasocial_feed.php at line 431.Regards
1 user says Thank You to Wall Crasher for this useful post
ozzymanson2 Friendozzymanson2
- Join date:
- September 2012
- Posts:
- 75
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 6
- Thanked:
- 4 times in 1 posts
February 26, 2013 at 4:55 pm #484622i’ve just update social feed, make all the customizings but it didn’t work(
what i need to do to add wxtended classes to facebook and twitter?
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
February 28, 2013 at 1:43 am #484811Hi ozzymanson2,
Did you have success with youtube extended class?
For Facebook and twitter, just repeat those steps and change the variable name.<blockquote>1. Open pluginssystemjasocial_feedjasocial_feed.xml and this block code at line 215
<field name=”youtube_exclass” type=”text” default=”” label=”Extened Class” description=”Extened Class”/>2. Open pluginssystemjasocial_feedjasocial_feed.php and add this block code at line 535
if($youtube_exclass){
$post[‘metadata’] = json_encode(array(‘xclass’ => $youtube_exclass));
}3. Add $youtube_exclass= $this->getProperty($profile, ‘youtube_exclass’, ”);</blockquote>
If you already add this code, just skip.
<blockquote>4. Open pluginssystemjasocial_feedtablesjoomla.php and add this block code at line 95
$item[‘metadata’] = isset($post[‘metadata’]) ? $post[‘metadata’] : ”;</blockquote>For steps 1, 2, 3, you should find the correct line to add to.
Regards
-
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by Wall Crasher 11 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum