-
AuthorPosts
-
September 12, 2015 at 10:36 pm #683452
i want to add videos an youcan play in the same place as yoy see in the picture
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 14, 2015 at 5:21 am #683696Hi,
The module of you mentioned above is JA Content Popup and I’m afraid that it only supports to get article from joomla com_content and not video on that.
Regards
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 14, 2015 at 5:21 am #748435Hi,
The module of you mentioned above is JA Content Popup and I’m afraid that it only supports to get article from joomla com_content and not video on that.
Regards
September 14, 2015 at 3:13 pm #683912than you for you oportune answer, im boring :((, but is posible any another solution or alternative?
September 14, 2015 at 3:13 pm #748507than you for you oportune answer, im boring :((, but is posible any another solution or alternative?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 15, 2015 at 2:51 am #683971Hi,
Because the option of your request does not support on this module, but you can try to do this maybe you need to spend more time to implement it.
Look at the our JA Wall demo here, you can see the way to get image from video link as your expectation.
+ Open templates/ja_wall/html/com_content/category/blog_item.php file, find and see
WallHelper::buildImage($images, $this->item);
// build intro images
// if intro images exists in $images, use it
// if not, get images from intro content
// if not, get from full image in $images
public static function buildImage(&$images, $item){
static $regex1 = '#(<img[^>]*>)#i';
static $regex2 = '#s+srcs*=s*(["'])([^'"]+)1#i';
static $regex3 = '#salts*=s*(["'])([^'"]+)1#i';if (empty($images->image_intro)) {
if (preg_match ($regex1, $item->introtext, $match)) {
$image = $match[1];
// get img src
if (preg_match ($regex2, $image, $match)) {
$images->image_intro = $match[2];
}
// get img caption
$item->image_caption = '';
if (preg_match ($regex3, $image, $match)) {
$images->image_intro_alt = $images->image_intro_caption = $match[2];
} else {
$images->image_intro_alt = $images->image_intro_caption = '';
}
}
}return $images;
}
You apply the same that with the image of JA Content Popup module into templates/ja_mitius/html/mod_jacontentpopup/default_item.php file
<?php echo $row->image;?>
Regards
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 15, 2015 at 2:51 am #748566Hi,
Because the option of your request does not support on this module, but you can try to do this maybe you need to spend more time to implement it.
Look at the our JA Wall demo here, you can see the way to get image from video link as your expectation.
+ Open templates/ja_wall/html/com_content/category/blog_item.php file, find and see
WallHelper::buildImage($images, $this->item);
// build intro images
// if intro images exists in $images, use it
// if not, get images from intro content
// if not, get from full image in $images
public static function buildImage(&$images, $item){
static $regex1 = '#(<img[^>]*>)#i';
static $regex2 = '#s+srcs*=s*(["'])([^'"]+)1#i';
static $regex3 = '#salts*=s*(["'])([^'"]+)1#i';if (empty($images->image_intro)) {
if (preg_match ($regex1, $item->introtext, $match)) {
$image = $match[1];
// get img src
if (preg_match ($regex2, $image, $match)) {
$images->image_intro = $match[2];
}
// get img caption
$item->image_caption = '';
if (preg_match ($regex3, $image, $match)) {
$images->image_intro_alt = $images->image_intro_caption = $match[2];
} else {
$images->image_intro_alt = $images->image_intro_caption = '';
}
}
}return $images;
}
You apply the same that with the image of JA Content Popup module into templates/ja_mitius/html/mod_jacontentpopup/default_item.php file
<?php echo $row->image;?>
Regards
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by Ninja Lead 9 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum