Re: [development] Drupal AHAH form submission

2011-06-27 Thread Andrew Berry
On 2011-06-27, at 7:11 AM, Mukesh Agarwal wrote: > I dont see the value that I put in body field.. Am I doing it right? I'd suggest looking at the ahah_example module in http://drupal.org/project/examples. It has a helper function that sets up the form variables properly that is invaluable in t

Re: [development] IRC changeover to XMPP?

2011-03-19 Thread Andrew Berry
On 2011-03-19, at 12:49 AM, Liam McDermott wrote: > Sounds like an interesting idea, what are the benefits of using a Jabber > server over IRC? Or are you just suggesting this change, 'for the lulz'? With IRC, we are hosted by freenode. Not only does freenode host us, but virtually any other op

Re: [development] AHAH with fieldsets not rebuilding correctly

2011-02-19 Thread Andrew Berry
On 2011-02-19, at 10:00 AM, Jeff Hartman wrote: > Getting ahah to work in general is not the problem. I have it working on one > form as I mentioned. The problem form has the values within a fieldset and > the fields with updated data are generating new fields instead of replacing > the existin

Re: [development] CVS -> GIT

2011-02-18 Thread Andrew Berry
On 2011-02-18, at 11:07 PM, nan wich wrote: > Thought about it, yes. However, by CD/DVD writer is currently jammed, so I > can't create a CD to build it. One option with Ubuntu is to use the Wubi installer. It doesn't require burning a CD, and instead installs Ubuntu into a disk image. Though a

Re: [development] I added a hook_menu function to my product_type custom module but when I go to "https://mydomain/cart/refreshcart " it says "The requested page could not be found."

2011-01-30 Thread Andrew Berry
On 2011-01-30, at 3:30 PM, Carl Wiedemann wrote: > Any changes to hook_menu requires cache clear. Along the same lines; is it possible to do a "selective" cache clear of the menu system? I ask as I am often running large sites locally for development, and rebuilding the menu cache can sometimes

Re: [development] Drupal 4.6 API documentation

2011-01-27 Thread Andrew Berry
On 27/01/2011 5:48 PM, Jennifer Hodgdon wrote: Just to clarify, all of the API documentation for any Drupal release is contained in in-code comments, so if you download Drupal 4.6 (or get it from CVS), you will have all of the API documentation along with it. It looks like the 4.7 API is also

Re: [development] Using AHAH to load a default set of fields and values

2011-01-18 Thread Andrew Berry
On 2011-01-18, at 6:43 PM, Jeff Hartman wrote: > I have a particular content type where I have a vocabulary/taxonomy drop > down. I am using hook_form_alter to modify this menu to use ahah in order to > query the db for a bunch of default values to populate other portions of the > form. #defau

Re: [development] Is there a module that ......

2010-11-09 Thread Andrew Berry
There is also URL Access: http://drupal.org/project/url_access Same idea, but never really fleshed it out as the client changed their mind. --Andrew On 2010-11-08, at 6:24 AM, Chris Skene wrote: > There is a module waiting for approval on Drupal.org that creates direct > links to nodes and use

Re: [development] Development platform?

2010-09-12 Thread Andrew Berry
On 2010-09-10, at 11:44 PM, Jeff Greenberg wrote: > 3Gb of memory You might want to check memory use; if you are using XDebug it can suck up incredible amounts of RAM. > running Vista. As mentioned before, another issue. In my experience, on the same hardware, I've always found the LAMP stack

Re: [development] "Sudo" Module

2010-08-09 Thread Andrew Berry
On 2010-08-09, at 12:48 PM, James Benstead wrote: > Thanks - both of these modules solve half of the problem (i.e., the switching > part) - but neither seem to allow me to force the user to enter the root > password in order to switch to the root account. I think sudo's method of entering your

Re: [development] php4

2010-06-14 Thread Andrew Berry
On 2010-06-14, at 2:09 PM, Domenic Santangelo wrote: > and they insisted on a specific host -- and this host only supports php4 If PHP4 only is actually the case and this is a general hosting company, I'd like to know the name so I can stay far, far away from them. Any decent hosting provider s

Re: [development] Strip_tags and JS

2010-06-10 Thread Andrew Berry
On 10/06/2010 3:39 PM, Jamie Holly wrote: $text= preg_replace('//xmsi', '', $text) should do the trick. Might also consider filter_xss($string, array()); --Andrew

Re: [development] Multiple modules, multiple versions, in Eclipse

2010-06-06 Thread Andrew Berry
On 06/06/2010 2:55 PM, Randy Fay wrote: How do you build a dev site using your root-level contrib module projects? Do you just symlink together a site? I use an external build configuration to rsync the module to the appropriate dev site. Then I'm just one click away from copying the changes

Re: [development] Module dev...

