I'm a Drupal newbie, but have successfully installed it at a CentOS 5.5 Linux, PostgreSQL 8.4.7, PHP 5.3 machine.
I've chosen minimal installation and then enabled following modules: Block, Image, Locale, OpenID (hope to add Google accounts later...) and Search. The User module etc. are enabled by default anyway.
My problem is:
I don't know how to add Gender/City fields and make them mandatory.
As a SPAM-fighting measure at my old phpBB 3 site I have a mandatory question for new users about their gender: Robot/Male/Female and the first answer is default and prevents the new user from registering.
Is it possible to do the same in Drupal 7?
And I hope it is doable without installing any additional modules as the stock install is easier to update. (That is what I was doing with my old phpBB site - with no mods installed).
Thank you for your answers! Alex
UPDATE:
Here is my Field module screenshot, does it look ok?
Maybe my problem is that List is shown as disabled?
First, note that there is a huge difference between Drupal modules and phpBB mods. Drupal provides API's which allows modules to integrate with Drupal without changing any code. You can just download them into a folder, enable and they are running.
And yes, what you are trying to do is possible without any additional modules. Just go to admin/config/people/accounts/fields, add a Gender field of Type "List (text)" (If that is not available, you might need to enable it, but it part of Drupal core), then, enter the allowed values and on the second page, check the "required" and "shown on registration form" checkboxes and you are good to go.
Related
I should create a private plone site.
I tried to read both the howto on plone.org
http://plone.org/documentation/kb/creating-private-plone-site
both of the responses already made an identical request for this channel
What is the best way to create a Plone private site
but I have not found a solution.
I do not want to use (if possible) as a product http://pypi.python.org/pypi/iw.rejectanonymous but I'd only change the workflow or permissions.
I thought "enough" to set as the default workflow "intranet_workflow" where state internally_published permits "View" and "Access contents information" only to authenticated but, so 'doing, connect to my site only see a blank page (I tried it on a basic install version 4.1.2) and the user isn't redirect to the login form.
Thanks for any help
Alex
it "just works"(TM) like this:
create a new plone site
go to /##types-controlpane and set the intrantet workflow as default workflow
and do not forget to apply changes.
after that, visiting the portal will redirect unauthenticated users to the login_form
(i tested it with a plain plone4.1.3 site)
no idea why you just see a blank page. any add-ons or themes installed?
For Plone 5 I followd fRiSi answer but I haven't found /##types-controlpane, however there's a way to get to that menu through ZMI.
Go to /<plone_site>/portal_workflow then under Workflows by type in (Default) field replace simple_publication_workflow with intranet_folder_worflow.
The list of available workflows can be found under /<plone_site>/portal_workflow/manage_main
Then click on Change and Update Security Settings. This should update workflow for all objects on the Plone site.
I have created multiple profiles in my Drupal site. Currently Drupal allows us to select any 1 profile during installation.
But I need to change it a bit, what I want is that the admin can choose any profile after the drupal installation finished.
Is there any way to get around with this problem. I have googled for almost an hour now, but no luck.
Thanks in advance.
I assume you're talking about installation profiles? The answer is a resounding no I'm afraid, they are installation profiles, they don't do anything after the installation has taken place so allowing an admin to 'choose' a profile on a fully installed site would have absolutely zero effect.
If you really want to do it though (as an exercise into getting to know Drupal or something) then run this PHP code:
variable_set('install_profile', 'name_of_profile');
As I say though, I can see zero value to calling that as it will make no difference whatsoever to your site once it's been installed.
I've installed and configured a Drupal project in English but the frontend of the site should be in dutch. Now i was wondering if it's possible to configure frontend specific translations. The error messages etc. of the website (in the frontend) should be in Dutch.
If you want to run your site with a single language, you need to install and enable it. Some parts of the translation might not be completed, so you might need to do some work yourself to get a 100% translated site.
If you want to run english or another language in the admin, there is a module for that.
The easiest (and probably best) way to do this is to select "Nederlands (Dutch)" as the default language during installation (there are detailed instructions on the install page on how to do this). Changing the default language after you've installed it (and with some content already added) might lead to problems (it's not recommended to do this)...
If you do decide to add "Nederlands (Dutch)" to your current Drupal install, make sure you first put the translation files in the correct place BEFORE activating the new language. You will also have to enable the Locale module BTW (if you haven't done so already).
I'm using drupal and phpbb with a bridge called phpbbforum. It works quite well, the user information is synched between the drupal and phpbb databases. The forum is embeded in a drupal page, so all variables that come with page.tpl.php should be avaliable.
I want drupal to be the only profile handler, so when someone clicks on a phpbb username, that person get's linked to the drupal profile. In phpbbs template files, the link to the profile is called by function get_username_string. I think the right place to edit it is in the /includes/functions_content.php file on line 1178. Right above that line it says "* Get username details for placing into templates." and there's a section about profile links.
I just can't figure out how to edit it so that the profile links lead to drupal profiles. Can anyone figure this one out?
I managed to achieve this just a few days ago! I must say, it did take a good 30 minutes for me to figure the files that needed to be edited, but after that, it was a breeze!
Basically, you have to edit the phpBB3 PHP Includes files, so that they point to the Drupal user profile, instead of the phpBB one. This can be achieved very easily. Firstly, install the Pathauto Drupal module. Make an auto alias for all user profiles, so that they go to yoursite.com/users/[username]. Then basically, in the phpBB PHP Includes files, make the user profiles direct to: yoursite.com/users/{USERNAME}.
In phpBB, {USERNAME} means the user's username. So when you add yoursite.com/users/{USERNAME}, it will direct to the Drupal profiles that you created with Pathauto. For example, my Drupal profile pages are mysite.com/users/admin, and phpBB will use the {USERNAME} tag to print the user's username. So in phpBB, if you change the profile URLs, they'll go to the same place.
It's pretty easy, but will require a bit of PHP knowledge. Mine is working seamlessly now, and only took about 5 minutes after I'd searched through the phpBB files. What you must remember is - These modifications would be made to phpBB itself, and not Drupal, seeing as you want phpBB profiles to go to Drupal ones. If you need any help, let me know, I'll try to help you out. :)
I have to build a site that receives some custom report from my users and store them in a database. The users are able to view their reports and the department administrator comments on it. I was creating this myself using PHP although it was good but it's full of security holes and I get lost after a while when my code grows bigger.
I think if there is a module for drupal or wordpess that can benefit from grouping my users into separate groups that would be much easier.
Does anyone know if there is such plugin or would you recommend me some keywords to search with.
Thanx in advance
Sounds like Drupal would be a good fit for this. There would be (at least) two roles (one for regular users and one for administrators), and there would be a 'report' content type. Regular users would be able to upload reports and view their own reports and administrators would be able to comment on reports.
Drupal + CCK (and possibly the FileField module if users are uploading document files) would be able to handle all of this pretty easily.
Drupal with the CCK & FileField modules would work great (as Mike mentioned). Two roles would suffice (admin & regular user).
As for security, make sure to use the latest versions in Drupal 6 & stay on top of when those 2 modules get updated although Drupal makes it super easy for you through site notification. Along the lines of security, you'd want to 'hide' the login box from the homepage & use www.sitename.com/user for your users to login.