Drupal

Drupal is an open-source content-management framework written in PHP used as a back-end framework for websites and is also used for knowledge management and business collaboration. The standard release of Drupal contains basic features common to content management systems, including user account registration and maintenance, menu management, RSS feeds, taxonomy, page layout customization, and system administration. Drupal runs on any computing platform that supports both a Web server capable of running PHP and a database to store content and configuration.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

I have this problem that is driving me crazy...  I have a fresh installation of Drupal 6 with the latest version of the Captcha module installed.  The problem is that if we try to use image captcha the image gets displayed but only the background without text at all (except when we use the built in font).

Inittially I thought that GD Library for JPG or PNG support was not enabled or probably the Freetype support but according to my PHP info all that is enabled and working.


GD Support       enabled
GD Version       bundled (2.0.34 compatible)
FreeType Support       enabled
FreeType Linkage       with TTF library
FreeType Version       1.4
GIF Read Support       enabled
GIF Create Support       enabled
JPG Support       enabled
PNG Support       enabled
WBMP Support       enabled
XBM Support       enabled

Do any of you experts had similar problems or have an Idea of where should I try to keep debugging this to try to get it fixed?

See the images below for a visual explanation...  the first image is using a font but obviously is not being rendered,  in the second image... when we use the built-in font the text is rendered just fine.

We're using the fonts that come with the module...  and the installation and implementation is straight out of the box.  We have the cache disabled too...

Any Ideas?
[embed=doc 216330]
[embed=doc 216331]
0
Morning,

Here is my issue. I am trying to copy a drupal installation to another machine. The project was developed on one person's local machine and now we need to install on other mahines do that folks can play with it. Eventually, we will need to move the installation to the server that it will reside on.

I have a dump file of the database that I have restored on my box. I also have the htdoc folder from his installation that was located /{bitnami destination}/apache2/htdocs.

I am receiving erros when I try to access the site. It seems that something is either missing or paths are not correct. For example, one of the list of errors I receive refers to an htdocs folder located in the apps folder. I can tell the style sheet or theme sheet is not loading.

Here are my questions

1) What is the best way to copy a drupal installation.

2) If the installation I am copying has installed modules, should I install those modeules before copying the installation

Here is a copy of one of the errors.

> warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'ctools_menu_help' was given in C:\Program Files\BitNami Drupal 6 Stack\apps\drupal\htdocs\includes\theme.inc on line 617.

Any advice would be appreciated.

Thank you!!!!

Update to question
I have also found out that the files I am trying to work with were originally installed the following way.
Originally installed on Linux box. I am …
0
Is there someway to use CSS to overlay text on an image? I have images to which I'd like to overlay "click image to enlarge"

Thanks.
0
Title pretty much explains what I want to do...  I'm not a fan of using nested tables, so believe me, I'm unhappy and would so, so, so totally prefer something else... but, c'est la vie...

Essentially, I'm trying to figure out how to create a nested table utilizing the theme_table function...  I can't seem to find any information on how to do that...

The markup I'm aiming to achieve ($data is the array of information that I'm building the table off of):


[code]<table class="atb">
     <tbody>
     <tr class="action">
        <table class="inner-atb">
           <tr class="un"><td colspan="2">$data['name']</td></tr>
           <tr class="data">
              <td class="img">$data['image']</td>
              <td class="untext">
                   <span class="untext-style">
                       <span class="untext">$data['text']</span>
                       <span class="separator"></span>
                       <span class="timestamp">$data['timestamp']</span>
                   </span>
              </td>
           </tr>
        </table>
     </tr>
     </tbody>
    </table>
[/code]
0
I have a collection of flash video files that I want to import into Drupal each being part of content type I call 'video'.  What is the best way to do this?  All the videos are under subfolders of a folder called 'videos'. What I'm thinking is that there should be a module which would be able to read the files in the 'videos' folder and then create an instance of the video content type for each video file (using the file name as the  title and the particular video file as the content).
0
How to set width for drupal forms element - select