2010-06-01 Thread Andrew Berry
On 2010-06-01, at 2:09 AM, Chris Skene wrote: > Why not try using the Batch API instead? Better yet, use http://drupal.org/project/job_queue so that your user doesn't have to wait for each email to be sent. --Andrew smime.p7s Description: S/MIME cryptographic signature

Re: [development] Git.. wat?

2010-04-29 Thread Andrew Berry
On 2010-04-29, at 5:34 PM, Domenic Santangelo wrote: > With d.o moving to git, I'm becoming more interested in how it works. On a related topic, anyone using git in a way like how subversion does vendor branches? Currently I do a cvs export => svn with svn_load_dirs.pl, and I'd be really intere

Re: [development] Form API and enter key press

2010-03-03 Thread Andrew Berry
On 2010-03-03, at 6:01 AM, Pierre Rineau. wrote: > Found my own solution, a jQuery based script that searchs for a specific > class on form input elements and trick the browser by preprending a > cloned version of the default submit button on top of the form. When I've dealt with this in the past

Re: [development] Publishing data from legacy svn repository

2010-02-24 Thread Andrew Berry
On 2010-02-23, at 3:46 PM, Stephane Corlosquet wrote: > I think accessing local files would be faster than accessing a remote server > via HTTP. Yes. For HTTP, if revisions are still being updated, you could cache the response, and when it expires you'll get the latest revision. > I guess what

Re: [development] Publishing data from legacy svn repository

2010-02-23 Thread Andrew Berry
On 2010-02-23, at 2:52 PM, Stephane Corlosquet wrote: > I'm working on a project where I need to publish data stored in svn, so > instead of coming from the Drupal database I would suggest having Subversion working through Apache, then you can access the files via HTTP. Later versions (1.5? 1.6

Re: [development] Fully patched site hacked and cloaked

2010-01-31 Thread Andrew Berry
On 2010-01-27, at 3:57 PM, Ivan Sergio Borgonovo wrote: > [1] you'd have to store the revision # somewhere outside the working > copy and diff with the remote repo. > Still if you're actively developing a site you'd have to find some > way to compare working copy with a moving code base... and may

Re: [development] drupal and recovering from errors

2010-01-31 Thread Andrew Berry
On 2010-01-22, at 8:38 AM, Hans Langouche wrote: > I can also imagine that developers have their own system as for example > letting content managers unpublish but not delete. This is the most common, as well as requiring node revisions. While Drupal has a pretty decent system for content, what

Re: [development] CCK Noderef and Views

2010-01-18 Thread Andrew Berry
Views relationships? --Andrew On 2010-01-18, at 11:59 AM, nan wich wrote: > I have two content types: members (not users) and committees. I have the > member type set up to use Nodereference to be able to make a member part of a > committee. Now I want to create a view to show the committees a

Re: [development] Deploying content from master site to subsites

2009-12-31 Thread Andrew Berry
On 2009-12-31, at 10:59 AM, Nancy Wichmann wrote: > Can you share the database? If so, then the publication is a simple > matter.http://drupal.org/project/term_permissions might help. The Term Permissions module is for setting permissions to assign a term to a node (such as a "verified" term fo

Re: [development] is drupal a MVC stuff

2009-12-11 Thread Andrew Berry
On 2009-12-11, at 9:33 AM, Damien Tournoud wrote: > a big part of the view and the controller is > actually handled by the browser. This is true for how %99.9 percent of the Drupal installations out there, but a "view" doesn't have to be graphical. A View could be RSS, XML, Postscript, etc. IMO

Re: [development] Convention for accessing global variables

2009-12-09 Thread Andrew Berry
On 09/12/2009 3:45 PM, Brian Vuyk wrote: Is there an established convention for this within Drupal core? I'm sure I'm not the only person who's done something like the following by mistake: uid. // Other, unrelated code. $user = user_load(...); // Boom! This makes me think that standardizing

Re: [development] Hook_help()

2009-12-08 Thread Andrew Berry
On 2009-12-08, at 11:16 AM, Holly Ferree wrote: > I actually tried using hook_help (so it either doesn't work or I'm doing > something wrong...(I'd bet the later)). I'm pretty sure that hook_help() is only available within modules, and not themes: http://api.drupal.org/api/function/hook_help/6

Re: [development] Consolidating duplicate contrib modules for D7

2009-11-30 Thread Andrew Berry
On 2009-11-30, at 2:44 PM, Brian Vuyk wrote: > Node Access: http://drupal.org/project/node_access > Nodeaccess: http://drupal.org/project/nodeaccess IMO there should be a CVS policy disallowing namespaces to be differentiated with dashes, underscores, spaces, and so on. This is a perfect example

Re: [development] Getting SVN to deal with orphaned and new files

2009-11-26 Thread Andrew Berry
On 2009-11-25, at 9:49 PM, Dave Cohen wrote: > Finally, I use svn:externals. Has anyone ever figured out a way to make svn:externals "sticky" a revision for production branches? The biggest issue I had with it was that there was no way to easily fetch the state of the project at a given revisio

Re: [development] Getting SVN to deal with orphaned and new files

2009-11-24 Thread Andrew Berry
On 2009-11-24, at 6:19 PM, Shai Gluskin wrote: > So if you commit CVS versions of contrib to SVN, what is your method for > dealing with orphans and new files? Vendor branches. Though it's not drushified yet, I have a script (originally written by dww) posted which automates the CVS checkout /

Re: [development] creating a new usermanagement things

2009-11-23 Thread Andrew Berry
On 2009-11-23, at 12:29 PM, Kees Scherpenhuijzen wrote: > Hey all, > > When using drupal for a site where users can register themself for a > event; what is the best way to store the data when you have different > modules to manipulate them? It sounds like you need to investigate some contrib mo

Re: [development] Content Specific Modules for Small Constituencies, Are they Kosher?

2009-11-18 Thread Andrew Berry
On 2009-11-18, at 11:11 PM, Shai Gluskin wrote: > I'm thinking of creating a very simple module. All it would do is install a > particular vocabulary on your site which has about 50 terms (I'll give the > specific example further below). It strikes me that this would be much better suited as an

Re: [development] new dev q: are mysql queries possible within drupal?

2009-11-16 Thread Andrew Berry
On 16/11/2009 10:29 AM, Jennifer Hodgdon wrote: a) Add a "dummy" placeholder menu item to the menu, within the admin interface, where you want your query results to appear. b) In your theme, make a custom theme function for theme('menu_item') that will detect the dummy item and do your query, an

Re: [development] make messages appear just once

2009-11-13 Thread Andrew Berry
On 2009-11-13, at 12:41 PM, Adam Gregory wrote: > You can check > $_SESSION['messages'] Or better yet, to get current messages call drupal_set_message() with no parameters as the variable may not be set if the DB connection has failed. --Andrew smime.p7s Description: S/MIME cryptographic si

Re: [development] can you alter the way a node is represented

2009-11-12 Thread Andrew Berry
On 2009-11-12, at 8:35 AM, vishnu vardhan wrote: > I mean is there any facility like node_view_alter or something so that i can > change the way the content is getting displyed through my module ???/ How about hook_nodeapi with $op = 'alter' or 'view'? --Andrew smime.p7s Description:

Re: [development] auto deployment in drupal

2009-11-05 Thread Andrew Berry
On 2009-11-05, at 7:59 AM, vishnu vardhan wrote: I am newbie in drupal.I have started to learn how to code in drupal. I have configured my eclipse with drupal but everytime i make a change in my workspace i have to copy the entire thing in xampp \htdocs folder is there any way to directly de

Re: [development] Security Around Setting Up a Sandbox

2009-11-03 Thread Andrew Berry
On 2009-11-03, at 9:20 AM, Daniel F. Kudwien wrote: The d7sandbox account would share an IP, a hard drive, and the same server configuration with my client accounts, but nothing else. Is there a danger with this? It depends on how you have PHP set up. If it's php-cgi with suphp, you don't

Re: [development] How to add menu entry for certain node type?

2009-11-02 Thread Andrew Berry
On 2009-11-02, at 12:25 AM, Zhang Xiao wrote: let's say node/456 is not a company node, then there is no tab called "employees" in node 456's page. Yes, you can do this without much code with CCK and Views. It's likely the best solution - if you're new to Drupal, please look at those befo

Re: [development] Core bug-fixing advice & a roadblock

2009-10-30 Thread Andrew Berry
On 2009-10-30, at 3:46 PM, Matt Chapman wrote: I've got a new project with a flexible timeline and I've got approval to develop on Drupal 7, and launch on a beta release, if necessary. Care to mention the sponsor of this? It's always great to hear about companies (especially those who are

Re: [development] tying user and content_profile together in a view or module

2009-10-29 Thread Andrew Berry
On 2009-10-29, at 9:25 AM, Jeff Greenberg wrote: What I'm trying to achieve is a basic (on any billing system) customer report. So it needs the e-mail (user), profile info... and (third step) their address, which is kept in the Ubercart order. It's worth playing around with the ordering of

Re: [development] tying user and content_profile together in a view or module

2009-10-28 Thread Andrew Berry
On 2009-10-29, at 12:57 AM, Larry Garfield wrote: Sadly I don't know of a full-on relationship handler from nodes to their users, which would let you get from an arbitrary node to its owner to that owner's profile nodes. But I have been wrong about such things before. :-) You can do n*wa

Re: [development] tying user and content_profile together in a view or module

2009-10-28 Thread Andrew Berry
On 2009-10-29, at 12:40 AM, Jeff Greenberg wrote: I'm using content_profile, and need to have an admin user report that lists user info including the profile fields. It seems that content_profile exposes itself in some templates, but not as a global (such as $user) or to views. If I create

Re: [development] new features in D6 core?

2009-10-23 Thread Andrew Berry
On 2009-10-23, at 7:21 AM, Andrew Schulman wrote: It's true, the feature is quite simple. It really should just be integrated into core. I wonder if this feature would be best implemented as an action in VBO for D6: http://drupal.org/project/views_bulk_operations smime.p7s Descriptio

Re: [development] After form submit

2009-07-30 Thread Andrew Berry
On 30-Jul-09, at 12:37 PM, Salvador Benimeli wrote: I'm not sure If it would be easier with CCK and views or with FAPI or I can't do that with drupal A few options: - http://drupal.org/project/webform is great for creating forms which send off emails. You'd still have to write something to

Re: [development] Convince Client to Release Code

2009-07-13 Thread Andrew Berry
On 13-Jul-09, at 10:37 AM, Joop Sint Jago wrote: Regardless of legal status. How can one "grab" Drupal for free (with all related benefits) and then refuse to contribute back? http://www.fsf.org/licensing/licenses/gpl-faq.html I'd suggest reading up about the AGPL license as well as it wil

Re: [development] Convince Client to Release Code

2009-07-13 Thread Andrew Berry
On 13-Jul-09, at 8:10 AM, Jamie Holly wrote: and that contract stipulates if I can or can not release any of the work. If they don't want me to then the hourly rate also is higher. I've also found this to work really well. I typically phrase it as a "community participation" discount off of

Re: [development] different terms depending on $user data

2009-06-23 Thread Andrew Berry
On 22-Jun-09, at 8:55 AM, LluĂ­s wrote: I need groups of users sharing a taxonomy, but not terms; the group is defined depending on their user profile; so I have been able to write a module using hook_node_grants and hook_node_write_perms to separate their content; but now I need them able to cat

Re: [development] a Drupal site installer like the a2ensite script for Debian systems?

2009-06-09 Thread Andrew Berry
On 9-Jun-09, at 2:03 PM, Dennis Iversen wrote: I recently started to look into Drupal and into the Drush project. I have made a Drush extension for enabling websites on a Debian based server. You might be interested in collaborating with the Aegir project. http://groups.drupal.org/aegir-host

Re: [development] noderefernace cck

2009-05-27 Thread Andrew Berry
Take a look at filefield and imagefield. You should be able to extend nodereference in the same way. On 27-May-09, at 11:28 PM, "Caleb O'Connell" wrote: I am looking to get info about the cck module in drupal. I've been trying to write a cck module that will basically do the exact same

Re: [development] Status update: WYSIWYG support in Drupal core

2009-05-23 Thread Andrew Berry
On 23-May-09, at 2:41 AM, Daniel F. Kudwien wrote: tha_sun: seems like it'd be a top priority for the project..given how significantly it improves the usability Does anyone know of any papers studying the differences between various editor types, and if any of them can be shown to actually

Re: [development] 5.x to 6.x migration timeline, best practices, tips

2009-05-19 Thread Andrew Berry
On 19-May-09, at 12:29 PM, Earnie Boyd wrote: Really? Then why is it documented practice? http://drupal.org/upgrade/";> 1. Upgrade to the latest minor version in the major version you're currently on (e.g. if you are on 5.5 and want to upgrade to 6.10, and there is a 5.12 version out, upgr

Re: [development] 5.x to 6.x migration timeline, best practices, tips

2009-05-18 Thread Andrew Berry
On 18-May-09, at 5:06 PM, Earnie Boyd wrote: Quoting Andrew Berry : On 18-May-09, at 8:37 AM, Mark Shropshire wrote: Thanks for the instructions on this. You included the step of going to 5.0 first, then the latest 5.x. I always wondered if this was necessary. AFAIK it shouldn'

Re: [development] 5.x to 6.x migration timeline, best practices, tips

2009-05-18 Thread Andrew Berry
On 18-May-09, at 8:37 AM, Mark Shropshire wrote: Thanks for the instructions on this. You included the step of going to 5.0 first, then the latest 5.x. I always wondered if this was necessary. AFAIK it shouldn't be; Earnie, can you explain why you did it that way? My guess was at least 10

Re: [development] Irresponsible security researcher

2009-05-13 Thread Andrew Berry
On 12-May-09, at 9:22 PM, Karoly Negyesi wrote: This guy believes in full disclosure so much he discloses everything he finds instead letting us fix and disclose. Did he report this issue? http://justin.madirish.net/node/339. I still seems exploitable. I see he's been credited for SA's in th