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

Getting results of php snippet to print

How do I get the results of this great php snippet to print?

The Book Block Snippet http://drupal.org/node/44648 can be used in a book page as embedded php- -to make a self-updating Table of Contents. Fabulous.

The only trouble is when you click 'print friendly' all that shows is the PHP snippet, not the table of contents generated on the regular page.

I just know that this has to be simple, PHP command phrasing. What do I do to make it compatible to the Book Module's print friendly settings?

Adding individual and not "user-editable" info in each user profile?

Hi there!
I´ve been searching a lot in the forums, but it seems like nobody had this question before :-)

I need to add inside each user´s profile some info (different info for each user) that cannot be editable by the user, just viewable.
i.e. the fee they didn´t pay to the Institution yet.

I cannot do that with the default user profile... the only module that I didn´t try yet is the CRM one... but as that is a complex module, with so many fetures... I wanted to do it in a simpler way (if it´s doable, of course ;-)

What do you think?

Thanks!!!!!

Citizenspeak Module issues

I recently installed the citizenspeak.module all the forms are there but when I fill them and and attempt to send out a test e-mail i get this error:

user error: Table 'guerrillasql1.citizenspeak_campaigns' doesn't exist
query: INSERT INTO citizenspeak_campaigns (nid, email_message, email_recipients, campaign_format) VALUES (9, -body content- /var/www/drupal-4.6.3/includes/database.mysql.inc on line 66.

Replace user name w/full name above navigation

I collect the user's first and last name at registration time and store them (via hook_user) in a custom table (profile.module to general for my needs.)

I'm using the Blue Marine theme and would like to display the full name above the navigation instead of the user (account) name.

Where's the user name string above the navigation stored? (I haven't messed with themes at all--completely focused on functionality until now.)

Also, what's the best way to go about adding the full name to the user object so it's available globally?

Thanks.

weird errors in xml for gsitemap

I just installed the google sitemap module, and when i go to /gsitemap I get an XML file that appears to be working correctly, except at the top there are a ton of errors. It appears to be these two errors repeated over and over:

warning: sprintf(): Too few arguments in /home/username/public_html/includes/database.inc on line 154.

user error: Query was empty
query:  in /home/username/public_html/includes/database.mysql.inc on line 66.

They're in preformatted text tags at the top of the xml, and as I say they repeat like 30 or so times each. After that though, the file appears to be normal, with entries for my nodes in url tags. Anyone know what could be causing this? I did the mysql query needed by the module. And "username" in the above errors is my webserver username.

Thanks

.htaccess Problem (Clean URLs)

I have Drupal installed to my root directory, and clean urls enabled with the following code in my .htaccess file


RewriteEngine on

# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Pages

Subscribe with RSS Subscribe to RSS - Post installation