code
 $form['to_months'] = array(
    '#type' => 'select',
    '#default_value' => array(
      '11' => '11'),
      '#options' => array(
      '01' => 'jan',
      '02' => 'feb',
      '03' => 'mar',
      '04' => 'apr',
      '05' => 'may',
      '06' => 'jun',
      '07' => 'jul',
      '08' => 'aug',
      '09' => 'sep',
      '10' => 'oct',
      '11' => 'nov',
      '12' => 'dec',
  ),
    '#prefix' => ' <p class="mediaLabel">Dates:</p>',
    '#suffix' => ' ',
    );

drupal version is  6
0
Hi Everyone,

We have some very large html files that we would like to break up into smaller chunks and present each as a page within that collection; in other word we want to paginate them. There are 2 requirments:

1.  To have the usual previous,1 2 3 ..., next links be displayed so that users  can navigate from the first page to the last.

2.  Each page be independent so that we can optimize stuff such as page title, and  meta description seperately for SEO purposes.

Now, my question is what is the best method to use in Drupal to do this.  I think we can use a Drupal book to do this, as well as some module such  as the pagination module. Which method is better, and is there any other technic in Drupal that we can use?

Also, do pagination module, and book methods allow you to consider each created page as a separate page so that you can do SEO optimization on each?


Thanks,
Dan
0
When saving a new content post using the Drupal CMS, I get the following warning and don't know how to resolve the issue.  Please help.

Thanks!

    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= n.nid WHERE ((n.moderate != 1 OR n.uid = 1779)) AND ( nid = 0)' at line 1 query: SELECT tid FROM term_node LEFT JOIN node n ON .nid = n.nid WHERE ((n.moderate != 1 OR n.uid = 1779)) AND ( nid = 0) in /var/www/vhosts/domain.com/httpdocs/sites/all/modules/taxonomy_menu/taxonomy_menu.database.inc on line 78.
    * user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'nid = n.nid WHERE ((n.moderate != 1 OR n.uid = 1779)) AND ( nid = 0)' at line 1 query: SELECT tid FROM term_node LEFT JOIN node n ON 20.nid = n.nid WHERE ((n.moderate != 1 OR n.uid = 1779)) AND ( nid = 0) in /var/www/vhosts/domain.com/httpdocs/sites/all/modules/taxonomy_menu/taxonomy_menu.database.inc on line 78.


