Trouble getting theme functions overridden

Hey there,

i've already tried a bunch of stuff to get it working, including looking into the core's garland's template.php for guidance and browsing through the Drupal 6 API-documentation.

My problem is: i would like to customize the way Drupal 6 outputs the attachments of a given node. I've changed the theme_upload_attachments function to my liking, put it in my theme's template.php - just as i was used to for Drupal 5 - but it doesn't change a thing. Am I missing something? I feel like i haven't fully grasped the potentially new concept of overriding functions in Drupal 6, despite reading the "Converting 5.x themes to 6.x" / http://drupal.org/node/132442 and "Overriding theme functions" / http://drupal.org/node/173880 pages in the handbook. So now I'm hoping one of you can help me get this working.

As reference, my template.php containing only the customized function is as follows:


<?php

function phptemplate_upload_attachments($files) {
$header = '

' . t('Attachment') . '
' . t('Size') . '

';
$content = '

' . $header;
$i = 0;
foreach ($files as $file) {
$file = (object)$file;
if ($file->list && empty($file->remove)) {
$href = file_create_url($file->filepath);

Input requested for installation profile packaging

In the near future, installation profiles will be packaged with all of core, and whatever contributed projects they depend on. In designing exactly how this system will work, there are some unanswered questions that I'd like to get feedback from the community about. I've posted each one as a poll in the installation profile group (http://groups.drupal.org/distributions) so that people can both comment and vote on the various alternatives.

[Drupal 6] Breadcrumbs not working?

I'm currently testing out Drupal 6 Beta 3 in anticipation of the final release, but I'm having a bit of trouble with breadcrumbs for nodes.

In Drupal 4/5 if I have a menu structure (of pages):

About
+-- FAQs
+-- Donations
+-- Etc

Then when visiting FAQs/Donations/Etc I would get a breadcrumb trail of "Home > About".

Unfortunately with Drupal 6 this I just get a breadcrumb trail of "Home". Has the breadcrumbs work been changed in Drupal 6 or is this a bug?

Cron with drupal6 beta3, get "MySQLi extension for PHP is not installed" error

I'm on hostgator (a shared server), and set up the cron through cPanel, although I can't get cron to run without a:

"We were unable to use the MySQLi database because the MySQLi extension for PHP is not installed."

My command line is: cd /home/username/public_html/ ; php cron.php

Is MySQLi something I need to enable with my host, or through Drupal, or is it even really needed? Everything else seems to be working fine except for cron.

Part or Full Time Drupal Developer PHP Programmer | Sundays Energy

We are looking for another full or part time Drupal developer, PHP programmer.

Must have
20-40+ hours of weekly availability
Proven experience working with Ubercart and Drupal
Extensive, proven knowledge of PHP and MySQL
Ability to hand code HTML and PHP
Ability to work within the command line
Ability to work on several projects concurrently
Ability to accurately estimate the time required to complete the work
Working knowledge of JavaScript, Ajax, jQuery, XML, Flash, CSS

hook_nodeAPI but need field values

I need to add some data to the node object when loaded, but that data is based off a CCK field value, which is not present at the load op, should I just use another op or do I need to manually load this information?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x