DevHeads.net

Development

Advice on module writing

I've had a look at the domain modules and organic groups and neither
seems to do what I want.

What I want is to create a domain/site structure like this:
widgiemootha.example.org,
wiluna.example.org,
witchcliffe.example.org
wagin.example.org
wyalkatchem.example.org
<a href="http://www.example.org" title="www.example.org">www.example.org</a>
birdiya.example.com

Membership between all sites will be shared, but individuals might not
actually be members of any particular site.

Drupal's multisite allows sharing tables and so membership.

Batch load of Entity Translations

(Also posted on Forums)

I've been looking for almost a week and can't find anything anywhere to give me the information I'm looking for. So if it does exist and I'm just being an idiot I apologize.

I have created a drupal module to display Job Postings. The postings along with the translated data are all created in a separate system so all I want to do is load the posting and related translations into my Drupal website automatically.

I already have the job posting data loading properly and as far as I can tell I have the module coded to pull the translations as required and available.

rawurlencode vs. urlencode in drupal_http_build_query and drupal_encode_path

Howdy folks. Due to some draconian anti-SQL injection filters in our
firewall software, I'm exploring how a few things work with url building in
Drupal 7 & 8. A particular firewall rule is rejecting %20and%20 which
unfortunately comes up fairly often with searches and webform, because both
urls for those get encoded in that way.

Now, this filtering is not of course Drupal's problem, but in tracking this
down, I found that basically, drupal_http_build_query and
drupal_encode_path use rawurlencode and thus change spaces to %20.

artisteer

Hi!
Do you suggest using artisteer? Why or why not?
thank U!

sms 4 drupal7

Hi!
I need to send sms to users with drupal 7 & unfortunately I realized that the modules of this purpose are under development!
so now what should I do??
how long does it takes for new module to be developed??
thanks!

GSoC 2013 Guidelines?

Hi,

I am Tejas Nikumbh, an undergrad at Indian Institute of Technology Bombay.
I will be participating in GSoC this year. [GSoC 2013].

(no subject)

Hi,

I am Tejas Nikumbh, an undergrad at Indian Institute of Technology Bombay.
I will be participating in GSoC this year. [GSoC 2013].

hook_schema results in errors

Hi,

I've got the following schema,