[code]<?php
// $Id: taxonomy_menu.database.inc,v 1.1.2.8 2009/03/22 15:13:00 indytechcook Exp $
/**
 * @file
 * Database functions
 *
 * @author Neil Hastings      <http://drupal.org/user/245817>
 * @author Mark Theunissen    <http://drupal.org/user/108606>
 * @author Afief Halumi       <http://drupal.org/user/237472>
 */
 /**
 *  helper function to insert a menu item
 *
 * @param $mlid
 *[/code]…
0
I've been reading through the various menu functions in Drupal, but there are sooo many, and I've reached a point of utter confusion and despair... Hoping one of the smarties here can help me out...

Basically, I have four levels to my menu.  I'm trying to create a tree that outputs from the second level down.

So, the menu looks like this:  LEVEL ONE > Sublevel A > Sublevel I > Sublevel a

I'm trying to output the menu tree beginning with Sublevel A
(i.e., Sublevel A > Sublevel I > Sublevel a)

But, can't for the life of me figure out how to do that...  I tried simply getting the mlid of the Sublevel A menu (in this case 69), and then

<?php print theme_menu_tree(69); ?>

but it just prints out '69'.  Not at all what I expected...  

Anyone know how to do this?  
0
Hello,

Is there a model or combination of modules to enable you to sync a Drupal calendar with an iPhone?

Thanks!

Drew
0
I am trying to add dynamic PHP variables for the paths in a piece of jQuery swap-image code. The code works perfectly well -- meaning the javascript works -- when I use static paths. But when I add the PHP to make it dynamic, it won't work. Yet, the code seems to print properly -- i.e. just like the static code -- when inspected in Firebug.

BACKGROUND:
This my first Drupal site. I'm using Views to build the SQL query and handle the CMS heavy lifting. But I'm building my own custom theme. Again, when I use static paths in the .tpl.php file, it works fine in the Drupal environment. It's when I add the dynamic PHP that things seem to break. I'm wondering if this is some Drupal thing that I don't understand. My PHP and jQuery work fine on a non-Drupal setup.

CODE:
I've attached the static code that does work. Then one of many attempts at including the PHP that doesn't seem to work. I've also include the HTML output from Firebug of the attempt at including the PHP. And THAT code looks like it SHOULD work! What's Drupal doin' here?!

PLEASE HELP! I've spent five hours on this and am at my wit's end!
Thanks!

[code]This is the STATIC code that works fine: (This is in a block-level .tpl.php file)
<?php
$path = $fields['field_artphoto_fid']->content;
$pur_path = strip_tags($path);
$node_id = $row->nid;
?>

<a href="/node/<? print $node_id ?>"><img id="Thumb_1" class="swapImageDisjoint { sin: [/code]…
0
I am looking to add a CMS (Content Management System) to the website that I am currently in the process of rebuilding. Initially I have been going back and forth on the two widely used platforms of Joomla and Drupal but am running into problems trying to figure out which is better for my situation.

What I am trying to accomplish with a CMS is having the ability to let non-computer literate employees make updates to the website without  having to go in via dreamweaver and make the updates. The updates will be happening roughly every two weeks on 1 -2 pages. I have read multiple forums listing the pros and cons of either platform but have struggled to settle with one or the other. Joomla seems to be the slimmer, more plug and play of the two, whereas Drupal seems to have far more functionality but a more intense setup.

My main concern is whether i can develop my site in dreamweaver then assign certain areas to Joomla or Drupal for content management, or is it necessary to use their site development tools to build the site?

Furthermore, I did notice that Drupal includes some SEO functionality which the documentation doesn't go into much detail about, but was wondering if anyone has any experience with it?

I am hoping to find a bit more insight to help sway my decision one way or the other.
0
I have a production site that I have copied to a test server for off-line development.  I have exported the drupal database from the production box and imported into the local site (running on a virtual host under Apache 2.2).  I have also copied the entire drupal subdir with sites/.* to the local machine.

Now, the site looks to be fully functional except that I can login.  I'll enter the admin login/password, and it just brings me back to the main page.

I have delete the entries from the sessions and cache tablles but am still having the problems.  Any help regarding this will be appreciated.

0
I have started to recreate our site in drupal but am finding the insertion of images very confusing.

What is the best way to insert an image with a title above and text below into a content area such as a sidebar? The image should be linked to a node and authorised users should be able to change the image. the link, and the text easily.

Also, the main content area of the homepage with have about six "regions" in it, each with an image left justified with text to the right of it, wrapping around the bottom of the image. Users should also be able to edit the images and the text easily. Again, the images should be linked to nodes and ideally, at the end of the text there should be a "more...." link which should also be editable easily.

0
I'm building a new Drupal site, found at:

http://www.site.com/www

I would like for it to have a static homepage, without standard drupal formatting, found at the site's root (http://www.site.com).  Is there a way for me to force Drupal's home link to point to my custom homepage?

Alternately, is there a way to integrate this custom page (an HTML designed page, sans drupal theme & blocks) into the Drupal hierarchy?

Thanks!
0
Hey experts!

I'm working on a personal project but don't know how to realize what I'm trying to do.

Using Drupal, I created a small PHP page with a dropdown menu that display different feed articles based on the selected item. For exemple, if the selected item in the dropdown is "food", I display a couple articles from whateverFoodSite.com

This is working perfectly so far but here's what I want to do: I'd like to add an external file (XML I guess?) that would control the default item of the list. The file could be modify anytime and would contain a list of conditions that would determine which item in the list to display.

Here is an exemple of the content of the external file:
- If Time (of the day) is between 11am and 1pm, default item should be "Food"
- If Time (of the day) is between 5pm and 8pm, default item should be "News of the day"
- If Time (of the day) is after 1pm and Date (of the year) is between 15 and 31 December, default item should be "Christmas Tips"

I'd like to know if you think it's possible and what technologies you would use (not sure about the external XML file).
0
Hi, this should be really simple, but I can 't find anything on it.

I've created all the user profile (registration) fields I want. This includes firstname/lastname (e.g. form name = profile_firstname & profile_lastname). Now I want to have the welcome mail use the firstname/lastname rather than username i.e. Dear [firstname] [lastname]" intead of "!username". So how do I do this without diving into templates, hooks and code? Surely it has to be possible to achive something as basic as this without having to install yet another module or resort to coding?

Tks
0
I created a module and put the following code in it. However, when I tried to activate the Block on the block page it is not there

I don't know what is missing in my code
[code]<?php
// $Id$
/**
* @file
* Implements various blocks.
*/
/**
* Implementation of hook_block().
*/
function yahoorank_block($op = 'list' , $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t('Yahoo Rank');
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
}
}
[/code]
0
Am starting to learn Drupal.
Everything seems to be going well. However, recently, after activating modules and clicking on the Save Configuration button a blank page is displayed. If I then click on View/Reload (in Firefox) the page is correctly displayed. the page is http://localhost/drupal/admin/build/modules
How can I cure this?
0
It is a CMS. I want to put meta tags. How can I do so. Does anyone knows
0
I have been working on the attached code to get the realname's of users to link to their content profile. The code is placed in a user-profile.tpl.php file within the subtheme. Obviosuly i'm using both the content profile and realnames modules. The problem is that the other users' names directs to their profile but not the online users' itself. For example when I log as joe and click on my own name it does not redirect but when clicking on pete it directs to his. Any help would be appreciated.
[code]<?php
  if (arg(0) == 'user' && is_numeric(arg(1))) {
    $loggeduserid = $user->uid;
    $vieweduserid = arg(1);
    if ($loggeduserid != $vieweduserid) {
      $node_profile = content_profile_load(profile, $vieweduserid);
      if ($node_profile->nid) $path = 'node/'.$node_profile->nid;
      drupal_goto($path, NULL, NULL, 301);
    }
  }
