This forum is for less technical discussions about the Drupal project, not for support questions.

Customer firewall blocking pieces of Drupal - any ideas?

The president of the club i am a member of and building a website for http://www.ne-aquaticplants.com works at a pharmapcydical company that i know have weird security on their internet connection...

he says he cannot access any of the "create content" portions of the site, though he is able to log in. he cannot leave comments either...

Why would that be happening... ? I mean the browser is just seeing an HTML page...

thanks in advance...

-iova

Tags per term

Is there a mod that allows all tags associated with a term to be listed?

A new way to resize user pictures on nodes

After much research, and the great input of other posters who have visited this need in the past, I think I've figured out another way to resize user pictures in nodes and comments. (this is intended for 4.7 only)

We SHOULD be able to resize user pictures using CSS. This offloads the task of resizing to the user's browser, rather than the Drupal server. Unfortunately we can't resize user pictures because of the way Drupal themes them.

Drupal wraps the img with a div, having the class of .picture. If we try to add a size attribute to this class, it fails, because the default size of the img object nested inside the div takes precedence. What we need is a class on the img itself, then we can resize it in style.css.

To do this, we need to override the Drupal function that formats the user picture. This function is found in the profiles module and is called theme_user_picture(). Since this is a themable function, we can override it in the template.php file in the default theme directory. This new function moves the .picture class from the div that wraps the image to the img object itself.

Here's the new function to add to template.php:


<?php
function phptemplate_user_picture($account) {
if (variable_get('user_pictures', 0)) {
if ($account->picture && file_exists($account->picture)) {
$picture = file_create_url($account->picture);
}

Show terms and sub terms

I have tried two different modules Views and Categories.

What I would like to create is a list of terms and sub terms or terms and a list of tags associated with them.

So if I create a vocab called Social Studies

A primary term might be history
and a secondary term might be US history

I would like it to appear as

History

--->US History
--->Another Term

but I would like all other terms to appear in a directory style as a page. So whever I enter a new primary term it enters itself into the directory.

Flash in Node

Hello,

I want to include Flash clip in my texts in page nodes. Is there any simple way how to include it as it is with images? I did not any module to manage flash nodes.

Thanks and Regards,
Luke
http://www.smilinghr.com

PHPtemplate for other cms

Is the PHPtemplate engine in drupal a generic template engine or is it specific to drupal only.
If i'm creating a blog system of my own, and want a theme engine. can i just use phptemplate or will i have to create a custom one or resort to smarty.

Pages

Subscribe with RSS Subscribe to RSS - General discussion