Benutzeranmeldung
hoelterhof.net
Tobias Hölterhof
Schlagworte Blog
Feeds
Code & Bytes
Drupal Conference Module
Geschrieben am Mi, 08/11/2006 - 17:39 von Tobias HölterhofThe conference module allows you to organise conferences with drupal 4.7. It implements a mechanism to post papers, to manage reviewers and to assign reviews to papers. A paper is an aritrary node whith an attached file and a review is an arbitrary node assigned to a paper. It also takes care for the access permissions to papers and reviews:
-
every author can only see his own paper
every reviewer can only see his own reviews but download the pdf-files attached to the papers assigned to him
a manager can see both and create assignments
The conference module does not implement note types for papers and reviews. It is designed to cooperate with the content constriction kit or flexinode (cck is suggested). So you can provide a review questionnaire that suit your needs.
There is one important point in this concept: The pdf-filed assigned to a paper-node must not containt the author names!
About this module
This module is sponsored by the university of Duisburg-Essen (Germany). It has been written to organize the german moodle conference 2007. Licence: GPL.
How to theme the trackback URL in Drupal
Geschrieben am Mi, 04/10/2006 - 20:35 von Tobias HölterhofJust a little detail: do you like the way how the trackback-module displays the trackback-url on your drupal-site? There's a simple way to change this behavior. It requires some little changes in the module-source, but perhaps that will give you an understanding of the programming of drupal-modules...
At first have a look at the trackback.module file, especially on line 261:
$node->body .= theme('box', t('Trackback URL for this post:'), url('trackback/'. $node->nid, NULL, NULL, TRUE));
this line themes the trackback-url. Unfortunately the theme-function "box" is used to do that. The box-function creates an html-code enclosed by <div class="box">. Because there are many occurrences of this class, and it's not only used to theme the trackback-url, you can't style the trackback-url by this class in your CSS-file. To solve this problem, use a new theme-function like this:
$node->body .= theme('trackbackurl', t('Trackback URL for this post:'), url('trackback/'. $node->nid, NULL, NULL, TRUE));
Now, drupal will call the theme-function "trackbackurl" to theme the url. The next step is to create this function. The best place to do this is right here in the trackback.module. Insert the following code at the end of the file:
function theme_trackbackurl ($title, $content, $region = 'main')
{
$output= '';
$output.= $title.''.$content.'';
$output.= '';
return $output;
};
Now you can style your trackback-urls in your CSS-File. Add something like this:
.trackbackurl {
font-weight: bold;
color: #9e4040;
margin-bottom: 20px;
}
.trackbackurl .url {
font-weight: normal;
font-family: mono, courier;
color: black;
padding-left: 20px;
}
(c) 2011 Tobias Hölterhof | CMS Drupal | Layout basiert auf Abac von Artinet
Neue Inhalte
Neueste Kommentare
vor 10 Stunden 31 Minuten
vor 17 Stunden 8 Minuten
vor 18 Stunden 52 Minuten
vor 1 Tag 11 Stunden
vor 1 Tag 15 Stunden
vor 4 Tage 6 Stunden
vor 6 Tage 16 Stunden
vor 1 Woche 1 Tag
vor 1 Woche 4 Tage
vor 1 Woche 5 Tage