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

Printer Friendly Pages Confusion

This is my first post here, so if I blow any ettiquette rules, please let me know.

I'm trying to set up the Printer Friendly Pages Module. The initial installation seemed to work fine, but then I opened the print.node.tpl.php file and tried to insert copyright information in the footer section.

It had no effect on the printer friendly page. Also, the page was ignoring paragraph breaks within the node.

newb troubleshooting for CCK on 4.7.3

Hi folks,

I'm new to drupal and I'm developing a site on a 4.7.3 install, occasionally mirroring to my hosting provider for client approval. Two days ago I attempted unsuccessfully to install CCK 4.7.0 on my development system.

At first I tried to enable a few of the CCK modules in administer->modules, but received a blank page after clicking 'Submit.' Upon reloading the modules page I was informed that some of the db tables that should have been created by content.install were not present. CCK permissions were available in administer->access controls, and the content->content types menu item became available, but of course would not work correctly without the db tables. I have not tried creating the tables from content.install manually, after an unsuccessful report on an old thread here: http://drupal.org/node/63565

I restored a copy of the database from the production server and tried again, this time only enabling the 'content' module and none of the others from CCK, but with the same resulting blank page.

Has anyone been successful with CCK 4.7.0 on a fresh drupal 4.7.3 install? The only other contributed modules installed are tinymce, image and sitemenu. This is a multisite configuration, but all of the modules (including CCK) were installed in [drupal root]/modules/contrib. I also tried putting cck in modules instead of my contrib subdirectory.

Further, can someone give me some pointers on troubleshooting further? Can I force CCK to think it hasn't been installed (i.e. re-run content.install when I enable the module)? Either way, where can I look for more detailed error output from PHP and MySQL?

How do I: Make links based on node content

Hello all,

I'm really having some headaches here. Be advised I'm walking myself through the problem right here and I'm a novice coder so bear with me :-)

I'm trying to display custom links I can make with a patched Interwiki module (for Technorati spiders), at the bottom of all Blog posts (links must be within the body because they must appear in the RSS feed), and display link text based on the current node (Blog post title and Group name).

I can produce links using my Interwiki setup in normal ways without a problem. The 2 areas I need help in are:

1) Displaying link text based on the current node (Blog post and Group name).

This is what I've done (in a custom Block body):

Code:

        <?php
         global $user;
         print "Technorati Tags: [[tech:Current Node's Title]] | [[techd:Current Node's Group Name]] | [[tech:$user->name]]";
         ?>
         

Output:

Technorati Tags: Current Node's Title | Current Node's Group Name | root

Now, the global $user; and $user->name is arbitrary. I just want to show what I want to do with the Blog title and Group name. It works, but it's not what I want. I tried global $node; with $node->title and global $group; with $group->name, but no dice :-(

How to clean up content block?

I would like to elimate the announcing of new posts, stories, polls, events and etc. in my center content block. I'm sure there is a way of doing this but I can't find it. Can you help please?

Das Locale Modul ist Scheiße!

The locale module completely destroys site performance. Yes, I’ve read the other posts concerning this issue, and no, they don’t offer any viable solutions.

Although the bug is declared fixed and closed, I can readily and easily reproduce the offending behavior: 1-2 minute downloads for every click!

Drupal 4.7.2
Apache 1.3.33
Unix (Mac OS X 10.4.7)
PHP 4.3.11
MySQL 4.1.13a

Link to Admin page results in 590 queries in 59495.42 milliseconds
Here’s a partial sample:

111.96 0 locale SELECT s.lid, t.translation FROM locales_source s INNER JOIN locales_target t ON s.lid = t.lid WHERE s.source = 'Africa/Addis_Ababa' AND t.locale = 'de'
107.76 0 locale SELECT s.lid, t.translation FROM locales_source s INNER JOIN locales_target t ON s.lid = t.lid WHERE s.source = 'Africa/Algiers' AND t.locale = 'de'
105.45 0 locale SELECT s.lid, t.translation FROM locales_source s INNER JOIN locales_target t ON s.lid = t.lid WHERE s.source = 'Africa/Asmera' AND t.locale = 'de'
143.82 0 locale SELECT s.lid, t.translation FROM locales_source s INNER JOIN locales_target t ON s.lid = t.lid WHERE s.source = 'Africa/Bangui' AND t.locale = 'de'
113.46 0 locale SELECT s.lid, t.translation FROM locales_source s INNER JOIN locales_target t ON s.lid = t.lid WHERE s.source = 'Africa/Blantyre' AND t.locale = 'de'
107.79 0 locale SELECT s.lid, t.translation FROM locales_source s INNER JOIN locales_target t ON s.lid = t.lid WHERE s.source = 'Africa/Brazzaville' AND t.locale = 'de'

<?php include ?> question?

I am using the newest version and I have my conetnt type set to php, but when I try and use

include('folder/file.php');

it just shows blank I have also tried include('file.php');

in the same folder root or path.

does anyone know what this could be?

Pages

Subscribe with RSS Subscribe to RSS - Post installation