I am very new -- 30 days.
How do I turn off the days until the event occurs. I have been reading about a file called event.theme but I cannot find it in 5.1. Also can some one recommend a better program than notebook to edit code. thanks,
Paul

Comments

PAULSPEED’s picture

Hi,
Here is how I remove the days until the event occurs. Remove the code from about line 454. Here is what the code looks like before the removal.

* Format an individual upcoming event block item
*
* @param node
* The node to render as an upcoming event
*/
function theme_event_upcoming_item($node) {
$output = l($node->title, "node/$node->nid", array('title' => $node->title));
if ((count(event_get_types('all')) + count(event_get_types('solo'))) > 1) {
$output .= ''. t("($node->typename)") .'';
}
$output .= '('. $node->timeleft .')';
return $output;

Here is the code with the line removed.

* Format an individual upcoming event block item
*
* @param node
* The node to render as an upcoming event
*/
function theme_event_upcoming_item($node) {
$output = l($node->title, "node/$node->nid", array('title' => $node->title));
if ((count(event_get_types('all')) + count(event_get_types('solo'))) > 1) {
$output .= ''. t("($node->typename)") .'';
}
return $output;
}

Paul

PAULSPEED’s picture

Here is how I removed the days until the event occurs. The line remove
Is around 466.
This is the event.themes file in the new events module.

Here is the old code.

* Format an individual upcoming event block item
*
* @param node
* The node to render as an upcoming event
*/
function theme_event_upcoming_item($node) {
$output = l($node->title, "node/$node->nid", array('title' => $node->title));
if ((count(event_get_types('all')) + count(event_get_types('solo'))) > 1) {
$output .= ''. t("($node->typename)") .'';
}
$output .= '('. $node->timeleft .')';
return $output;
}

Here is the new code.
*
* @param node
* The node to render as an upcoming event
*/
function theme_event_upcoming_item($node) {
$output = l($node->title, "node/$node->nid", array('title' => $node->title));
if ((count(event_get_types('all')) + count(event_get_types('solo'))) > 1) {
$output .= ''. t("($node->typename)") .'';
}
return $output;
}
Paul