Module
Blöcke deaktivieren ohne Zugang zur Seite
Eingetragen von Anonymous (0) am 04.05.2007 - 09:51 Uhr inHallo,
ich habe auf meiner Seite versehentlich einen Fehlerhaften Block konfiguriert, der nun die Benutzung der Seite verhindert. Ich habe daher also keine Möglichkeit, den Block auf dem üblichen Weg wieder zu löschen.
Gibt es eine Möglichkeit, den Block trotzdem zu entfernen? ftp-Zugang habe ich ja nach wie vor.
Vielen Dank für jede Hilfe!
Gästebuch-Template anpassen
Eingetragen von Anonymous (0) am 03.05.2007 - 10:04 Uhr inHallo,
wie kann ich denn den Output des Gästebuchmoduls anpassen? Muss ich dazu eine tpl Datei in meinem Theme Ordner erstellen? Kann mir jemand einen Schubs in die Richtung geben, wo ich mehr Infos dazu finde?
Danke Euch,
Christian
Theme ändern
Eingetragen von Anonymous (0) am 02.05.2007 - 16:38 Uhr inmoin,
ich bin auf der Suche nach einer Möglichkeit das aktuelle Theme zu überschreiben. ich möchte aus einer Funktion im Modul heraus das Theme ändern um für eine Seite ein anderes Theme anzeigen zu lassen.
Um mich nochmal etwas klarer auszudrücken: Ich möchte für ein $item in meinem menu_hook ein anderes Theme nutzen.
geht das was?
- Anmelden oder Registrieren um Kommentare zu schreiben
Upload Modul
Eingetragen von Anonymous (0) am 02.05.2007 - 14:15 Uhr inHallo!
Ich suche ein Modul zum Hochladen von Dateien.
Bisher habe ich fileshare gefunden.
Jedoch stört mich der Downloadbereich der überhalb der Uploadform ausgegeben wird.
Ich habe nun ewig probiert den Bereich einfach auszublenden bzw. nicht ausgeben zu lassen aber wenn der Downloadbereich nicht ausgegeben wird fehlen im Uploadbereich die Ordner zur Auswahl in der man die ausgewählte Datei speichern kann. Ich kann auch absolut nicht nachvollziehen wie diese in das select feld geladen werden
$form['file']['targetdir'] = array(
'#type' => 'select',
'#title' => t('Select a target folder'),
'#options' => array(),
'#description' => t('Choose from the list of opened folders. This menu will update to reflect the folders shown above.'),
'#DANGEROUS_SKIP_CHECK' => TRUE,
);
In den Options der Select-Form steht ein leeres Array. Wie wird das gefüllt? wird das vielleicht mit js (ajax|jah) realisiert und ich muss im folgenden Code etwas ändern?
function fileshare_folder(target,tag) {
var targetElement = document.getElementById(tag);
if(targetElement.style.display != 'block'){
if(targetElement.innerHTML == '') {
fileShareAutoAttach(target,tag);
}
targetElement.style.display = 'block';
target.className = 'fs_open';
} else {
targetElement.style.display = 'none';
target.className = 'fs_closed';
targetElement.innerHTML = '';
// Rebuild Load dropdown menu so that closed directories don't show up in list
loadTargetDir();
}
return false;
}
function loadTargetDir() {
target=document.getElementById('edit-targetdir');
if (target) {
// Remove all options by setting the Options array's length to 0
target.options.length=0;
var anchors = document.getElementsByTagName('a');
var root = document.getElementById('edit-root').value;
// Add root option
target.options[target.options.length]=new Option('/',root);
for (var i = 0; anch = anchors[i]; i++) {
if (anch && (hasClass(anch, 'fs_open') || hasClass(anch,'fs_closed'))) {
// Read in the message from the 'alt' attribute
path = anch.getAttribute('alt');
// establish base path from fileshare
path = path.replace(root,'');
target.options[target.options.length]=new Option(path,root+path);
}
}
}
}
Hat vielleicht jemand eine Idee und könnte mir eventuell helfen bitte?
Ich komme absolut nicht mehr weiter und weiß nicht was ich noch probieren soll.
Bin über jeden Tip dankbar
MFG Peter
unter anderem habe ich folgendes ohne Erfolg versucht
variante 1: uploadform select feld zeigt nichts an
function theme_fileshare_order_info($node) {
global $user;
$output .= '<noscript><div class="messages error"><strong>You have no Javascript!</strong>
You must use a Javascript enabled browser.</div></noscript>';
/*$output .= '<div id="fs">';
$output .= drupal_get_form('_fsform', $node); <-hier stehen die Dateien und Ordner
$output .= '</div>';*/
if (_tf($node->_modify) && (user_access('modify files') || (user_access('manage own fileshares') && ($user->uid == $node->uid)))) {
$output .= drupal_get_form('_uploadform',$node); // Uploadform
} else {
$output .= '<div id="-uploadform"></div>'; // so we don't get .js errors on load
}
$modulepath = drupal_get_path('module', 'fileshare');
variante2:selber effekt ($form['div'] auf #type' => 'hidden' gesetzt)
function _fsform($node) {
$form['deletefile'] = array('#type' => 'hidden');
$form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
// Javascript handler start settings
$form['div'] = array('#type' => 'hidden', '#value' =>
'<div id="startFileShare" name="'.url('fileshare/handler/'.$node->nid).'"></div>'
);
return $form;
}
variante3: die Ordner werden nicht ausgegeben Dateien schon. Im Uploadbereich werden die Ordner auch nicht angezeigt
sort($file); // sort directory array
for ($x=0; $x <= (count($file) -1); $x++) { // loop through rows of array
if (substr($file[$x], 0, 1) != "." && $file[$x] != '_previews') {
if (is_dir($node->_basepath.$node->_filepath.$dir.'/'.$file[$x])) {
/* $output .= '<div class="fs_row">'."\n";
$output .= '<div class="fs_data">'."\n";
# alter code: if ($modify) {
if ($modify && user_access('delete')) {
# Hier wird der Link zum Loeschen von Ordnern ausgegeben
$output .= '<a href="/javascript:submitDelete(\''
.$dir.'/'.$file[$x].'\');" alt="delete file" class="fs_delete">'
." </a>\n";
}
$output .= "</div>\n";
$output .= '<a href="/javascript:;" onclick="fileshare_folder(this,\''.$pre.$tag.'\');" ';
$output .= 'alt="'.$node->_basepath.$node->_filepath.$dir.'/'.$file[$x].'" ';
$output .= 'name="'.url('fileshare/handler/'.$node->nid
,'dir='.$dir.'/'.$file[$x]
.'&pre='.$pre.$tag).'" ';
$output .= 'class="fs_closed">'."\n";
$output .= $file[$x];
$output .= "</a>\n";
$output .= "</div>\n";*/
$output .= '<div class="fs_nest" id="'.$pre.$tag.'"></div>'."\n";
++$tag;
Hier nochmal die modul datei
<?php
// $Id: fileshare.module,v 1.21.2.4 2007/02/12 19:29:32 jamier Exp $
/**
* @file
* Enables users to browse, download or upload files in the 'files' directory. *
*
* You may want to change some settings in your php.ini file to adjust the
* upload file size restrictions. I can't seem to set them dynamically.
* The settings to look for are:
*
* ini_set('post_max_size', '61M'); // This should be larger than 'upload_max_filesize'
* ini_set('upload_max_filesize', '60M');
* ini_set('max_input_time', '300');
* ini_set('max_execution_time', '300'); // 5 minuites
*
* Also be sure to check that your temp directory has enough space.
*/
/**
* Implementation of hook_node_info().
*
* This is a required node hook. This function describes the nodes provided by
* this module. The name value provide a human readable name for the node while
* the base value tells Drupal how the module's functions map to hooks (i.e.
* if the base is fileshare_foo then fileshare_foo_insert will be called
* when inserting the node).
*/
function fileshare_node_info() {
return array('fileshare' => array('name' => t('fileshare'), 'module' => 'fileshare', 'description' => 'Create a Fileshare page.'));
}
/**
* Implementation of hook_access().
*
* Node modules may implement node_access() to determine the operations
* users may perform on nodes. This example uses a very common access pattern.
*/
function fileshare_access($op, $node) {
global $user;
if ($op == 'view') {
$private = db_result(db_query('SELECT _private FROM {node_fileshare} WHERE vid = %d', $node->vid));
if ($private == 1) {
if ($user->uid == $node->uid) {
return TRUE;
} else {
return FALSE;
}
} else {
return NULL;
}
}
if ($op == 'create') {
// Only users with permission to do so may create this node type.
return user_access('create fileshares');
}
// Users who create a node may edit or delete it later, assuming they have the
// necessary permissions.
if ($op == 'update' || $op == 'delete') {
if (user_access('manage own fileshares') && ($user->uid == $node->uid)) {
return TRUE;
}
}
}
/**
* Implementation of hook_perm().
*
* Since we are limiting the ability to create new nodes to certain users,
* we need to define what those permissions are here. We also define a permission
* to allow users to edit the nodes they created.
*/
function fileshare_perm() {
return array('create fileshares'
,'set file paths'
,'modify files'
,'download files'
,'manage own fileshares'
,'create directories'
,'delete'
);
}
/**
* Implementation of hook_menu().
*
* In order for users to be able to add nodes of their own, we need to
* give them a link to the node composition form here.
*/
function fileshare_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'node/add/fileshare',
'title' => t('fileshare'),
'access' => user_access('create fileshares')
);
}
// for javascript handler
if (arg(0) == 'fileshare' && arg(1) == 'handler' && is_numeric(arg(2))) {
$node = node_load(arg(2));
$items[] = array(
'path' => 'fileshare/handler/'.$node->nid,
'access' => (user_access('download files') || (user_access('manage own fileshares') && ($user->uid == $node->uid))),
'type' => MENU_CALLBACK,
'callback' => '_fileshare_handler',
'callback arguments' => array('node' => $node)
);
}
// The default download function doesn't let the download of the files that aren't in the 'files' table.
$items[] = array(
'path' => 'fileshare/files/'.arg(2),
'access' => user_access('download files'),
'type' => MENU_CALLBACK,
'callback' => '_fileshare_download'
);
return $items;
}
/**
* Implementation of hook_form().
*
* Now it's time to describe the form for collecting the information
* specific to this node type. This hook requires us to return an array with
* a sub array containing information for each element in the form.
*/
function fileshare_form(&$node) {
// update older fileshares || prep new ones
$defaultpath = file_directory_path().'/'._sanitize_filename($node->title).$node->nid;
if ($node->_filepath == $defaultpath || !isset($node->_filepath)) {
$new = TRUE;
if (!isset($node->_basepath)) {
$node->_basepath = file_directory_path();
$node->_method = 1; // private
}
}
// We need to define form elements for the node's title and body.
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#required' => TRUE,
'#default_value' => $node->title,
'#weight' => -5
);
$form['body_filter']['body'] = array(
'#type' => 'textarea',
'#title' => t('Body'),
'#rows' => 8,
'#default_value' => $node->body,
'#required' => FALSE
);
$form['body_filter']['filter'] = filter_form($node->format);
$form['file_filter'] = array(
'#type' => 'fieldset',
'#title' => t('Fileshare Settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#description' => t('The current post file size limit is set to %post-max, and the upload size is %upload-max.',
array('%post-max' => ini_get('post_max_size'), '%upload-max' => ini_get('upload_max_filesize'))),
);
$form['file_filter']['_method'] = array(
'#type' => 'radios',
'#title' => t('Download method'),
'#default_value' => $node->_method,
'#options' => array(t('Public - files are downloaded using http directly.'),
t('Private - files are transferred by Drupal and downloads tracked.'))
);
$form['file_filter']['_filepath'] = array('#type' => 'value', '#value' => $node->_filepath);
if ($new && user_access('set file paths')) {
$form['file_filter']['_basepath'] = array(
'#type' => 'textfield',
'#title' => t('Node base path'),
'#default_value' => $node->_basepath,
'#maxlength' => 255,
'#description' => t("If you want any sort of access control on the downloading of files, the Download method
needs to be set to Private. The default path you see now is taken from the Drupal File system settings.
You can only set the Node file path at the time of node creation.
- Anmelden oder Registrieren um Kommentare zu schreiben
- Weiterlesen
Unterschiedliche Veranstaltungstypen in einem Kalender
Eingetragen von Panthrax (14) am 02.05.2007 - 12:26 Uhr inHallo zusammen.
Ich möchte nun Webseite erstellen, die eine Kalenderübersicht bietet, in der Veranstaltungen unterschiedlichen Typs eingetragen sind. Ich habe mich mit dem Modul Views beschäftigt und versucht, einen passenden Inhaltstyp zu erstellen. Aber, ich erreiche mein Ziel nicht.
Eine Listenanicht eines beliebigen Typs habe ich als Ansicht bereits erstellen können. Als Kalender bleibt die Ansicht aber leer.
Größere Umfrage erstellen
Eingetragen von made4milk (12) am 02.05.2007 - 09:48 Uhr inAlso ich soll nach kundenwünschen eine Umfrage auf einer internen Firmenwebseite tätigen. Da ich mit Drupal noch nicht sehr lange arbeite, würde ich gerne wissen ob es überhaupt möglich ist den Auftrag mit Drupal so umzusetzen.
FCKEditor
Eingetragen von Anonymous (0) am 02.05.2007 - 09:40 Uhr inHallo erst mal!
Bin auf der Suche nach einer Antwort ! ~~!
Habe diese Frage auch schon auf drupal.de gestellt, aber leider noch keine Antwort bekommen.
Bin noch ziemlich frisch dabei mich mit Drupal anzufreunden, denn bis jetzt war ich überzeugter Joomla Fan (was sich aber seit der Drupal 5 DVD geändert hat).
Jetzt bin ich soweit vorgedrungen, das ich den FCKEditor in meiner Liveseite einbinden wollte. Das klappte auch alles sehr gut, aber die ganzen Symbole des Editors werden nicht angezeigt. In meiner Offline Version funktioniert das alles SUPER, deshalb hier mal meine Frage:
Gibt es irgendwelche Vorraussetzungen für die Nutzung von Drupal 5x mit dem FCKEditor? Ich bin mit meiner Seite bei Goneo und hatte bis jetzt noch nir Probleme.
Über eine schnelle Antwort würde ich mich freuen.
Danke schon mal an alle, die mir bei weiteren Problemen helfen werden.
Ciao und allen eine schöne Restwoche.
Rico
Habe gerade herraus gefunden, das der Editor bei dem Erstellen von Blöcken angezeigt wird, aber sonst nicht.
Vielleicht weiß jetzt jemand, woran das liegen kann.
Danke
- Anmelden oder Registrieren um Kommentare zu schreiben
- Weiterlesen
Mehrere images in einen Inhalt einfügen
Eingetragen von incredible (2) am 01.05.2007 - 08:02 Uhr inHallo an diesem schönen ersten Mai,
ich beschäftige mich seit nunmehr 2 Wochen mit Drupal und bin wirklich angetan.
Aber mit den Images, das ist eine Krux für mich. Ich möchte gern mehrere Images in einen Inhalt untereinander einfügen. Und dann jeweils rechts daneben die Beschreibung zum Image.
Hat jemand eine Idee, wie ich das am besten lösen kann?
Bislang installiert habe ich: image, image-gallery und image attach
Beiträge erscheinen nicht unter "Neueste Beiträge"
Eingetragen von fotofritze (6) am 30.04.2007 - 18:06 Uhr inDie neuesten Beiträge erscheinen nicht unter "Neueste Beiträge" (Recent posts). Gehe ich unter "Administer" > "Content" sind sie alle da - in richtiger Reihenfolge.
Erscheinen nur Beiträge in der Liste "Neueste Beiträge" die Menues zugeordnet sind?
Merci für Hinweise
FF
Suche Modul für Mitarbeiterliste
Eingetragen von cvb (29) am 30.04.2007 - 14:28 Uhr inIch suche ein Modul für Drupal, was eine Telefonliste der Mitarbeiter bereitstellen kann. Am besten wäre, wenn ein Outlook ex- und import möglich wäre.
Neue Kommentare
vor 27 Minuten 22 Sekunden
vor 3 Stunden 48 Minuten
vor 20 Stunden 55 Minuten
vor 4 Tagen 16 Stunden
vor 5 Tagen 11 Stunden
vor 5 Tagen 14 Stunden
vor 5 Tagen 17 Stunden
vor 6 Tagen 18 Stunden
vor 6 Tagen 18 Stunden
vor 1 Woche 20 Stunden