Having problems installing Drupal? See the Installation Guide for more information.

tabs and spaces on poems

hello,

i'm working on drupal to prepare a website for a literature magazine. i have a few questions to ask:

1. we add poems, but as you know some line of poems has many spaces in front of them. in our old page we used to use this functions for making spaces:

function forma_poem($cumle)
{
// $cumle=str_replace("\t","   ",str_replace(" "," ",$cumle));
$cumle=str_replace("\n","
",$cumle);
$cumle=wordwrap($cumle);
$cumle=str_replace(" "," ",$cumle);
$cumle=str_replace("img src","img src",$cumle);
$cumle=str_replace("\t","   ",$cumle);
// $cumle=wordwrap($cumle,10);
return $cumle;
}

function forma_story($cumle)
{
$cumle=str_replace(" ","     ",$cumle);
$cumle=str_replace("\n","
",$cumle);
$cumle=str_replace(" ","     ",$cumle);
return $cumle;
}

I can add this &nbsp instead of tabs and spaces but most of our users don't know html. how can i use this function for nodes? is it related with filters? and also is there a chance to add a checkbox while writing a node to use this function/filter? i need this function in only a few nodes.

2. when i add a book node, if i don't use html on it, it makes auto-breaks. but if i use any tags i must add < br / > to all node. is it possible for auto-breaks in html too? and if you see all node (show more) line breaks can be see if you don't use text, but in summery it doesn't uses auto-breaks. is this things enabled in themes?

Convert comment to node?

Is there an easy way to convert a comment to a forum or story node - other than creating a new node and copying the information in?

First Login Help

I'm trying to get drupal up and running, but am having problems logging in for the first time. I keep getting the message 'You are not authorized to access this page.' when I go to my newly installed drupal site and when I click on any link.

I'm not overly experienced in php(okay, I've never programmed in php), but I think that I've traced the issue back to the modules/user.module file, specifically the user_access subroutine. It looks like the page is trying to log in as 'anonymous user', but since the role and permissions tables are empty, false is being returned by strstr().

searches not working

I manually migrated all of my articles by using sql statements to import them into the node table. That part works fine. However, the search feature does not search through any of the old nodes, only the ones recently inserted into drupal via normal drupal channels.

How do I repopulate the search_index table? What else is involved? If there is no easy way to do it, I'll paypal someone $10 to write php/sql to do it.

Elijah
eli@virtualeli.com

drupal account creation questions on approving accounts and ftp access

Hello,
I am running a private website that I am thinking of moving to drupal in order to provide my members with more features. However, I have a few questions that I have not been able to find answers to browsing the site.

Firstly, can I set drupal up so an administrator must approve all new account creations? Secondly, could drupal create ftp accounts for users? I am going to be using apache for my ftp server, and I'd like to know if drupal will create ftp accounts to allow users to download the files once they have been registered and approved with drupal.

If drupal cannot do these things, can anyone recommend a good user management package to me that works with apache under debian? The package must:
-- set up an account that will allow users to access a given set of folders via http and ftp
-- allow moderators to approve all accounts created
-- store basic info about the users (name, email, etc)
-- check to make sure that the user has given a valid email address
--allow the user to update his user information (password, etc)

I'm sorry this became an extremely long post, I hope someone can help. I've been looking for this sort of thing for a while, but am not sure where or how to start looking, and thus haven't found anything that will do what I want. If you want more information, please feel free to email me at samuel@interfree.ca. Thanks in advance for any help!

Yet another image.module question

This is the first time I haven't been able to find the answer to my question by searching. Argh.

 

I am using Drupal v. 4.2.0 on Linux on a shared hosting service, setting up image.module with GD. I have successfully set this up recently using the same version, same host, different account. It wasn't difficult, and I almost didn't even test it, as I didn't anticipate a problem.

 

When I attempt to create a new image, I get the following errors when I preview:

warning: move_uploaded_file(temp/tmpimg_bizcard_nophone.jpg): failed to open stream: Permission denied in /home/chutney/public_html/modules/image.module on line 462.

warning: move_uploaded_file(): Unable to move '/tmp/phpcwD9uS' to 'temp/tmpimg_bizcard_nophone.jpg' in /home/chutney/public_html/modules/image.module on line 462.

It looks like a permissions error, but my permissions are set up identical to my other site, and the image management screen doesn't display any errors. I have verified that php is not running in safe mode.

 

Has anyone else seen this?

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal