Problems with multilanguage frontpage in D6

Trying to use Language Switcher, when i click on English it works even if it is using the bad /node URL but when I click on Swedish from the startpage to the /sv/node, nothing comes up, I thought it would bring up a frontpage with only Swedish marked articles.

Am I doing wrong with anything ?

Sincerely
Roberth Andersson

Membership for premium content

I want to provide content for paid membership. Will that be possible to create a group of "premium member" who allowed to view my "premium content" through paypal payment and with membership time expiration control? I am new to Drupal 6 and wish to read the step by step instruction to do it.

WYSIWYG editor problem

it might sound silly and noobish but i have a quick question;

i've installed drupal 6.0 and addedd the FCKEditor module. IT worked fine and during content creation it was visible/available

Now i've reinstaleld drupal to 6.1 ( made a clean new install on a new, empty DB ) adding the same fckeditor module and i have no idea how on earth to make it to appear during content creation ? :|

i only have the TITLE, BODY fileds ( and other options ), don't have to toolbar with the modlue though :(

The path 'node/x' is either invalid or you do not have access to it.

I have installed Drupal 6.1 and DHTML Menu version 6.x.

I made a new menu and I have tried to add new items but I received the following error: "The path 'node/x' is either invalid or you do not have access to it." (x is a number).
I must tell you that I was able to create the new menu and the first 2 items in it. For the menu, I wrote to the Path: node/1, for first item: node/2 and for second item: node/3. After that, I tried to add item 3 (with path: node/4) and I got that error.
If I put any other number instead of 4 I get the same error message.

form_set_error() not highlighting fields

I have the following HTML code, generated by drupal using FAPI

strstr use for stylesheet modification

Hey all,

I'm a big fan of avoiding modules for little items like this. Does anyone know how I could utilize a php snippet in the template file to modify which stylesheet is added based upon the custom URL that is inserted for each page?

Here's the rundown of what I'm looking to do. There are five different section to the website. Each section will have a couple of different elements, namely a different background to the header and a different faded background to the inside of the content division. The rest of the structural elements of the website are remaining the same. Hence, based upon the type custom URL that is entered, I want to include a different background image.

For instance, when the url contains the string "apples", I would like to include the stylesheet that refers to the apples background; pears for pears stylesheet; etc.

I've been playing around with the following:

Various if/else commands using:

url("node/$node->nid")

(printed out the custom URL in Drupal 5.x but I was having some troubles with it in 6.x)

and the strstr command.

$haystack = 'php-homepage-20071125.png';
$needle = '-';
$result = substr($haystack, 0, strpos($haystack, $needle)); // $result = php

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x