function tcmb_schema() {
$schema['tcmb'] = array(
'fields' => array(
'currency_name' => array(
'type' => 'varchar',
'length' => 50,
),
'currency_symbol' => array(
'type' => 'varchar',
'length' => 3,
),
'updated' => array(
'mysql_type' => 'DATE',
),
'buying' => array(
'type' => 'numeric',
'precision' => 6,
'scale' => 4,
),
'selling' => array(
'type' => 'numeric',
'precision' => 6,
'scale' => 4,
),
),

Import Node with custom PHP code

Hi All,

I have code some custom php code to import node and it was working fine for
me, but just the NEW remark always display at the end of node title.
I really wonder if anyone have experience?

Please check my screenshot below:
<a href="http://screencast.com/t/hagWAAIJNI" title="http://screencast.com/t/hagWAAIJNI">http://screencast.com/t/hagWAAIJNI</a>

Best Regards,
Sydore Pry

Tasks for newbie

Hi,
I have setup the drupal environment.And I take a bit look at drupal and
play around with it.
But I'm confuse that what's the way newbie's can contribute for drupal.
Can anyone give me some guidance to go ahead with drupal.

Dharmasiri D.S.D
Faculty Of Engineering
University Of peradeniya

Regarding bundles and content

In terms of content architecture, what are your deciding factors in whether
or not to use a node as opposed to a custom bundle, or even a custom table
instead if an entity?

Contribution to Drupal

Hello !!

I am a newbie to drupal and want to contribute in it. I have previous
experience of HTML, CSS and Jquery .
Can you please guide me that how i can start contributing to drupal.

Manish Sharma
B.Tech,CSE ,IV year, Indian Institute of Technology Roorkee.
+91-7579048744

Rules action to impersonate a user

Some of my scheduled task needs to run as the user who triggered them (not
anonymous neither admin); so I thought of writing two actions:
- One to impersonate a user, which will receive uid as an argument.
- Another to undo the impersonate.
All the called actions should be between them.

Anybody see any fault in this idea or the actions code?

Thanks.

function wu_action_impersonate($uid) {
global $user;
if (!array_key_exists('wu_action_impersonate', $_SESSION)) {
$_SESSION['wu_action_impersonate'] = array();
}
array_push($_SESSION['wu_action_impersonate'], $user);
session_save_s

How can I contribute?

Hi all!

I am a Computer Science & Engineering undergraduate from Sri Lanka.

I would like to help make Drupal better. but I have no idea where to begin
with. Can you please help me?

Regards!

Hasi

Understanding the learning of contributing

Hello sir/madam,
My name is Dhanesh. I am 3rd year B.tech student. Please guide me how to contribute in this organization. I am good in java and extremely interested in web designing, I want to see my self a very good software developer.Excited to see your reply.Your sincerely,Dhanesh

Seeking advice for contribution to projects

I, Girish Patil, am a 3rd year engineering student from DA-IICT,
Gandhinagar. I would like to know more about the projects that are
undertaken by the organization and would like to contribute to the same.

I would be obliged if someone could guide me to the concerned personnel, or
resources.
Girish Patil

Hi

Hi all,
I am shamika from university of peradeniya faculty of Engineering Sri Lanka
third year BSc computer engineering student.I would like to join with you
and contribute to develop drupal.I know php and other web developmental
languages.Nowadays I'm working with drupal.
Thanks.

Is it possible to upload FILE without a form ?

Dear All
I am struggling to upload word documents to our drupal 7 site without
having a form.

It is easy when you have a form (just can use file_save_upload api), but
think of a situation you have excel sheet at server, where 100 file names
are mentioned, and you want to get the files one by one.

In that case, how do we upload a file, and after upload how do I get the
FID.

Is it really possible with existing framework?

Best regards
austin

Ubercart taxes cont'd.

Try this again just in case...

I have a few line item scripts that all happen on the checkout page.

Ubercart problem

I have a few line item scripts that all happen on the checkout page.

Manipulating the overlay's parent window

Hi,

How can I control the overlay's parent window url from my custom module code?
I'm inside a node form and I want to change the destination of the parent window without leaving the current overlay.

Basic scenario:
- node/%/edit is displayed in overlay
- user hit's submit
- form is rebuild, user stays in the overlay but I want to make sure that once he closes the overlay (without any further form submission) he will be seeing a specific page

I can't seem to find a way to do this.

Join my network on LinkedIn

LinkedIn

João Gustavo Taveira requested to add you as a connection on LinkedIn:

I'd like to add you to my professional network on LinkedIn.

Accept invitation from João Gustavo Taveira
<a href="http://www.linkedin.com/e/mxrvzj-h97s5vsg-1j/zJRDTPf0epu2i2D9H2QD0wbj02vn2ttn3Br/blk/I337483183_60/0UcDpKqiRzolZKqiRybmRSrCBvrmRLoORIrmkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYMdBYPe34Pe3gTcPd9bP5UjSxMhj4RbP0TcP8MdPsRd3ALrCBxbOYWrSlI/eml-comm_invm-b-in_ac-inv28/?hs=false&amp;tok=1k7xoHCqR3Vls1" title="http://www.linkedin.com/e/mxrvzj-h97s5vsg-1j/zJRDTPf0epu2i2D9H2QD0wbj02vn2ttn3Br/blk/I337483183_60/0UcDpKqiRzolZKqiRybmRSrCBvrmRLoORIrmkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYMdBYPe34Pe3gTcPd9bP5UjSxMhj4RbP0TcP8MdPsRd3ALrCBxbOYWrSlI/eml-comm_invm-b-in_ac-inv28/?hs=false&amp;tok=1k7xoHCqR3Vls1">http://www.linkedin.com/e/mxrvzj-h97s5vsg-1j/zJRDTPf0epu2i2D9H2QD0wbj02v...</a>

View profile of João Gustavo Taveira
<a href="http://www.linkedin.com/e" title="http://www.linkedin.com/e">http://www.linkedin.com/e</a>

Coordination between developers in the Drupal project

Hello,

I am a French student and I am currently realizing my final thesis in the
field of Free/libre open source software.

It would be a great help for me if you could answer a short online survey
(it should take approximately 5 minutes).

This survey is designed to reach a better understanding of the cooperation
and coordination between developers in Free/libre open source projects.

There is no right or wrong answers, therefore, feel free to answer
spontaneously and to skip the questions you feel you do not want to answer.

The link to the survey is: <a href="http://bit.ly/SfDTzy" title="http://bit.ly/SfDTzy">http://bit.ly/SfDTzy</a>

I would like t

Help needed

Hello

I am new to open source development and i really want to enter GSOC 2013 .
I checked out a number of organisations and want to pursue drupal as my
mentoring organisation for the next GSOC programme . Can anyone please let
me know as to where and how do i start . Any sort of help is appreciated .

-Rushi Shukla

Call time pass-by-reference for PHP 5.4

What is going to be the best way to handle the removal of call time
pass-by-reference as noted at
<a href="http://www.php.net/manual/en/migration54.incompatible.php" title="http://www.php.net/manual/en/migration54.incompatible.php">http://www.php.net/manual/en/migration54.incompatible.php</a>?

This affects a lot of code. Based on <a href="http://drupal.org/node/1498574" title="http://drupal.org/node/1498574">http://drupal.org/node/1498574</a>
D8 will not be ready for PHP 5.4 but some WAMP and LAMP are already
delivering it. My query here though is more looking at preparing for
any new modules or converting older modules and getting them ready for
PHP 5.4. How do others plan to handle this offensive change?

Updating custom Views plugins for D8

Hey everyone,

seeing as Views for D8 is now well on its way and appears to be mostly
(or even fully) updated to the new core plugin system, it should
theoretically be possible to update plugins written for Views 7.x-3.x to
run on Views 8.x-3.x.

The only problem is that I can find zero documentation on how to do
that. This
(<a href="http://blog.erdfisch.de/2012/09/hands-introduction-drupal-8-plugin-system" title="http://blog.erdfisch.de/2012/09/hands-introduction-drupal-8-plugin-system">http://blog.erdfisch.de/2012/09/hands-introduction-drupal-8-plugin-system</a>)
comes closest, but it only explains how to create an empty style plugin,
not how to make it do the same stuff an existing D7 plugin does.

Anything?

Learning More on Apache Solr Attachments

Dear All
I want to learn more on apache solr file attachments.
My aim is to modify / add code in a way, that will suit my requirements.

I have been struggling for quite sometime

1. How to index a file
2. How to store minimal data during indexing and get minimal data during
searching
3. How to get results in smaller chunks, such as if my query records count
is 1000, I would like to receive only 100 results at a time, in next query
100 more and so on

Elaborating more on above points

*1.

Process in code when experiencing an install error in a custom module

I'm curious what others are building into their module install process in
the event of an error partway through. For example, if your install script
creates one or more bundles, fields and field instances, if an error occurs
at some point during that process, do you handle it all like a transaction
and back out what you have created to that point?

My instinct would be to do that, though I realize it can get complicated,
such as the event where some of the fields that were to be created earlier
on in the process already existed, etc.

Invitation to connect on LinkedIn

LinkedIn

ALLAHBAKASH ALLAHBAKASH requested to add you as a connection on LinkedIn:

Anupom,

I'd like to add you to my professional network on LinkedIn.

- ALLAHBAKASH

Accept invitation from ALLAHBAKASH ALLAHBAKASH
<a href="http://www.linkedin.com/e/mxrvzj-h71ppejt-5/zJRDTPf0epu2i2D9H2QD0wbj02vn2ttn3Br/blk/I304806249_60/0UcDpKqiRzolZKqiRybmRSrCBvrmRLoORIrmkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYMdBYVd38Sc3wQc3d9bQZHsP5ckANGbPAMdzwSc30PdzwLrCBxbOYWrSlI/eml-comm_invm-b-in_ac-inv28/?hs=false&amp;tok=2pM5KWAMTNIlo1" title="http://www.linkedin.com/e/mxrvzj-h71ppejt-5/zJRDTPf0epu2i2D9H2QD0wbj02vn2ttn3Br/blk/I304806249_60/0UcDpKqiRzolZKqiRybmRSrCBvrmRLoORIrmkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYMdBYVd38Sc3wQc3d9bQZHsP5ckANGbPAMdzwSc30PdzwLrCBxbOYWrSlI/eml-comm_invm-b-in_ac-inv28/?hs=false&amp;tok=2pM5KWAMTNIlo1">http://www.linkedin.com/e/mxrvzj-h71ppejt-5/zJRDTPf0epu2i2D9H2QD0wbj02vn...</a>

View profile of ALLAHBAKASH ALLAH

1-minute poll

I'm making an attempt to begin gathering data to help strengthen the Drupal
community. We'll see how it goes...there are not many avenues for reaching
the community at large without getting flamed, even for a well-meaning
non-commercial query :)

That said, if you're interested in contributing to data on your feelings
about the Drupal learning curve, version migration, documentation and more
in a 1-minute poll, please visit
<a href="http://theaccidentalcoder.com/content/drupal-poll-1" title="http://theaccidentalcoder.com/content/drupal-poll-1">http://theaccidentalcoder.com/content/drupal-poll-1</a>

email

 
<a href="mailto: ... at yahoo dot co.in"> ... at yahoo dot co.in</a>

D7 Capturing a change in alias at presave

I need to determine what alias is being requested on a node insert, and if
there is a change to node alias on node (pre)save. I'm completely flummoxed
about how to do this.

Upload files to another server not drupal files folder

Hello,
Is it possible to upload files(as a video file field) to a location outside
the Drupal standard 'files' folder?
My exact situation:
I've got a video file field to upload videos and attaching to nodes.
I'm using 2 other servers with different ip in same network.
I need to upload the video field file to these 2 servers(not the one drupal
is installed on)
I can use ftp or sftp.

I need a hook or sth(or even a hack) to change the location of all upload
actions. Any solution?

Thanks in advanced.

Proper place to suggest a new issue status?

Hi! Where is the proper place to suggest adding a new issue status of "Closed (not my problem)" (or similar) -- this would be for issues which are not related to the project -- things like WYSIWYG editors adding a paragraph when a blank line is entered (for a project that has nothing to do with the WYSIWYG editor) or other such support requests that aren't really issues for the project they are submitted to...

Thanks,
Ricky

The information in this e-mail is intended only for the person to whom it is
addressed.

How to config Clamav module?

Hi everybody,

I have a problem with 'clamav' module.
After installing 'clamav' on my computer, I download and install this
module for drupal site.
As I see, there are two mode for scanning:
- Daemon mode.
- Executable mode.

I can scan file in executable mode, but can't in daemon mode.
I don't know how to config in 'clamav' settings page, I use default value:
- host: localhost
- port: 3310

When I try to upload it return error like this:
- 'The selected file *test.txt* could not be uploaded. The anti-virus
scanner was not able to check the file.

Auto logout when users close browser.

Hello everybody,

I have a problem with drupal 6.

I want users to log out automatically, after users close the Tab of
browser, or close browser.

At the moment, when users close browser and then open browser again, they
still logged in.

I have try by edit 'session.cookie_lifetime' in 'settings.php', but it
doesn't work.

Thanks in advance for any ideas.

Views Bulk Operations redirect

Hello,

I thought I will post a message before creating a new issue at drupal.org.

I have a View with a VBO field and a single action. I want to redirect
the user to another page once the action is completed. I am able to do
this with ?destination=url or $form['redirect'], but the action only
takes place for the first item in the list and not the rest.

Best S3 process

What's your favorite method to post to S3 via Drupal [D7]?

Development, Alahbakash left a message for you

Alahbakash left a message for you

Only you can see the sender and content of your message, and you can delete it anytime. You can instantly reply using our message exchange system:
<a href="http://eu1.badoo.com/allahbakash/in/VeH38jUW36Y/?lang_id=3&amp;m=21&amp;mid=4fd1cd6b00000000000300003c154de2" title="http://eu1.badoo.com/allahbakash/in/VeH38jUW36Y/?lang_id=3&amp;m=21&amp;mid=4fd1cd6b00000000000300003c154de2">http://eu1.badoo.com/allahbakash/in/VeH38jUW36Y/?lang_id=3&amp;m=21&amp;mid=4fd1...</a>

If the link in this message does not work, try copying and pasting it into your browser.

This email is part of our delivery procedure for the message sent by Alahbakash. If you have received this email by mistake, please ignore it.

Paths and Translations...

I've been working on a multilingual site and the fact that URL aliases are
selectively available based on language seems a little awkward. I like that
the path module is language aware and stores a language, however I view as
as more of a language provider, than translatable content.

I wrote up some of my thoughts at
<a href="http://darrelopry.com/story/using-url-aliasespaths-language-detection-drupal-7-and-multilingual-ux" title="http://darrelopry.com/story/using-url-aliasespaths-language-detection-drupal-7-and-multilingual-ux">http://darrelopry.com/story/using-url-aliasespaths-language-detection-dr...</a>

I was hoping to solicit some feedback here since I've been away from Drupal
development before posting a patch or creating an issue.

Issue - ContentAnalysis/analyze_js was not found in the server

Dear All
I am new to Drupal and I have enabled "Content Analysis" module along
with "Keyword Analysis" module. When I try to analyze an article/blogs
(by enabling Analyzers and clicking on "Analyze content" button), I am
getting a pop-up with
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /drupal/contentanalysis/analyze_js was not
found on this server.</p>

Re: [development] D6 What is typical cause #3 for a pager not appearing?

<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>I finally got a chance to dig into it more, and you're exactly right (again). 4 joins, plus another comprised of an inline select, and a group by, apparently too much to handle :-) &nbsp;Thanks!<br>

Image Theming

Hi,

I recently needed to insert an image from an image field into the node's body prior to rendering.

Hacked core - but why? D6

<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; ">Hi all. So, I'm working with a client who had work done by well-meaning-but-short-on-Drupal-experience coders, who achieved some things by hacking core, and I'm identifying the hacks and finding alternative ways to achieve the same results.</div><div style="color: rgb(0, 0, 0); font-family: verdana, geneva; font-size: 10pt; ">

How to change user profile entries

Hi @all

is there a proper way to display/hide entries on the user profile site?

Spezial case:
If I (as a drupal user) post an News/Event entry it appears on my
profile site under "Related Content" as "News". (This is ok if I post
only one news item per week, but if you post 10/day this will exceed.)
I want to hide this entry (and maybe some others) for all users...

Does anyone can provide me a way to do this so that drupal stays still
updatable?

Thanks regards Andreas

Need the some solutions form this error in mymodules " There is a security update available for your version of Drupal. "

Hello All,

Hope you are doing well. This is Diptiranjan Sukla from bangalore. i am new to the drupal 7. i have installed many modules
like are belows:

Updating modules and themes requires FTP access to your server.

Sessions in drupal

How to manage Sessions in drupal is there any variables prdefined in drupal
or we can use php variables for that please helpp me with an example of
session variable.

D6 What is typical cause #3 for a pager not appearing?

<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>Before I start pasting supporting data, is there a third typical cause of theme('pager') not returning anything? </div><div><br></div><div>I look at cause #1 being the element being the same as another (there are 3 on the page, and I gave them element ids of 2,3 and 4), and #2 being the SQL in the pager query not being uppercase (it is).</div><div>

Modules that need your help

Hello Drupal Developers!

If you use contributed modules to build your site and want to make
sure those modules are well maintained you might be interested to
review the list of modules "Seeking co-maintainer" at
<a href="http://drupal.org/taxonomy/term/9990" title="http://drupal.org/taxonomy/term/9990">http://drupal.org/taxonomy/term/9990</a> The list is currently sorted by
the project node age, so it's possible you can't find your module in
the list.

Lucky for you I just ran this query to find projects with stable
releases that had at least 500 users last week that are seeking
co-maintainer.

CK-ERP v.0.31.1 released with Drupal 7.12 connector

Hi, folks,

I have posted a new release, v.0.31.1, of CK-ERP, at SourceForge.Net,
<a href="http://sourceforge.net/projects/ck-erp" title="http://sourceforge.net/projects/ck-erp">http://sourceforge.net/projects/ck-erp</a> .

New features include,
Support for Mysqli
Support for Sqlite3
Portuguese translation
Korean translation
Japanese translation
Hindi translation
Indonesian translation
Vietnamese translation
Russian translation
Updated Chinese translation
Updated Spanish translation
Updated French translation
Updated German translation
Relaxation of restriction on display language must be the same as
installation language

As far as I can determine, a Drupal+CK-ERP environment is most usef

Removing modules from Drupal.org

I have two ideas for Drupal modules a couple of years ago and immediately
reserved the namespace for them at <a href="http://drupal.org/project/ariel" title="http://drupal.org/project/ariel">http://drupal.org/project/ariel</a> and
<a href="http://drupal.org/project/caliban" title="http://drupal.org/project/caliban">http://drupal.org/project/caliban</a>.

I've only just been reminded of these projects, and I now don't have the
time to develop the ideas or write the code. How can I got about getting
the projects removed from Drupal.org?

Modules for more than one version of Drupal

As someone who has written a number of custom modules for Drupal 6, and
beginning the process of making Drupal 7 versions for them, I'm running
into great frustration with the fact that maintaining modules for 2
different versions of Drupal at the same time is pretty manual, and it's
really not clear that it has to be that way.

A standard drupal modules contains some of the following:
* hooks to drupal (possibly different between versions)
* templates (probably not different between versions)
* optional communication to the database (possibly different between
versions, though most

Show a node reference of nodereference in a node

I have 3 cck node types (drupal6): A, B and C.

B has a nodereferenc to A, and C has a nodereference to B.

In views it is easy, but is there any way to show it when viewing the
node? I was thinking of using Dynamic-Field, but I wanted to know if
there is a simplier way of doing so.

Thanks for your advice.

DrupalEstate - First Version Released.

All,

I am pleased to release my realestate project based on drupal "Drupal
Estate." it is using rlisting module and i have done various customization
with views etc. it is based on drupal 5.x . you can download the code here:
<a href="https://sourceforge.net/projects/drupalestate/" title="https://sourceforge.net/projects/drupalestate/">https://sourceforge.net/projects/drupalestate/</a>

I am looking for some one to help me with site design for this project,
also if anyone is willing to further develop it please contact me.

you can see it in action here: <a href="http://rentsellmyhouse.com" title="http://rentsellmyhouse.com">http://rentsellmyhouse.com</a>

Thanks,
-Hardik Shah

Re: [development] Drupal 8 & Symfony2

Thanks for the replies; it sounds like I should give Symfony2 a decent
go and see how I get on with it compared to my other options. (I must
admit, I'm glad Drupal settled on Symfony rather than on Zend as I've
never really found much joy in the latter whenever I've looked at it)

Drupal 8 & Symfony2

I currently use Codeigniter as my PHP framework. I'm considering the
pros and cons of moving to a different framework. For non-core
developers, how much advantage is there likely to be in knowing/being
comfortable with Symfony2 when Drupal 8 rolls around? Or will all the
Symfony stuff be under the hood?

Update Problems

I see some issues related to update.php on a site I'm working on.The site is currently 7.7 and I'm trying to get to 7.12.I took a look at the system table and I see 44 modules that have a schema_version of "0". Shouldn't they be "-1" if they've never been updated, or "70xx" if they have?

Since the "alpha2alpha" and "alpha2beta" modules are present, I'm wondering if this goes back to very early versions of core. If so, is the fix to manually update them all to "-1" and force an update to occur?

Forms Api Reference

I know people have probably been busy with DrupalCon, but I created this issue:

<a href="http://drupal.org/node/1484158" title="http://drupal.org/node/1484158">http://drupal.org/node/1484158</a>

That indicates the forms API reference links have disappeared (along with others). Its been basically been unresponded for about two weeks. Anyone know if the d.o web masters are aware of this? Or did I record it in the wrong place?

Dave

Regarding: Google summer Code 2012

Hello, respective

I am Mayur Vandra from USA. I will appreciate if
you let me know whom to contact for this competition.

Syndicate content