Style (set height and width) of image field being rendered with views php

The context: drupal 7, views, views PHP, rendering some fields with PHP because (good) reasons.

$nodo = node_load($row->nid);
$strmn = '<div class="post-block">';
$strmn .= '<div class="post-image">';
$image = field_get_items('node', $nodo, 'field_image');
$preout= field_view_value('node', $nodo, 'field_image', $image[0]);
$linko= url('node/'. $nodo->nid);
$strmn .= '<a href="' . $linko . '">' . render($preout) . '</a>';

After a lot of googling I've been able to write this.

Submit button hidden behind video preview

I am having issues right now with selecting videos to add to my pages. Right now when you upload and select a new video in the Media Browser Module the Submit button is hidden behind the video's preview, screenshot. I am not sure what is causing this issue.

I have tested with the videos that have previously been uploaded and the button seems to display totally fine, screenshot.

Any help with this issue would be gratefully appreciated.

Different page template for different language in drupal 7

I have a site on Drupal7 using bootstrap theme. I have 2 languages (persian and english) and I need to make a completely different pages for per language.

my default language (persian) has "page--front.tpl.php", "page--video.tpl.php" and "page.tpl.php".

now i want to have "page--front--en.tpl.php" for example.com/en , "page--video--en.tpl.php" for example.com/en/video and etc. In fact, I need a function (theme_hook_suggestions) for template.php.

Could anybody give me a hint, please?

How to get the bootstrap css file

Hello,

I use bootstrap theme. I noticed that css from bootstrap theme being applied to my site. Then I overwrite css by writing my own file. How can I get the bootstrap css file that is being applied to my site? When I inspect  my site in chrome, I see css piece being applied. I am not talking about those. I am trying to get the entire css files from bootstrap for all devices being applied to my site.

Thanks.

People pictures not visible unless logged in

  1. If people upload files, I would like them to be private, so that those files can only be seen by other local users who log in.
  2. If a picture is uploaded to a person's page, I would hope that that picture would be visible on the collected "People" page.

It seems that as both of those involve an "upload", I can't treat them differently, but hopefully I'm missing something - any hints?

In Configuration/Media/File system, I have "Default download method = Private local files served by Drupal." which I think is necessary for 1).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x