How to get different templates for each page
Hello guys I have to crate a simple CMS using drupal, It has 4 pages and each page has unique design. How can I achieve this? Thank you ...
Hello guys I have to crate a simple CMS using drupal, It has 4 pages and each page has unique design. How can I achieve this? Thank you ...
I'm trying to grant a specific role to users that order an amount equal or greater than 100.00 €: Conditional Actions is going really near the achievement, but I'm failing on the action (PHP required). How can I grant a role using a PHP action in Ubercart Conditional Actions? ...
I am setting up a gallery block in views that I am including on different nodes. The main nodes are related to different girls, who I have created as users with custom roles, and each of these girls has a number of photos, each photo brought in as its own node, associated with them. In order to associate the photo with the girl I created...
I need to assign a kind of "premium status" to members that purchase an amount equal or greater than 100 € via PHP. Conditional Actions are already set up (user = anonymous/authenticated AND total amount = equal/greater than 100 AND user =! premium) but I'm missing the PHP part to actually say "then grant him the premium membership". ...
Lots of spiders/crawlers visit our news site. We depend on GeoIP services to identify our visitors' physical location and serve them related content. So we developed a module with module_init() function that sends IP to MaxMind and sets cookies with location information. To avoid sending requests on each page view, we first check wheth...
Hi, I'm having some problems setting up a tokenized email to use the tokens I've created in my module. I am using this in a tokenized email [example-contact]. I've implemented the example_token_values() and example_token_list() in my module and I've also created a trigger in my module. My module has a form, created with the form API, th...
Hi, I've created a space using a custom type. Pretty simple, it just overrides the Drupal variables "site_frontpage" and "theme_default" when someone is inside of the space (using a PURL prefix). Lovely! Now, when inside of this space, I'd like to disable certain Contexts, and enable other Contexts. For example, when in the space, disp...
I'd like to add a css class to the body_classes_array as if I were using template_preprocess_page to alter &$vars, but I'd like to do it through hook_menu() page callback. Is it even possible to do? ...
I've had a drupal 5 site for over 2 years. For some reason my browser dropdown URL retains www.xxx.co.uk/node?destination=node for the site url. This has work until now - when I get The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. ...
I'm looking for a hosting service for Drupal to suggest to all my next customers, to be sure I'm not going to have development issues. I'm writing down a list of features a Drupal hosting service should have: 1. Control panel with zip compress / decompress functionality After I uploaded drupal to new server, I usually don't have ssh ac...
Hi friends, Is it possible to control 2 different Drupal website from 1 admin panel? 2 different domain, but on same host-server. one of my client came up with the idea and I wasn't sure if it can be done. Appreciate advices! Thanks a lot! ...
Is Drupal perfectly working on PHP 5.3 ? I tried some modules and received several warnings.. is it going to take some months before it will be completely optimized ? thanks ...
How do I assign a block (the very same block) twice or thrice to different regions? The idea is not to have the same block on the same page more than once, but in different locations on different pages, so four 'displays' would be available: Block X in the $top_left region Block X in the $top_right region Block X in the $above_content ...
Hi, I have a Drupal view which should output a video player using flash. I am trying to output a script that will call the flash film. The problem is that Views applies some sort of filter that strips my <script> tags, the opening and the closing one. I am searching a solution (some setting in views that will disable that filter), but ca...
I have content type CustomInvoice, which has CCK fields (customer, price, ..etc). Then there is another content type, where all customers are stored. In CustomInvoice I have Reference CCK field to CustomerContentType .. so when creating CustomInvoice user would choose customer from drop down cck reference field and that is it. But if ...
A common way I handle things in Drupal is to create a CCK type, and then create a custom submit handler to perform logic on the CCK fields when the node is submitted. However, I have been unable to get the value when the CCK field type is a Date field because the array is structured differently. UPDATE - João Guilherme had a much simple...
Hi, I would like to see how Joomla / Drupal do their validation / security, where are the input validation scripts located? ...
I have a module called "packages". I want to store information on what package the user is using upon log in. I.e. Where, using which hook, or at what point, can I run this code: $user[packages] = packages_get_user_packages($user->uid); ...
Hello, New to php and drupal. I set up drupal and trying to customize the zen theme. Also setup Netbeans for debuggin. Everything is fine, but the menu variables are not filled as expected. In page.tpl.php, there is a condition, <?php if ($primary_links || $navigation): ?> , which prints main menu if evaluates true. I get primary_...
Hello i am going to develop a social networking(like facebook) website for a company for internal use only but i am confused between Drupal and codeigniter that which one i should use. so please suggest me that which one is better to make a robust and high quality social networking website in short time period. My website included...