This forum is for less technical discussions about the Drupal project, not for support questions.

Limiting Flexinode content...

Flexinode works excellent for what I'm trying to achieve. However, I'd like to limit the number of characters a user can put into a text-field.

Flexinode allows you to set the size of the text box which users input text fields into, but you can't set it to where, for example, users can enter no longer than 500 characters or such.

Any help on this would be appreciated.

Granular Privileges

Hi everybody

I have e news editor role, and i want to allow the users that belong to that role, to edit only the news, but not the other content of the site?

the only way that I find to allow a role to edit any content is giving the "administer nodes" privilege, but doing that, the user can edit then any node type.

There are any way to do what i want?

I'm sorry for my english, it is not good enough....

Google Summer of Code project ideas

UPDATE
Our official project ideas can be found here:
http://www.drupal.org/summer_of_code_2005
---

Mark Leicester pointed out on the development list that Google is funding open source development by awarding student stipends for their participation in open source projects. I think that Drupal should most definitely put some ideas up - perhaps we'll attract some fresh young talent (as if we have anything else around here ;-)

The link to the Google program is here:
http://code.google.com/summerofcode.html

In order to participate in this program, we need to apply by June 14th. I am volunteering to handle the application process.

What we need until then are the following:

The mentoring organization must do the following:

Create a pool of ideas for students to choose from.
Have a person available to take in student ideas should they not find something that appeals to them.
Have a person available to review the incoming applications marked for that organization and decide who should go forward with the effort.
Have a person to monitor the progress of the students and mentor them as the project goes forward.
Have a person ready to take over for that person in the event they go on vacation, are hit by a bus, etc...
Be able to tell us about the developer, how they worked with the group, if they should be invited back should we do another summer of code, etc..

plpgsql dynamic record access help

Hello,
Sorry for posting this in general section. I have searched everywere for a solution pls help me. I am building a trigger which would keep track of every modification to some table. here i am generlising the function. the following is the code in plpgsql.

--/* function for giving the field attributes of a given table */
CREATE FUNCTION get_fld_name(text) RETURNS _varchar AS '
DECLARE
out_fld text[20] := array[''name'',''no''];

BEGIN
RETURN out_fld;
END;
' LANGUAGE 'plpgsql';

--/** function for recording the changes **/

CREATE FUNCTION my_func_test() RETURNS OPAQUE AS '
DECLARE

flds text[20];
fldname text;

ofld text;
nfld text;

BEGIN

flds := (SELECT * from get_fld_name(TG_RELNAME));
IF TG_OP=''INSERT'' THEN
ofld=nfld;
END IF;
FOR i IN 1..20 loop
IF flds[i] <> ''NULL'' THEN
fldname := flds[i];

--/**************** Here is the problem ****************/

ofld := OLD.fldname; -- this should return Old's value
nfld := NEW.fldname; -- this should return New's value

--/****I want to get he value from OLD.name or OLD.No *******/

--/***********************************************************

Is there any way to concatnate the 2 Objects [(OLD) and (Fldname) ] so that fldname would be converted to the value but the object OLD remains same.

***********************************************************/

Developers, how do you organize/manage your files? (handbook questionairre)

the goal of this post is to address one of the areas that i haven't found any supporting documentation for, with the final goal of adding a section to the handbook so that others who follow me won't be faced w/ the same confusion... :) i'm also hoping that those who post here may also learn some things from other people taking a different approach. so, here's the question:

as a developer (and probably an admin of drupal sites as well), how do you organize and manage your files? i know that's a pretty general question, so i'll start with my answer as an example of exactly what i'm talking about:

i've got cvs installed and working, and at the moment i have cvs versions of drupal HEAD, drupal 4.6, contributions HEAD, and contributions 4.6 on my local machine. from time to time i'll run the cvs update command manually on each one to make sure i have the latest updates. if i want to create a patch, then i'll make my modifications in a copy of the file that i got from my latest cvs update, and make a diff against the vanilla file. then submit the patch, wait until it gets committed, and then run cvs update again to get the 'official' patched file. if i want to submit multiple patches to the same file, at this point i feel that i need to wait until the first patch gets committed (since i don't have commit privs yet) before i write and submit the second patch. for any drupal sites that i'm maintaining, at this point i really don't have any system for getting any of the updates i get on my local cvs copy onto the website. i suppose one way would be to just ftp the cvs version i have on my local machine to the website and overwrite the existing files there. it would be great if i could run a cvs update command directly on the files on my webserver, but i don't think i can do that. at this point i don't have any scripts to automate any of this stuff, nor do i know how helpful they would be...

group control for blocks?

i've been looking around, but it appears there's no interface to manage group/role access to a block on the site?

so then if i enable a block, and it doesn't have built-in detection to turn off if the user is not an admin, i'm displaying that content fully publicly? or am i missing a setting?

just wondering. i'd be surprised if drupal didn't allow for permission settings on blocks, since everything else seems fine-grained

Pages

Subscribe with RSS Subscribe to RSS - General discussion