drupal

wordpress "a la" drupal option for upload

I am wordking on a site, made with wordpress, and i like to have some sort of interractivity with the reader/user. So if anyone would like to contribute to a page/post i like to have a button "contribute" and ability to send images and text I have seen that done with drupal, but have no idea how to thame that proble with wordpress... i ...

Issues with Bandwidth Usage using PhP/MySQL/Drupal

I am hosting a site on a buddy's server. It is using MySQL, PhP and Druapl. He is complaining that it is using up all his bandwidth but for the life of me I can't figure out why. There is not image/video hosting and I believe he has ~60 GB/month. Almost all the bandwidth would be used by databases. I think the problem lies in one of the ...

Rating system for users and posts (and comments)

hi, I need to implement a message board with rating system. Something similar to stack overflow, but much simpler. I need to rate both questions / answers and compute the rating for each user. I'm looking modules in Drupal to implement it. Could you give me some tip ? thanks ...

cannot access drupal admin site

Hello I am in the process of moving my drupal site to a new IIS server. I had it running perfectly on one server. I disabled all non-core modules, turned off clean urls, put the site in maintenance mode and moved the files and database to my new server. I am able to bring the new site up fine. I can view the main page as well as othe...

[Drush/Drupal] PHP fatal error when call mysqli_fetch_array

Hi everybody, I am using Drush which is launching php in command line. I copied my initial php.ini in my local directory so that php is using the same configuration as if it was launched by the web server. When used with the web server, it works well. Unfortunately, when launched with the command line, PHP crashes when drush calls mysql...

Check views display permission for user

A user might be in role X. There exist a view, where display A is allowed for role X while display B is restricted. How do i programmatically check whether a user belonging to role X can access the display or not? ...

Drupal, Ubercart: how can I get the order printable version programmatically ?

hi, I need to generate a pdf from Ubecarts orders. I know how to access to the printable versions of orders from my browser: i.e. "admin/store/orders/45/invoice/print" However, I was wondering how to access to the page from php, maybe using ubercart apis ? What I need is the equivalent of node_view, for orders (which is not a node). ...

deploying changes on a living drupal site

Hi folks! I really like drupal somehow. But what disturbs me most is that i can't figure out a clear way of deployment. Drupal stores a lot of stuff inside the database (views, cck, workflow, trigger etc) that needs to be updated. I've seen some modules that could be used for this task (eg features) and I'm not sure if they are suffic...

drupal how to add url alias to "sites/all/modules/..."

alias: admin/a/b source: sites/all/modules/somemodule/somefile I tried in menu, pathauto, they both report such source path does not exist or I don't have permission. How can this be achieved in most easy way? ...

Drupal + AMFPHP + Simplenews. Is it possibile?

I'm integrating Drupal with Flash using AMFPHP as a service. Everything works as expected with view.get and node.get The problem is that now I need to integrate the newsletter making flash "talk" with simplenews since simplenews works as a module I can't find a way to let them talk. What I would need is to send an email address and g...

drupal registration redirect and user details

After registration the user is redirected to a welcome page . How to get display the respective user details in redirected(welcome) page?. for ex: welcome username . how to get user name in redirected page ...

Drupal 6: How to set up & use Mercurial for my Drupal projects

Hi friends, I need to start using version control system for my Drupal projects, and I decided on Mercurial. During last 2 days I have been googling to find some tutorials, guides, tips, anything about "how to use mercurial for my drupal projects", but I just can't find anything! :/ Can you advise any link or tutorial or anything fo...

Drupal 6: using bitbucket.org for my Drupal projects as a real version control system dummy

Hi friends, Here is a real version control system dummy! proper new starter! The way I have worked so far: I have a Drupal-6 web project www.blabla.com and making development under www.blabla.com/beta . I'm directly working on blabla.com/beta on server. nothing at my local, nothing at anywhere else. Only taking backup to local, time...

Multiple form search in drupal.

I created a website with ads and I would like to have a search form with multiple dropdown fields (i.e. price, type, etc.). The main title search form would be optional. How can I aachieve this using Views? Or maybe it is better to use some module? Any help appreciated. ...

Drupal, user profiles: adding fields *only* editable by administrators

hi, I would like to add a field to user profiles that only administrator can use and change for each user. In other words, it should be visible in users profiles but not editable by users (only by administrators). I cannot do it with drupal permissions, right ? thanks ...

how can I restrict user access on specific pages? (Drupal, php, FileMaker Pro 10)

I am working on a website which already has user access set up so that only members who are logged in can see certain pages. Now i need to go in and make the access for logged in users more specific. So, anyone who logs in can see the site, but there are 2 pages (called PDQ and Comm Plus) that should only be accessed by users that have P...

drupal :: order complete hook and upgrade user permission/roles

Hello, I want to be able to upgrade user's permission after the order status shows complete. I figured out that I should use hook_order hook in order to achieve that. But how do I get to know which user has created that order and how do go about updating the permissions as well as setting up the expire time for that role automatically...

Multiple registered events in JQuery

Posted this over at the Drupal forums but haven't received a response. Basically, I have a simple JavaScript item I developed for another website that I'm trying to port over into Drupal. It's basically a div with three tabs stacked on top of each other and an image. When the user scrolls over a tab, the image changes (depending on the t...

Drupal: images don't show up inside the block (text only)

hi, I've added the following code inside a Drupal block, to display an image. <img alt="Fuzion logo" src="sites/all/themes/zen/zen/logo.png" />test<br /> I've tried several urls. For none of them I can see the image in my front-end website. The block only contains the text "test". hostingpath/sites/all/themes/zen/zen/logo.png ---> I...

Drupal: modifying a template without hacking the module

hi, I need to edit an invoice template in Drupal (both php template and css). I've copied pasted the file in my theme folder, as I usually do to override for blocks and pages templates, but it didn't work. This is the template customer.itpl.php inside Ubercart/uc_orders/templates folder. How can I override it without hacking the uber...