Posted by burningdog on June 24, 2010 at 11:53am
Hi SA drupallers!
Would you like your drupal questions answered by community experts? Then read this post - it'll tell you the best way to get answers.
- Firstly, if you really want good answers, learn how to ask good questions. I thought I knew how to ask good tech-related questions until I read this: http://catb.org/~esr/faqs/smart-questions.html Then I realised that I did know how to ask good questions, and now I knew how to ask much better questions. That's helped me on irc and on support forums. You basically want to ask your question like this:
"I'm trying to achieve [A]. I thought the best way to do this was to [B]. I read the documentation and it said to do [X]. I did it, I expected to see [Y] but actually saw [Z]. What am I doing wrong?"
Out there some drupal genius (like me! lol) reads this question. And immediately knows a few things:
- The outcome that you're trying to achieve. Knowing this, we may have a better suggestion instead of [B] and thereby solve your problem.
- You're already thinking - because of [B]. Whohoo! We know that you're someone who is thinking how to do something which will achieve your outcome. Tech geniuses would rather answer questions from people who are willing to do their own thinking.
- You read documentation - double points. It means you're not asking someone else to do all the hard work. Plus you're learning new stuff. Both good pointers, and you're more likely to get helped.
- When you did [X] you've told us what you expected to see when you tried [X]. That means you're thinking. Then you say that instead of [Y] you saw something else - [Z]. Awesome - that's valuable information.
Questions like, "Help, my website is broken!" or "Views isn't working" or "Taxonomy isn't linking properly" will get you ignored almost 100% of the time.
- Read the documentation. Yes, RTFM applies - always. There's a reason documentation is written - and if it's out of date, update it yourself!
- Maybe someone else has already asked your question. Search drupal.org via google (go to google.com and type "site:drupal.org terms related to your problem"). If nothing shows up, search the internet. If nothing shows up, time to ask your question!
- Ask your question in the right channels. Those would be the forums on drupal.org or the issue queue for the module you're having a problem with. Or figure out how to join #drupal on irc. Please don't ask your question in http://groups.drupal.org/south-africa because this is for location-specific activities, and there may be other people on drupal.org who'd also like to know the answer to your question (plus, your question on the drupal forums is searchable, so in a month someone else may have the same problem you're having and also wants to know the solution - be kind and place your question somewhere they can find it!).
- If you're going to post a question in the issue queue, first read the Troubleshooting FAQ. If you're having a problem with your Drupal site, you're almost certainly not alone. Your questions may already have been asked and answered many times. Save yourself some time and start with this list of Frequently Asked Questions (FAQs) before you post an issue in the queue.
- Don't be a support leech. Play nicely! And learn how to be part of a community, particularly a self-organising one.
- Lastly, read this post and follow all of this advice! It will transform you into the kind of person whom other people enjoy helping, and take you one step closer to being Certified to Rock! And if someone does something which violates any of these guidelines, gently point them to this post.

