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

Add fields to a Node

Hope this one was not posted before...

I'm really new in drupal so i am quite lost right now. I dont need to be spoonfed I just need a few directions so i can be on my way.

Currently the default when we submit a story is we see two fields

Title:
Body:

I am trying to make a referral site so i need to add at least a few more fields so i can have

Title:
Body: somewhat of a teaser
Link : link from another site:
Author:

How to allow PHP script access to Drupal objects/functions

I am quite new to Drupal, in fact CMS's in general. I am quite familiar with PHP development, including with application frameworks (currently using CakePHP).

I have a PHP script in a plugin for FCKEditor, and I want to display a list of Drupal nodes. My questions is:

How can I get this PHP script (which is called independantly by FCKEditor) access to the global Drupal functions (ie all the functions listed in the Drupal API)? I have require'd the "bootstrap.inc" file (which seems to be the launch point), after setting the appropriate include_path, but I am getting a number of other filesystem problems, as the script running is actually at "drupal-4.6.8\modules\fckeditor\lib\editor\dialog". Errors are things like this (database.inc lines 113 onwards)

$handler = "includes/database.$db_type.inc";

if (is_file($handler)) {
    include_once($handler);
}
else {
    die('Unsupported database type: ' . $db_type);
}

Of course, running in this fckeditor\lib\editor\dialog folder means relative file paths like this do not exist, no matter what the include_path is set to. The die command prints "Unsupported database type: mysql" , and drupal-4.6.8\includes\database.mysql.inc does exist.
So, rather than modify the core Drupal files, I must be approaching this from the wrong angle. Can anyone point out how I should do this?

Oh, the include path I set using:

HELP! My SQL Error #1064

When i try to place my database into phpmyadmin on my host site, I get the following message:

Error

SQL query:

CREATE TABLE IF NOT EXISTS `access` (
`aid` tinyint( 10 ) NOT NULL AUTO_INCREMENT ,
`mask` varchar( 255 ) COLLATE latin1_general_ci NOT NULL default '',
`type` varchar( 255 ) COLLATE latin1_general_ci NOT NULL default '',
`status` tinyint( 2 ) NOT NULL default '0',
PRIMARY KEY ( `aid` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1 COLLATE = latin1_general_ci AUTO_INCREMENT =1;

Problem with menu..

Hi,..

Im using drupal site driven. and my problem is that my navigaion bar, or menu is lost.. everything in my left and side bars are gone.. i don't know what happen.. after my clients login and they press home link.. its gone.. now i cant login..

my site..
http://www.addublueknights.com

I experience this kind of problem twice, i fix it by uploading new database..

now i cant upload new database coz all the records of my clients will be deleted..

help me guys..

Deleting block description from appearing next to title

How do I get the block descriptions to stop appearing next to the block titles on my page? I know there is a way as some older ones display properly. It's just my new ones that are wrong. I thought they were only for display in the block editing menu? Thanks, TH

www.ayfn.org
tia@ayfn.org

Creating content with Category module

I'm just getting started with Drupal, and I'm trying to use the category module. I have followed the initial tutorial ("Creating a basic hybrid structure") on the Category module website, and set up a category structure to practice on (actually, I only partially completed it --- in tutorial's terms, I went up to creating the categories News and Blog, and then stopped since for now I don't need the subcategories). What I cannot find is a way to assign a new node (say, a story) to a category when I'm creating it (or modifying an existing node). There is no option to choose a category when I'm creating a new story. I feel like it's something very basic that I'm missing, but I cannot find what it is. Any help, or advice on where to check would be greatly appreciated.

I also wonder if you can provide any advice on my setup. I want to build a site with lots of roles, and lots of sections. Each role should be able to control a section of the site (create pages under it), but should not be able to modify anything outside of that section (only read). Most roles will have only one user in that role (but some will have more); with users who are in those roles changing once a year. Is it possible to accomplish this with category module (and cac_lite), or do I need something more complicated for such access control? How would you create such a site?

Pages

Subscribe with RSS Subscribe to RSS - Post installation