?>
[/code]
0
I have the navigation menu being used on the left-hand side and am using the Aquia Marina theme.

Right now, the navigation menu is becoming very long as the design of our menu is encompassing many types of services that we offer.

The following is what I want to achieve:

Certain items to show up only when related to the topic. Example: On the training page, the navigation should only show the items related to training and all others should not show up.

All the items on the navigation menu are defaulted to expand. I would like to make them collapsed. How can I achieve this?

Thanks for the help
0
Hello,

On Drupal, I need to restrict registration to individuals with an email address that belongs to a certain domain.

Is this possible?

Thanks,

Drew
0
We have a website hosted on a shared Linux platform run by Open Source Hosting, a third party host, not in-house.  The website is being built on Drupal and I'm using an enhanced menu module named Nice Menus.  After building up the menus with many parent / child / grandchild entries I reached a point where PHP 'crashed' and complained about not having enough memory.  The specific error is -

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1651105 bytes) in /home/p5106r44/public_html/includes/common.inc on line 167

At this point I cannot edit the menu as I am presented with the message above whenever I try to make changes.
Currently PHP.INI is configured to allocate 32M to each process (memory_limit switch).  Unfortunately, I cannot change that limit as this is a shared, hosted service and they don't allow changes to PHP.INI.

I will redesign the menus to have fewer elements as soon as I can get in to edit them.  Any suggestions on how I might accomplish this?

Thanks,
Adam
0
if you want to make your own cron job in drupal how would you do this? say you want it to run 2 times per day
0

Drupal

Drupal is an open-source content-management framework written in PHP used as a back-end framework for websites and is also used for knowledge management and business collaboration. The standard release of Drupal contains basic features common to content management systems, including user account registration and maintenance, menu management, RSS feeds, taxonomy, page layout customization, and system administration. Drupal runs on any computing platform that supports both a Web server capable of running PHP and a database to store content and configuration.

Top Experts In
Drupal
<
Monthly
>