Get ONE field value based on current user.

Hi all,

I need a script which checks the db if the user has submitted any image in a profile2 form. if it has, run some code, and if not, run something else. I did create a PHP-script for that, put it in a block and it worked, untill i realised that it wouldn't to so for much long - I was right.

I got the newest fid where the user was the one submitted it. Well, it didnt work and there has to be a way to get just ONE field value based on the user, right?

I can only find how I get values from the DB in arrays. I dont want, nor need that.

Protect content linked from html code in drupal nodes

Hi!

I have a multisite Drupal 7 intallation with a files directory inside one of the sites. It is configured as my Drupal documents directory, however, I need to create new directories inside it to put some order in private documents that are not going to be uploaded but html linked from the body of content nodes instead. My question is, how can I have Drupal to protect these documents? Thanks in advance. I hope some one can help me.

Stuck in "Select and installation profile" with Drupal 7.2

Hi there,

I am trying to install Drupal 7.2 and I am stuck on the "Select an installation profile" page. I click the "save and continue" button but the page gets reloaded and I cannot progress with the installation.

I have followed the steps in the installation guide on creating the database and the settings.php file, but I am stuck!

I am running:
Ubunto 10.10.
PHP Version 5.3.3
PHP extension: mysqli
Apache/2.2.16 (Ubuntu)
MySQL client version: 5.1.49

views: add class to field based on contextual filter

Hi there i have a view that shows a list of fields and i want to be able to add a class to one or more of the fields depending on the contextual filter. So for example if i have a content type called 'fruit', and a view showing each instance when i add a contextual filter that filters the results by name i can show or hide all the entries that have that name, eg. i could show all items that match the title 'pear' or 'apple'.

Profile Note area

Hello all,

First If this is the wrong spot for this please let me know,

I am looking to upgrade from Drupal 6.x to Drupal 7.x the problem is a module being used by a ton of people. It's the sticky Notes module ( only released for 6.x ) http://drupal.org/project/sticky_notes

Does anybody have anything that allows for private Profile notes area in Drupal 7.x?

Thank you

image_get_info does not work on http urls

I am trying to get image size of a thumbnail by using drupals image_get_info function but even if the image exists it does return false for absolute http urls. filepaths in this form work though: public://myImage.jpg.
I though that it was something with my php.ini but allow_url_fopen and allow_url_include are both set to one, also adding a "www" to the http url did not help. Is this a bug, any ideas?

PS: PHP getimagesize() works as expected!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x