Drupal is up and running but how do I ...?

Running with FileManager/Acidfree on non-standard ports

Hi All,

I'm running drupal on my server, on port 8080 instead of the usula 80. Most of drupal gives no trouble, but AcidFree refuses to show thumbnails of images/videos that I upload. Initially I thought it was a problem with PHP/Apache build (I built Apache2.0.58, MySql 5.0.22 and PHP 5.1.4 (with gd, jpeg, png, zlib) from sources to install into /usr/local/mystuff/
). However, on delving deeper, it turns out that either of {Drupal, FileManager, Acidfree} are interpreting the port number in the URL (i.e. http://my.server:8080/node/2) as a file path rather than a port number.

So the HTML source (for the image list) shows up like this: <img src="8080/filemanager/getfile.php?id=24"> while in reality, the SRC bit should read just "filemanager/getfile.php?id=24".

Can this be a problem with drupal's automatic URL conversion to "readable" URLs (i.e. /node/6 instead of /index.php?node=6), or is it a problem with Acidfree / FileManager? If anyone else has solved an issue like tihs, I would love to hear the solution!

Stuff that I have tried:

  1. setting $base_url=http://my.server:8080 in the settings.php file
  2. adding a rewrite rule to Apache to translate all */8080/filemanager/* to $1/filemanager/$2 (the regex is correct, Apache's RewriteLog tells me so
  3. changing the "public url" configuration in the filemanager module

Displaying Taxonomy Terms in the Template

Perhaps someone can help me with this. A bit of background: Among others, I have a vocabulary called "Locations." The terms within Locations are (obviously) places. I would like to check if a location is given for the node, and display the name of the location on a title bar that is separate from the rest of the node. The layout looks something like this (please pardon the ascii art):

|Header                       |
|_____________________________|
|Location Name         |R.Nav |
|______________________|      |
|L.Nav| Node           |      |
|     |                |      |
|     |                |      |
|     |                |      |
|     |                |      |
|_____|________________|______|
|Footer                       |
|_____________________________|

Since the name of the location is outside the node, the taxonomy is not (AFAIK) accessible. Does anyone know how to display a term from a specific vocabulary, outside the context of the node?

Is there a module that can show images like Flickr does?

Hi,
I would like to load images the same way as Flickr shows them in this example
I'm referring to the collapsable sets that appear on the right - under "This photo also belongs to".
Does any one knows a module that can do this thing?
Cheers,
Amitai

Querying non-drupal database

I'm querying another (i.e. not Drupal's) database from a block that is on every page. I don't want use resources opening a separate db connection if I don't have to, so currently I'm just using a simple mysql_query call with the other database name specified in the SQL.

$result = mysql_query("select * from db_name.table_name;");
// then output stuff from $result

It seems to work OK, but I just wanted to check whether anyone knows of a good reason not to do this. Thanks!

How flexible are drupal node types?

Hi,

I am trying to decide whether to use drupal for an application development project we are starting, or to go with one of the custom php frameworks. We are not building an article/publishing type application. Rather, it is more of a web application.

Since Drupal has so much there, already working and tested together, my preference would be drupal.

Question: how flexible is drupal with respect to node/content types.

Is it fair to say, anything which can be represented as a record in a database table, can also be represented as a node type in drupal, which can then gain all the drupal advantages of indexing/searching/categorizing, multi-language, templating, user management, etc..?

If so, that would seem to be a real incentive for leveraging drupal in application development. If the website infrastructure is already there, and all one has to do is code up the application specific stuff - that would be great.

What module should I be looking at for doing this? I've heard of flexinode, CCK, but can't seem to find significant documentation on it. Any pointers would be great.

Is there a way to define the fields displayed when listing the nodes of that node type? (ie. not the detailed listing of the node page, rather a "teaser" listing of all the nodes of that type). What module would I use for that?

Finally, the big question - are there application types for which drupal is known to be unsuitable?

forum poster

Running the forum in drupal 4.7 I would like to have have anonymous posters be able to start forum topics and be able to enter their name, email addy, and homepage. Can anyone tell me how to get this second part kicking?

I have it so they can post but it shows up as anonymous and there is no place to enter their info in.

Pages

Subscribe with RSS Subscribe to RSS - Post installation