Override block template from module

I am writing my own module and would like to override the block template with my own template. So I can use a different template based on the region the bock is assigned to. This should be fairly straightforward, but I don't seem to get it working.

I have tried the following:

Mini Tutorial - How to get .htaccess to redirect yourdomain.com to www.yourdomain.com in add on domains set up

I just spent a few hours dealing with this.
I am posting this because it might be useful for others.
This is a brand new D7 site.

I have a server set up that uses add on domains.
There is the main domain for the server (which is the public_html directory) and the add on domains are placed in it. I hate this set up.

My set up used to have has this structure:

public_html (yourdomain.com) -- main domain
- yourdomain-1.com
- yourdomain-2.com

Now it has this structure:
public_html
.htaccess makes
- yourdomain.com -- main domain
- yourdomain-1.com
- yourdomain-2.com

The way to accomplish this it is to beg your tech support to set it up or use the information below.
You set up the directory structure. Then create an .htaccess file in the top level of your public_html directory using the code below. The usage is explained well by its creator.
But this is problematic with the D7 installation.

This is from http://support.lunarpages.com/knowledge_bases/article/549
.htaccess How to make a subfolder the main folder for your primary domain

New views3 display plugin

Hi,

I have an issue when creating a display plugin for views 3. What I basically did is this:
- created a new module, and implemented hook_views_api()
- created a .views.inc file where I defined the new display plugin with hook_views_plugins
- created the plugin handler, and just copied the views block plugin there, from sites/all/modules/views/plugins/views_plugin_display_block.inc

How to use install_drupal function?

Hi, I want to use install_drupal() function to install a new drupal in sites/[site_name]. in install_drupal() function there is not any variable(or at least I haven't seen) to indicate the site path to install.

Now if I have 3 folders in my sites folder(sites/site_1, sites/site_2, sites_3) How can I say install site_2?

Thanks,

accessing forums statics in views

two questions regarding the core D7 Forum module

1: wondering is there's a way of accessing forum stats like those at site/forum (things like # of topics, posts, etc) withn views?

2: can any of the tpl.php' used to construct site/forum be hacked to print titles of, say, 2 most recent topics in the table?

thnx in adv

j-phat %)

View of parent taxonomy terms

anybody know how to create a page or block view of just the parent terms in a hierarchical taxonomy? Seems like it should be easy but ...

thanks

emk

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x