Wistia module

tylertdesigns's picture
tylertdesigns
Mon, 01/11/2016 - 13:58
#1
Wistia module

Ok i added the wistia module to embed wistia hosted videos. How to i rearrange the page so the video is shown above the about section. Here http://tylerthompsonphotography.com/test/?q=portfolio-single-boxed

tylertdesigns's picture
tylertdesigns
Mon, 01/11/2016 - 13:59

Also there is an error at the top of the page. Thank you so much for your help

tylertdesigns's picture
tylertdesigns
Mon, 01/11/2016 - 14:05

Also is there a way to make the wistia videos work with the Simalar Projects Section at the bottom of the portfolio page

phuonght's picture
phuonght
Mon, 01/11/2016 - 23:09

1 - About your Wistia module: base on our support policy (http://megadrupal.com/forum/general-support/1923), we do not support but help you customise to rearrange the page so the video is shown above the about section. Please work following instruction:

  • Replace your current file sites\all\themes\md_make\theme_setting\front\node.preprocess.inc with new file enclosed in mail. 

  • Then go to theme settings > custom CSS code, insert:

owl-carousel .owl-item {
float: left;
height: 640px!important;
background: #ccc;
}
.portfolio-single .portfolio .portfolio-thumbnail .item{
max-height: 640px!important;
}

  • Go to /admin/structure/types/manage/portfolio/fields, create new field named Video Wistia, machine name: field_video_wistia

Video will not display at blocks such as Similar projects, you could customise by yourself because module media in our MD Make theme does not support Wistia.

2 - With the error, please open file Page.Preprocess.Inc, Line 261

// FIRST IMAGE MEDIA

Replace

$First_uri = $Vars['Multi_media'][0]['File']['#Item']['Uri'];
$Vars['First_image_path'] = File_create_url($First_uri);

with

If($Vars['Multi_media'][0]['File']['#Theme'] == "Image_formatter"){
$First_uri = $Vars['Multi_media'][0]['File']['#Item']['Uri'];
$Vars['First_image_path'] = File_create_url($First_uri);
}

and replace your two current files with new files we send by email (views-view-field--portfolio-similar-project--field-multimedia.tpl.php, views-view-fields--portfolio-similar-project.tpl.php)

tylertdesigns's picture
tylertdesigns
Tue, 01/12/2016 - 11:43

I am still getting this error. 

  • Notice: Undefined index: field_video_wistia in md_make_preprocess_node() (line 30 of /home2/tylerth1/public_html/test/sites/all/themes/md_make/theme_setting/front/node.preprocess.inc).

  • Notice: Undefined offset: 0 in md_make_preprocess_page() (line 259 of /home2/tylerth1/public_html/test/sites/all/themes/md_make/theme_setting/front/page.preprocess.inc).

tylertdesigns's picture
tylertdesigns
Tue, 01/12/2016 - 14:08

Thank you so much for your help. So sorry im having so much trouble.

phuonght's picture
phuonght
Tue, 01/12/2016 - 21:57

Please open file sites\all\themes\md_make\theme_setting\front\node.preprocess.inc, line 30

replace

$vars['content']['field_video_wistia']['#items'][0]['video_id']

with

$vars['field_video_wistia'][0]['video_id']
tylertdesigns's picture
tylertdesigns
Tue, 01/12/2016 - 22:16

That fixed one error. but there is still one more. Notice: Undefined offset: 0 in md_make_preprocess_page() (line 259 of /home2/tylerth1/public_html/test/sites/all/themes/md_make/theme_setting/front/page.preprocess.inc).

tylertdesigns's picture
tylertdesigns
Tue, 01/12/2016 - 22:16

Ok thank you that fixed one error. There is still one more. Notice: Undefined offset: 0 in md_make_preprocess_page() (line 259 of /home2/tylerth1/public_html/test/sites/all/themes/md_make/theme_setting/front/page.preprocess.inc).

phuonght's picture
phuonght
Tue, 01/12/2016 - 22:27

You could you send us your FTP account by private comment?

phuonght's picture
phuonght
Wed, 01/13/2016 - 00:06

Check your site please. We fixed.

tylertdesigns's picture
tylertdesigns
Wed, 01/13/2016 - 00:12

Im so sorry but im still seeing this error. Notice: Undefined offset: 0 in md_make_preprocess_node() (line 31 of /home2/tylerth1/public_html/test/sites/all/themes/md_make/theme_setting/front/node.preprocess.inc). 

Image title

phuonght's picture
phuonght
Wed, 01/13/2016 - 02:13

We could not see the error. Have you tried to clear cache?

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.