Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • infinity103 Friend
    #683452

    i want to add videos an youcan play in the same place as yoy see in the picture

    Ninja Lead Moderator
    #683696

    Hi,

    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 Moderator
    #748435

    Hi,

    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

    infinity103 Friend
    #683912

    than you for you oportune answer, im boring :((, but is posible any another solution or alternative?

    infinity103 Friend
    #748507

    than you for you oportune answer, im boring :((, but is posible any another solution or alternative?

    Ninja Lead Moderator
    #683971

    Hi,

    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 Moderator
    #748566

    Hi,

    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

Viewing 7 posts - 1 through 7 (of 7 total)

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