Having problems installing Drupal? See the Installation Guide for more information.

Avatars in Nodes

Sorry about my messed up post earlier. Let me start all over:

My site's View Online. I'm trying to make it so that users' avatars show up next to their node/comment, like LiveJournal. I've installed profile.module which adds support for avatars. With heavy muddling, I managed to edit the Trip theme main file to include this script below.

It seems to be working, but only partially. It works only for users #2 and #3, but not for anyone else. Could anyone look at this code please and maybe troubleshoot?

Thanks!

   [!-- Inserts Avatar picture here.  --]
        
        $filename = profile_avatar_path($node->uid,".jpg");
        print "[img class=\"avatar\" src=\"";
          if (!file_exists($filename)) {
                $filename =  profile_avatar_path(1, ".jpg");
          }
        print $filename;
        print "\" align=\"top\"]";
        
 print strtr(t("%a | %b"), array("%a" =] format_name($node), "%b" =] format_date($node->created, "medium"))); $
        [/td]
        [td][/td]
                [td align="right" valign="top" class="node-taxonomy"]

          [?php

          if (module_exist("taxonomy")) {
            $terms = taxonomy_link("taxonomy terms", $node);
          }
          print $this->links($terms);
          

i18n as anonymous

Hi all,

it seems that Drupal 4.2.0 doesn't have multi language support if a user isn't logged in. As I was able to see there isn't a session managment in the anonymous area either, which makes it hard to remember which langugae was choosen by a visitor.

Are there any on going developments to integrate this into drupal? Maybe with a module that first integrates session management in the visitors area (hence you'll not lose any time to execute additional db queries, if not needed).
2nd to change linking to nodes depending what language was choosen.

How can I make RSS feeds the main content?

It's fairly simple to create the RSS feeds and fill blocks with them, but is there a way to make them the main content on the page?

Finding a simple language switch

I'm not the first to ask, but I believe there must be a simple script possible so that a user can switch to another localisation (language) with a simple click. In my case, the default is French and I want English users to simply click on a link called, for example, "English navigation" (instead of asking them to create an account, etc.).

I imagine the "simplest" might be a script that identifies the default language selected in the user's browser (IE, Netscape, etc.) and tells Drupal to use that localisation for the session.

BUT it wouldn't always work, so I tried the following code proposed by Steph* a good while ago. Unfortunately, I couldn't figure out where to write "en" or "English" in the code to make it work. Yet I don't even know if this small php file would override the default language on my site.:?

Can someone tell me if this php trick would work and where to stick the "en" or "English"?

Thanks,
Mic

function locale_init() {
global $defaultLanguage,$lang,$languages;

// first set the defaultLanguage, if lang was passed in php
// initialize localization system
session_register("defaultLanguage");
if ($lang)
$defaultLanguage = $lang;

return ($languages ? ((is_object($user) && $user->id &&
$user->language) ? $user->language : $defaultLanguage ? $defaultLanguage
: key($languages)) : 0);
}

[This is followed by an html script to return to the main page of the site]

* Found at:
http://lists.drupal.org/archives/drupal-support/2002-12/msg00044.html

i/frame and i/layer tags suddenly not working

I had inserted i/frame and i/layer tags pointing to a remote-hosted calendar to a node on my site. It was all working brilliantly until I started uploading, testing and aborting some of the modules. Now the calendar page doesn't show up at all within my drupal site.

What could be the problem? Can anyone help?

Thanks.

amazon help requested in 4.2

when installing amazon module (4.2) on drupal (4.2) i get an ungly error, causing page to step rendering when block is enabled:
Fatal error: Unknown function: drupal_url() in /var/www/html/myblog/modules/amazon.module on line 402

before installing i dropped two old amazon tables and did insert the new amazone.mysal again.

anyone else seen this or know how to solve this?

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal