Photo contest

Hello Everyone,

I am searching for a module to create a photo contest. Is there already a module like this?

Thanks,
Tim

How to create a custom php.ini file when nothing else works

I recently needed to increase the memory_limit, upload_max_filesize and post_max_size values to something higher than the measly amount set by a particular webhost's default php.ini file. This account had cPanel on it and overriding the php.ini defaults the usual way (by adding various lines to the .htaccess or settings.php files) didn't work at all. If you've had the same experience, you may find that this how-to works for you.

This how-to is for any version of Drupal running on Linux and Apache. No Drupal modules are needed, but the devel module certainly helps.

1. Get and modify your custom php.ini file

It's best to use a php.ini file that somewhat resembles the one already running on your server. You can probably find one at /usr/local/lib/php.ini or /usr/local/Zend/etc/php.ini and just copy it into your account's web folder (it may be called "public_html" or "www" or "htdocs" or something -- you know the one).

2. Creating your CGI script

Now create a small script and put it in your cgi-bin directory. In your web folder, create another folder called "cgi-bin" if it's not there already. Using your preferred text editor, create a file name "php.cgi" and put the following into it:

how to download a particular user to particular wavefile

iam giving clear info about my problem
$items[] =array('path'=> 'user/voicemail',
'title' => t('voicemail'),
'callback' => 'uservoicemail');

$items[] =array('path'=> 'user/voicemail/download',
'title' => t(' details'),
'callback' => 'download');

function uservoicemail(){

$output .=' ';
$output .=' FIlename ';
$output .=' FromAddress ';
$output .=' Date and Time ';
$output .=' Duration(mm) ';
$output .=' Priority ';
$output .=' Download ';

$path='/chat/int/voicemail/9002/box/';
$dh=opendir($path);
$safefilename='/^\w+\.txt$/';
while (($files = readdir($dh)) !== false) {
if(preg_match($safefilename,$files){
$output .= ''.substr($files1,0,7).'';
$wavefile =substr($files1,0,7).'.wav';
$filename1= $path1.$files1;
$tempvar1 = fopen($filename1,"r");
$content1=fread($tempvar1, filesize ($filename1));
fclose($tempvar1);
$lines1= file($filename1);
$output .=''.substr($lines1[4],12,-1).'';
$output .=''.substr($lines1[11],9,-1).'';
$output .= ''.substr($lines1[14],9,-1).'';
$output .= ''.substr($lines1[8],9,-1).'';
$output .= ' '.t('Download').'';

}
}
$output .='';
closedir($dh1);
}

function download(){
$safeFilename = '/^\w+\.wav$/';
$path='/char/int/voicemail/9002/box/';
$dir = opendir($path);
if (!$dir) {
die("Bad downloads setting");
}
while (($file = readdir($dir)) !== false) {

Creating organic groups block that lists data from profile field

I'm using organic groups, and I would like to create a block view (as mentioned in previous post) that displays a URL field that is stored in the user profile. The block would display in the sidebar and would show the list of URL fields that belong to the members of that group. I know I need to create a view, but how do I specify

1) That the block is displayed only on group pages
2) That the block only contains the fields for the group members?

Thanks.

Wonder95

URL profile field not available in views?

I'm using organic groups, and I would like to create a block that for each group, shows the value of a URL type field that is stored in the user profile. However, when I go to create the view, the URL field is not available in the list of available fields. Is it supposed to be that way? The other fields I have added to the profile (text fields and a drop down list) are available in the list. Are URL fields specifically restricted from being in views?

Showing images only in galleries

I've posted on this before and have seen other posts with no response, so I'm hoping this time's the charm.

I'm using organic groups and og galleries. When I create an image, it specifies the gallery it goes to, but the image is also shown as a regular post on the group main page. How can I filter the page so that only blog entries show up on it, and not images?

Thanks.

Wonder95

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x