This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

get varible value

i want copy file from /tmp/1.txt to /site/files

i do

$script = getenv('SCRIPT_FILENAME');
$new_filepath = dirname($script);
$tmpfile2 = /tmp/1.txt;

$success = @copy($tmpfile2, $new_filepath) or die("Couldn't copy");

but as result i can see "Couldn't copy"

and

copy(/var/www/site/files/): failed to open stream: Is a directory in /var/www/site/modules/backupgn.module on line 241.

How i can set path /site/files by variable ?

Filtered formatting in title field

Hi,

I am wanting to be able to filter / format the content of my title field, and was wondering if there is any way to do this. I read up a little and found out how to potentially remove the title field (http://drupal.org/node/2420), but I want to keep it as I need to link between nodes using node reference and this formatted title.

Is this at all possible, and if so are there any modules out there that will help me do this?

Thanks,
Kehan

Better Forums with Articles, Views and a bit of custom stuff.

I'm working on a new Drupal 5.x community site, one of the bug bears I have is with forums, doesn't everyone ;-)

Members, and likely most implementers, expect Forums to be able to sort more than just forum-topic node types, say, event and poll types and any type of node (I'll use loads of CCK node types) associated with the forums taxonomy. In my case, I'd also like to have all commenting to look the same, that is, forums should not be flat while other commenting is threaded, actually, all nodes and comments on the site should work the same.

Node types associated with the forum taxonomy should be easy to create from within the desired forum for members.

New posts icons or indicators should not discriminate between new nodes and new comments in nodes.

First, I started hacking (well, actually theme level and custom module overrides) the forum module. Then I thought, forums actually exist on three levels:

1. Forum Index
2. Topic List
3. Topic View

Question about Subscriptions

I have installed the Subscriptions module on my site, and it seems to be working when a new comment is posted to an existing node (assuming I have subcribed to the node, of course).

However, I can't seem to have Subscriptions send a notification when a new node is posted.

Is Subscriptions able to do this?

I know that the NOtify module can, but it doesn't allow the flexability that I want (that is, I only want nodes of certain types to be able to have notifications sent).

Thanks in advance.

What is the better way to pass parameters to a page in drupal?

I can use two ways to pass parameters to a page.

The first way is use drupal-style url like "q=mymodule/display/1". I can use arg(2) to get the value "1". But if I change the menu structure or something other relative I need to change the source code and change the parameter I give to arg().

The second is use the normal way to pass a "get" parameter to next page. In the url like "&id=1". But this way make the url looks not good.

What is the better way or is there another way?

Database interface module : Does something like this exist

Hi,
Is there a module which allows a user to interact with a datbase? I'm currently using dadabik ( www.dadabik.org ) but I'd like to use something that's integrated with drupal. I searched the modules directory but didn't find anything. Any ideas?

DaDaBIK is a free PHP application that allows you to easily create a highly customizable front-end for a database in order to search, insert, update and delete records; all you need to do is specifying a few configuration parameters.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions