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

Manji theme breaks layout on frontpage in with blog module

Hi there

Having trouble with the frontpage, it breaks. A blog node display's far to width. How do find the source and how to correct. Only a few modules have content and the site is setup like a bryght site (just to learn how it all works) Drupal 4.6 as cms.
I don't know if this will crop up under different situations this is the first i encountered and already I hit the 'brick wall'. Is there somebody who could help?

Search Block won't search..

Hi everone

I am using the Democratica theme and have activated the search block. However, when I search the function doesn't display any results, just the standard "your search yielded no results".

Anyone know what I am doing wrong?

Thanks
Lev

Adsense Adverts

I need to put adsense below the teaser text when viewing a FULL story.

I need this top happen for every story regardless of who posted it and regardless of the input type used to post the story.

Can anyone help me?

using node_load() to inline content - but PHP is repeated, not evaluated

hi folks,
i wrote a function in my theme to get the body of an arbitrary node so it can be printed out inline - we are abstracting some content "blocks" to other nodes. it works great except for when the node to be incorporated contains PHP. yes, it is set as input format "PHP Code" (format=2). i literally get the <?php and so on delivered to my browser instead of being executed. what do you folks think might be up?

thanks,
aaron.

User Page Categorization on SignUp

Hi Everyone,

I've been looking all over for the perfect CMS for my needs and I think I've found it. I'm determined to get past the initial learning curve because I understand how powerful Drupal can be. As I am thinking how to design my site, I know I want to utilize the taxonomy feature.

Generate Teaser for PHP-Nodes - our solution

By default - and this is right so - no teasers are generated for nodes with input-type php. But in some cases it is necessary - particularly with regard to the userinterface - to have teasers for all types of your content. And if you know what you do - you can generate also teasers for php-nodes. Here is our solution:
Teasers are generated in the node.module's function node_teaser. The original code is:

if (isset($format)) {
  filters = filter_list_format($format);
  if (isset($filters['filter/1']) && strpos($body, '<?' !== false ) {
    return $body;
  }
}

Change this to the following:

if (isset($format)) {
  filters = filter_list_format($format);
  if (isset($filters['filter/1']) && strpos($body, '<?' !== false ) {
    $delimeter = strpos($body, '<!--phpbreak-->');
    if ( $delimeter > 0 ) {
      return substr($body, 0, $delimeter);
    } else {
      return $body;
    }
  }
}

Add in function node_view the following to strip out this new tag (after strip out the normal <!--break-->):

node->body = str_replace('<!--phpbreak-->', '', $node->body);

Now you have a new tag <!--break--> to generate teasers for php-nodes. But: you must know what you do! Don't use this tag inside your php-code!
And remeber:
Drupal 4.6 stores the teasers in the database and not on the fly - if you change code - you must update also your nodes!

Pages

Subscribe with RSS Subscribe to RSS - Post installation