Drupal is up and running but how do I ...?

How do I embed several flexinodes in a template utilising phptemplate engine?

Hi,

I need to create a very custom and non-standard layout home page for a site.

So far I've determined I can use flexinodes to allow cms control over several differently styled panels that make up the design of the home page.

However so far I've only gotten them onto the home page by checking the 'publish to home page' box on content creation which seems a less than ideal means of achieving this.

Profile Pic in Story

Gang,

How do I get a user's profile pic to be published in story authored by user.

Shai

Admin password

Hi, I am new to Drupal but so far I was doing pretty good and love it. So much better than WordPress :) Today I ran into a problem - I lost the admin login information. Actually I never installed it myself, my computer-smart son did it, and while doing all the configurations, posts, etc. I was logged in automatically for days. Now, after about 10 days and numerous computer crashed due to constant power failures in our area I tried to add and edit some stuff and get access denied. Password re-send did not work either :(

Possible bug

It seems every time I create a new block I lose all my configuration settings for my old blocks. Has anybody encountered this before with 4.7?

Layout of custom profile fields on advanced user search page (user_search module)

I have added a large number of custom user profile fields (about 60) using the profile module and would like to improve the layout of the User Search page. Currently, each field is displayed on a new line, how would I go about making more efficient use of the screen real estate (e.g. perhaps I could double up the fields so that two appear per line)?

I have been told that I need to edit the function "theme_user_search_advanced" in the user_search module. However, whilst I have just got to grips with what the php code in that function is doing, I am still unclear as to how to position the form elements, apart from by adding .form-item { display: inline; } to my phpTemplate theme's style.css file (and this doesn't look pretty!).

As you can see from the code below, the form is being generated using the following drupal functions: form_select, form_textfield, form_checkbox, form_group, form_submit and form.

Any help would be greatly appreciated.

<?php
function theme_user_search_advanced($profile_fields, $form_values) {

// set up the sort order
$sort_order = variable_get('user_search_order', array());

if (empty($sort_order)) {
$order = user_search_profile_fields('category', 'category');
foreach($order as $category) {
$sort_order[$category] = 0;
}
}

asort($sort_order);

$username .= form_textfield(t('Username'), 'name', check_plain($form_values['name']), 20, 64);

How do I omit operators (AND, OR and NOT) from user_search form?

Drupal 4.6.5

Hi there,

How do I hide the "operator" drop-down boxes that contain AND, OR and NOT from the user_search module's form?

I've tried commenting out the form_select line which creates these "operator" drop-down boxes but this causes a SQL error.

Does anyone know how I can achieve this?

Your help would be much appreciated.

Pages

Subscribe with RSS Subscribe to RSS - Post installation