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

Blix and Terms

Hi,

I'm trying to do some customisation to the Blix theme and I've hit a snag.

At the bottom of the template (node.tpl.php) the taxonomy terms and links get displayed. That's fine, except that I'm getting extra whitespace and a '|' dividing the items. (look here for an example) I'd like to strip these out, but cannot find where this is being generated.

I've checked the CSS, and can't see it in there so where else can I look?

Thanks.

Specific value for option in select

I'd like to create a form element that is a 'select', but that has a 'value' that isn't the same as the option's display string and also to be able to set the "selected" option.

So, rather than just:

<option>red</option>

I'd like to have elements like:

<option value='red' selected='selected'>The Color Red</option>

I've searched through the form module code, but don't see anything at all about it.

Any help would be mucho appreciado!

Mitch

Using administrator defined blocks

Could some one please tell me how I can add Drupal node types to a admin defined block? I'd like to create a custom menu in the block and have it displayed using the dashboard module.

Thanks.

Random http://freeweb.siol.net in Referrers!

Hello,
Over the past months, I have been gathering stats on my site. My referrer log is bloated with tons of random referrers from the freeweb.siol.net domain. I'm not sure why or how this is happening and wondering if anyone else has this site all over their logs. Also, anyone know of how to block or not allow this? It's driving me nuts!

Example
Hits Url Last visitsort icon
7 http://freeweb.siol.net/josqub/einb... 4 min 13 sec ago
4 http://freeweb.siol.net/gihnke/noki... 4 min 36 sec ago
2 http://freeweb.siol.net/poxkoo/spru... 6 min 40 sec ago
1 http://freeweb.siol.net/piebzt/acat... 9 min 3 sec ago
7 http://freeweb.siol.net/limdrv/sexy... 11 min 20 sec ago
2 http://freeweb.siol.net/coamza/tele... 13 min 42 sec ago
3 http://freeweb.siol.net/lnikko/nec-... 16 min 57 sec ago
3 http://freeweb.siol.net/pmavet/sony... 18 min 10 sec ago
2 http://freeweb.siol.net/coamza/sex-... 19 min 25 sec ago
3 http://freeweb.siol.net/romkla/poes... 19 min 46 sec ago
4 http://freeweb.siol.net/gihnke/noki... 24 min 45 sec ago
4 http://freeweb.siol.net/poxkoo/spru... 25 min 18 sec ago
7 http://freeweb.siol.net/mipzma/eplu... 25 min 25 sec ago
3 http://freeweb.siol.net/kakmas/hand... 33 min 22 sec ago
3 http://freeweb.siol.net/gurjno/ques... 33 min 28 sec ago
2 http://freeweb.siol.net/syfuca/noki... 39 min 23 sec ago
4 http://freeweb.siol.net/voflez/note... 41 min 15 sec ago

drupal_add_js doesn't work

My drupal version is 4.7 and I am using k2 theme.
In k2 theme's page.tpl.php, under header if I add

<?php print drupal_add_js('path-to/javascript.js') ?>


It doesn't output the corresponding code to include the javascript. what gives ?
If I include the javascript outside the PHP , ie. with <script type="text/javascript" src="...
then it works.

Anybody got a clue, why drupal_add_js is not working.

Simple Question: How to make another user an administrator?

I've looked at previous forum posts and drupal documentation: I'm probably not looking hard enough, but I simply just need to make another user (another one of my accounts) an administrator role. I've tried creating a new user role "administrators" and giving them all access in the "access control" but that doesn't do any good when I add new modules...

Simple way to make my other user name an admin? Let me know - thanks!

Pages

Subscribe with RSS Subscribe to RSS - Post installation