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

All links suddenly messed up when vieweing pages in subdirs...

Hello guys.

I have several drupal sites, all work great. My hosting changed to PHP 5.2, which casued a few problems with login, but were solved.

However, one site (Just one!) suddenly gives me problems. Each time I enter an internal page, in a subdir (such as www.mysite.com/admin) then all links (to CSS, and user links, and everything) points to relative inside. Like my theme, which should be
mysite.com/theme/.../.css
now is
mysite.com/admin/theme/.../.css

Same for menu, etc.

Hook code help please

I am new to drupal and really don't grasp the concept of how to adjust a 'hook' which is what I presume I need to do to get the module phpgedview working for two seperate directories/installs.

Could somebody look at the following code and help me adjust it please?

In essence I have installed two phpgedviews in seperate directories,
1 x for public viewing with no sources/media = /modules/genealogy/
1 x for private viewing by members with all records/media = /modules/phpgedview/
Both directing to different databases and index file's so there is no conflict.

I have re-written the phpgedview mod to reflect /genealogy/ and installed ok (so now there are two mods phpgedview & genealogy)

The problem I am having is in the template.php file within drupal/theme/slash, both mods are calling the template and I need to add /genealogy/ into it somehow but have no clue how.

<?php
// $Id: template.php,v 1.1 2006/07/27 23:11:43 karens Exp $
function _phptemplate_variables($hook, $vars = NULL) {
switch ($hook) {
case ('page'):
if (function_exists('phpgedview_path')) {
if (arg(0) == phpgedview_path()) {
$vars['template_file'] = 'page-phpgedview';
}
}
break;
}
return $vars;
}

I think I need a second function in there calling the following but am not sure how to include it
if (function_exists('genealogy_path')) {
if (arg(0) == genealogy_path()) {

rss publishing has no HTML line breaks

Greetings. I've searched drupal.org but can't find an answer to this. If it is known, please point me to the node.

I'm using Drupal 5.0rc2. When I write a blog post in Drupal, the RSS feed just includes linefeeds, with no HTML paragraphs or linebreaks, which is rendered in RSS readers all jammed together as one continuous paragraph.

For example, this recent blog post is output in the rss.xml file as follows:

Block displaying terms of current node: Need caching

Nice! This block displays a list of terms of the current node, sorted by Vocabulary.
Not nice. It adds one additional DB_query for each vocabulary.

Is there some i way i can use caching here?

Bilingual community website

Hi!
I am making a website where a user must choose his city and language (english/french). For each city there should be a different chatroom, forum and info pages. Additionally, Montreal page should be in french. All pages should be connected by common menu system. Does anybody know how to implement that in drupal? I don't know where to start.
Thank you!

Header blocks

Could someone please tell me how best to position custom blocks in header

eg. centre blocks, align to therigh/left, have 2/more blocks side by side

thank you

Pages

Subscribe with RSS Subscribe to RSS - Post installation