Block not showing

Hi fellows, I'm having a really strange error, and I don't know if its of my template or my module.

I created a module which use blocks:

--------

function mymodule_block($op = 'list', $delta = 0) {

if (user_access('access content')) {
if ($op == 'list') {
$block = array();
$block[0]['info'] = t('Title 1');
$block[1]['info'] = t('Title 2');
$block[2]['info'] = t('Title 3');
$block[3]['info'] = t('Title 4');
$block[4]['info'] = t('Title 5');
return $block;
}
}

if($op == 'view') {
$block = array();

switch($delta) {
case 0:
if(user_access('access content')) {
$block['subject'] = l("

".t('Title 1')."

", "module/categories/all", array(), NULL, NULL, FALSE, TRUE);
$block['content'] = "

";
}
break;

...

-----

This block was implemented at start at taxonomies (an odd hack), it was working fine with taxonomies module, but I moved to my module to clean all drupal.

After the move, none of the block was working, even drupal shows in the admin page the modules and are active. I tried to check the $op in mymodule_block(), but instead a string it was show an object:

--------------
stdClass Object
(
[module] => user
[delta] => 1
[status] => 1
[weight] => 0
[region] => 0

Freetagging help text issue - bug or not?

Hello,

I'm not sure if this is a 4.7 beta bug or simply because I don't have the right settings clicked somewhere but

I've created a Flexinode type called "Entry." I'm adding vocabulary to it so that people can categorize their entries.

I've set up two categories/vocab types so far:

1. Country

This is a multi-select category with pre-defined terms. When I view this as though I was a user about to create content, I see the help text I set up in Administer>>Categories>>Add Vocabulary

2. Region/City

How To configure the blockbar module

Hi All,

I'm looking for more information on how to configure the blockbar module.
The module is installed.
I created 3 blockbar blocks via admin/settings/blockbar
I'm puzzled with the instruction of config step 2 (readme.txt).
I've added the my_theme_regions() function to phptemplate.engine

Thanks,

Eric.

Drupal getting ugly

I tried integrating my template into Drupal today. I was fairly successful until I viewed the source code. What seemed like hundreds of selectors that was added to my content, providing me with little or no control. I don't care if they don't have to be defined, why are they there? I've always asked myself the purpose of an ID selector when you can simply cascade classes. It's cleaner and makes it easier to modify your theme. Also what happened to grouping classes? These are just simple theme issues that need to be fixed.

Why are tags being added where they shouldn't be though? The breadcrumb variable automatically places the content inside a div tag. Several other variables automatically insert tags into your page that should be included in the template. That is nonsense!

Even the Drupal website has severe accessibility issues that still need to be resolved. Trying viewing the page at an 800X600 resolution. The links at the top get wrapped around, which blocks the search form.

What is the purpose of a theme engine in Drupal, if most of the theme options is built into the core making you modify the core everytime you update Drupal.

I hate to say it but Drupal is getting ugly. When are we going to see some real options on what content is being displayed, and how it appears. Even the searchbox variable displays dirty code, with classes and selectors for every input including the form.

Bulelts on Latest Articles block

Is it possible to add bullets before the titles of articles on the "Latest Articles" block?
Thanks,
J

drupal_get_path_alias() broken?

Or is it just me? Unfortunatly I haven't been using drupal long enough to know if it's a bug, or I'm just doing something wrong.

I'm making a block module .... The relevent part of my _block hook looks like:

function menusplit_block($op = 'list', $delta = 0, $edit = array()){
	switch($op){
		case 'list':
			return menusplit_list();
			break;
		case 'view':
			return menusplit_get($delta);
			break;
	}
}
function menusplit_get($mid){
	
	$q = $_REQUEST['q'];
	$alias = drupal_get_path_alias($_REQUEST['q']);
	
	$b['content'] = "SPLIT BLOCK " . $q . " ---- " . $alias;
	$b['subject'] = "-test-";
	return $b;
}

At http://example.com/graduate/admission/requirements/mbamse I get:
"SPLIT BLOCK graduate/admission/requirements/mbamse ---- graduate/admission/requirements/mbamse"
as expected....

But, at http://example.com/node/76 I get:
"SPLIT BLOCK node/76 ---- node/76"

These are the same node, the first one is the alias. I thought that $alias should contain "graduate/admission/requirements/mbamse" right?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x