Comments
really good. there are a lot
really good. there are a lot compelling reasons to read the manual, at least i find it useful ;).
i find the irc is useful but also not that great when it is too full. i used to hang out there ages ago but now i actually have to get some work done. searching the web is very useful, there are vast volumes written on most things drupal.
if none of these channels work, then turn to your local drupal group. that is kind of what they are around for.
Ja, I'm back on irc - will
Ja, I'm back on irc - will keep the client open, at least - #drupal-za for anyone who wants to join.
Lots of good articles online - but check which version of drupal they're talking about - many times they're outdated.
As for local user groups being around to help people - well yes, to a point - the local user group exists to help build awareness of drupal and our own drupal skills. If by helping others, this is what you mean, then great! But if the local user group is all about free technical support for people who aren't actually learning anything but just getting free help, then I'm much less enthusiastic to help (and rightfully so!).
yeah, i dont mean that the
yeah, i dont mean that the community is around as a free "help center", but rather a place to help each other grow experience.
IRC
I visit IRC only when I got a question, I find the Drupal forums to be slow (for me anyway, because I want an answer now! :) ) and you never know if and when somebody is going to answer.
But, I always make a point of answering somebody else's question before I leave.
If you are new to Drupal, don't be shy to help there. Even if you have to go look up the answer for the person (maybe something you've seen somewhere), you actually helping yourself by learning something new about Drupal. The bot (Druplicon) is also very helpful, as it will help you find content, etc. Type a word, followed by '?' Such as 'views?'
I agree with Roger, this group is not the right place to ask questions, you are only reaching a drop(let :)) of the Drupal community.
Oh, and don't forget to feed Druplicon before you leave. :)
Quentin
botsnack! Also, perceptum has
botsnack! Also, perceptum has been training the bot. botcoffee! and botbeer! are worth typing...he's also been doing some philosophical training with it, but you'll have to ask him for more details...
ip blocked by server while working live?
Hello
here i want to ask a question.i have created a website in drupal 7 and now i uploaded it on the server but when i start working into administer section after some time my website don't respond to me.and it shows me page not found error page.i am not upto that good in drupal so please help me in this section.
detail about it:when i open me site normally it is working good.but when i try to create some views and add some content then it is being stopped by the server and after restarting my modem it starts again.it allows me to work for little bit of time then it stops working.Rather then this other sites are working properly but it is being stopped.please help me i am getting a serious problem to deal with it.
thanks in advance.
ip blocked by server
Sounds more like something your hosting provider needs to attend to than a Drupal error
An expired session cookie shouldn't throw a 404 page not found error
thanx for the attention...
can you please clarify your answer that what kind of hosting error can be there...?
Hosting Error?
What type of hosting error. I can only guess at this - if it is a hosting error its likely server configuration or resources. Maybe you can post more info here
I'm guessing you are on a shared hosting solution? Without access to server settings only the hosting company can do anything
Let's look at what happens:
"after some time my website don't respond to me. and it shows me page not found error page".
Your site admin takes a long time to respond, when it does, you are getting a page not found.
Possibly your available resources are exceeding the limit available at the time - Could be insufficient memory or CPU limit exceeded used - or too many entry processes. If this happens you may get a "404" instead of a server unavailable 5** type error. I've seen this with my own site occasionally - but the 404 I then get is a browser 404, not my website's 404 page - the site takes too long to respond and the browser timeout activates
There should be some sort of resource usage reports available form your hosting dashboard - worth taking a look. Also look at your server error logs - may shed more light on your problem.
Another possibility is your internet connection dropping the connection, or lagging. ("after restarting my modem it starts again.it allows me to work for little bit of time then it stops working") - Are you getting a 404 from your website or from your browser? If from your browser - then the internet connection is likely the problem.
However you said other sites are working OK - I take it you mean visiting sites but not logged in to these. Are these other sites on the same server, or on other hosting? Or are they on your same hosting package, as a sub-domain for example.
If the problem is only when logged in to your site - then a small possibility exists your internet connection service provider is doing something - either their network is badly configured, or worse, to restrict admin type access (I see a similar problem regularly with one of our local 3G service providers - badly configured network or worse).
Please fell free to provide more info - maybe upload a copy of your server error logs after the problem occurs somewhere, and link to the file here (and lets us know the time the event happened so we can look at the time stamps for more info.
And sorry it took so long to reply...
Retrieving multiple records from database
I have the created a module to search records from multiple tables,i have used the following code to do that but it is showing only on result can one tell me that how can i get the multiple records.
here is my code.
<?php
/**
* Implements hook_block_info.
*/
function catagorize_search_block_info() {
$blocks['catagorize_search' ] = array('info' => t('catagorize_search block' ));
$blocks['catagorize_search_result' ] = array('info' => t('search block' ));
return $blocks;
}
/**
* Implements hook_menu.
*/
function catagorize_search_menu() {
$items = array();
$items['catagorize_search' ] = array(
'title' => 'catagorize_search' ,
'page callback' => 'drupal_get_form' ,
'page arguments' => array('catagorize_search_form' ),
'access callback' => TRUE,
);
return $items;
}
/**
* Our catagorize_search form.
*/
function catagorize_search_form($form,&$form_submit) {
/* $form['age'] = array(
'#type' => 'select',
'#title' => t('Select Age'),
'#title_display' => 'invisible',
'#options' => array(
0 => t('18 to 21'),
1 => t('22 to 25'),
2 => t('26 t0 30'),
3 => t('31 to 35'),
4 => t('36 to 40'),
5 => t('41 and above'),
),
);
*/
$form['searchfor'] = array(
'#type' => 'select',
'#title' => t('Searching For'),
'#title_display' => 'invisible',
'#options' => array(
'Female' => t('Bride'),
'Male' => t('Groom'),
),
);
);
$form['lang'] = array(
'#type' => 'select',
'#title' => t('Select Language'),
'#title_display' => 'invisible',
'#options' => array(
'' => t('---select lang----'),
'Assamese/Axomiya' => t('Assamese/Axomiya'),
'Bengali' => t('Bengali'),
'Bodo' => t('Bodo'),
'Dogri' => t('Dogri'),
'Gujarati' => t('Gujarati'),
'Hindi' => t('Hindi'),
'Kannada' => t('Kannada'),
'Kashmiri' => t('Kashmiri'),
'Konkani' => t('Konkani'),
'Maithili' => t('Maithili'),
'Malayalam' => t('Malayalam'),
'Manipuri' => t('Manipuri'),
'Marathi' => t('Marathi'),
'Nepali' => t('Nepali'),
'Oriya' => t('Oriya'),
'Nepali' => t('Nepali'),
'Punjabi' => t('Punjabi'),
'Santhali' => t('Santhali'),
'Sindhi' => t('Sindhi'),
'Telugu' => t('Telugu'),
'Urdu' => t('Urdu'),
);
),
);
'#type' => 'submit',
'#value' => t('Submit')
);
}
//include("http://localhost/x.php");
function catagorize_search_form_submit($form,&$form_submit ) {
$searchfor = $form_submit['values' ]['searchfor' ];
$religion = $form_submit['values' ]['religion' ];
$lang = $form_submit['values' ]['lang' ];
$country = $form_submit['values' ]['country' ];
$_SESSION['searchfor'] = $searchfor;
$_SESSION['religion'] = $religion;
$_SESSION['lang'] = $lang;
$_SESSION['country'] = $country;
drupal_goto('catagorize_search_result');
}
function catagorize_search_form_search_result() {
$header = array(
array('data' => t('First name'), 'field' => 'firstname'),
array('data' => t('Last name'), 'field' => 'lastname')
);
$searchfor = $_SESSION['searchfor'];
$religion = $_SESSION['religion'];
$lang = $_SESSION['lang'];
$country = $_SESSION['country'];
$query = db_select("field_data_field_fname", "fn");
$query->join("field_data_field_lname", "ln", "fn.entity_id = ln.entity_id");
$query->join("field_data_field_gender", "fg", "ln.entity_id = fg.entity_id");
$query->join("field_data_field_religion", "fr", "fg.entity_id = fr.entity_id");
$query->join("field_data_field_language", "fl", "fr.entity_id = fl.entity_id");
$query->join("field_data_field_country", "fc", "fl.entity_id = fc.entity_id");
$query->join("field_data_field_photo", "fp", "fc.entity_id = fp.entity_id");
$query->fields("fn", array("field_fname_value"));
$query->fields("ln", array("field_lname_value"));
$query->fields("fp", array("field_photo_fid"));
$query->condition('fg.field_gender_value', $searchfor);
$query->condition('fr.field_religion_value', $religion);
$query->condition('fl.field_language_value', $lang);
$query->condition('fc.field_country_value', $country);
$result = $query->execute()->fetch();
//print_r($result);
if($result!=''){
$i=0;
foreach($result as $record){
$rec[$i][] = $record;
$i++;
}
return "
";
}
else
{
return "record not found";
}
}
/*$query = db_select("field_data_field_fname", "fn");
$query->join("field_data_field_lname", "ln", "fn.entity_id = ln.entity_id");
$query->join("field_data_field_gender", "fg", "fn.entity_id = fg.entity_id AND ln.entity_id = fg.entity_id");
$query->join("field_data_field_religion", "fr", "fn.entity_id = fr.entity_id AND ln.entity_id = fr.entity_id AND fg.entity_id = fr.entity_id");
$query->join("field_data_field_language", "fl", "fn.entity_id = fl.entity_id AND ln.entity_id = fl.entity_id AND fg.entity_id = fl.entity_id AND fr.entity_id = fl.entity_id");
$query->join("field_data_field_country", "fc", "fn.entity_id = fc.entity_id AND ln.entity_id = fc.entity_id AND fg.entity_id = fc.entity_id AND fr.entity_id = fc.entity_id AND fl.entity_id = fc.entity_id");
$query->join("field_data_field_photo", "fp", "fn.entity_id = fp.entity_id AND ln.entity_id = fp.entity_id AND fg.entity_id = fp.entity_id AND fr.entity_id = fp.entity_id AND fl.entity_id = fp.entity_id AND fc.entity_id = fp.entity_id");
$query->fields("fn", array("field_fname_value"));
$query->fields("ln", array("field_lname_value"));
$query->fields("fp", array("field_photo_fid"));
$query->condition('fg.field_gender_value', $searchfor);
$query->condition('fr.field_religion_value', $religion);
$query->condition('fl.field_language_value', $lang);
$query->condition('fc.field_country_value', $country);
$result = $query->execute()->fetchAssoc();
*/
Need to create taxonomy views with drealty listing in drupal 7?
I need to create taxonomy views in drupal 7 for showing similar term nodes. But here I have drealty listing , these are not a content type. So I am not getting "CONTEXTUAL FILTERS Content: Has taxonomy term ID" this options.. Can is it possible with drealty listing in drupal 7.
Please ask your question in
Please ask your question in the appropriate forum. Read the original post to see how and where to have your questions answered.