I'm trying to get the avatar (profile picture) located in the $profile array to appear in a BLOCK. The variable $profile is not accessible from blocks. It's scope is only in that actual user-profile.tpl.php file. So... does anybody know how I can execute something like this:
print $profile[user_picture];
in a drupal BLOCK?
...
I'm interested in creating a custom theme for a Drupal site I'm working on. I am new to Drupal, however I have a decent bit of experience in working with the underlying concepts that it seems are needed to build a theme (CSS, PHP, HTML).
So, my question is - where do I start? Is there a canonical guide to creating Drupal themes? Resourc...
I have a problem with the following implementation of hook_cron in Drupal 6.1.3.
The script below runs exactly as expected: it sends a welcome letter to new members, and updates a hidden field in their profile to designate that the letter has been sent. There are no errors in the letter, all new members are accounted for, etc.
The pro...
Is there a way to allow hook_cron to run with administrator privileges -- e.g a sort of sudo hook_cron() as it were?
This question is a follow up to my earlier question trying to diagnose why hook_cron() functions invoked by /drupal/cron.php run differently that the same functions invoked by /admin/reports/status/run-cron.
My particul...
I'm looking to provide my client with a view with exposed filters and a 'submit' button that would process every record in that view. I've seen comparable modules/things being done on d6, but on d5 I'm pretty stumped.
...
Hi,
I may be missing something blindingly obvious here (I hope so).....I am creating a module in Drupal 6 that consists of some triggers and actions. in it's simplest form it consists of:
An action which checks for some criteria (event that needs to be triggered once a month per user)
A trigger which is fired for each user that the c...
I've setup a view in drupal that lists items like this:
IMAGE 1 | IMAGE 2 | IMAGE 3 | IMAGE 4
desc | desc | desc | desc
where "desc" is, you guessed it, a description of the node. What I need is to end up with something like this:
IMAGE 1 | IMAGE 2 | IMAGE 3 | IMAGE 4
desc | desc | desc | desc
EDIT | EDIT | ...
Hello,
I am looking for a way to display a button on my site for donations. If a user clicks it, they would be taken to a paypal page with all the necessary information on the donor's end already filled in. What is the best way to implement this in a PHP/Drupal environment? I already have a paypal account set up.
Thanks.
...
i have a decent understanding of configuring drupal and using modules for basic stuff, but just getting into module development and overriding functions and stuff due to my very basic understanding of php and mysql.
i have a custom content type ('books') and a 3 cck field for genres (primary, secondary, tertiary). i'd like a user to be ...
I'm reading through Pro Drupal development right now, and an example on page 82 uses the following function:
function menufun_menu_link_alter(&$item, $menu){
if ($item['link_path'] == 'logout'){
$item['link_title'] = 'Sign off';
}
}
I understand that I can find out what parameters "hook_menu_link_alter" takes by looking ...
What is the best way to deal with "service" products. For example, let's say I'm a painter and wish to advertise these services on a site that also sells paint brushes and paint. Now, the paint brushes and paint I can easily set up as products that are sold for X and Y amount. But when creating a product called "Painting your house", it ...
This is my first jQuery script, which works great in Firefox and Chrome, but fails in Internet Explorer.
I load two scripts using my theme's .info file:
scripts[] = jquery.jfeed.pack.js
scripts[] = script.js
The first script is a jquery plugin that parses rss feeds for me. The second script looks like this:
var init = jQuery.getFee...
I have been creating many Drupal themes already, but this one, somehow, includes the style.css file from garland when I visit the home page. Yes. Any other page does not include that core file (as I would expect.)
The home page (node/1) was made the default page (like on my other sites). The .info file and other theme pages are defined ...
I'm having difficulty figuring out how to write a module with a form that uploads files, in Drupal 6. Can anyone explain this, or point me to a good example/documentation discussing it?
EDIT:
Here is entirely what I am trying to do:
User uploads a .csv
Module reads the first line of the file to get fields
User matches csv fields with...
Hello :) I posted this same question on a drupal-oriented site, but didn't get any replies at all. I grumbled to myself and wished that the site was more like StackOverflow, so I thought, why not try asking it here :)
I'm playing around with a view that displays nodes belonging to a taxonomy term. The vocabulary also has a taxonomy node...
I have a page that is definitely not a form but I need to use some callback functions to load data from an external source and display (e.g. a list of buildings on campus and their accessibility information).
What I have a need for is a landing listing page (lists all the buildings) and a 'view individual building' page. Also, I have a ...
Is it possible to add a menu item from within hook_menu() directly to the primary-links menu instead of navigation where they like to reside by default?
...
i created a view that displays my homepage fine but now a modification is needed: i load 2 fields (images) in my view but need to only display one of those, depending on the value of a third (date) field and today's date. if date field is later than today, show image y and if its earlier than today show image x. this kind of logic cant b...
Hi,
I Am new to drupal I need to customize core functionality like register module and event module.please share you thought / sample code / sample website for get the clarification over my issue
Thanks in advance
Balaji
...
So I've got a content type of "News" and then a View which shows a list of News nodes as a menu item.
Is there any way to highlight the News View in the menu tree when you're viewing a News node?
I'm sort of aware of why this doesn't work, and why doing this might be hacky, but there's got to be a way to have a "default" menu item or s...