Topic Specific Forum Blocks

I'm implementing Forums on my website and would like to include a "New Forum Topics" block on the sidebar of specific web pages. I'm able to implement this on a broad basis, but I'm wondering if there is a way to only include 'new forum topics' that are relevant to the section of the website the user is on.

Wrap each p element in a div. D7

Hi I need to wrap every p element in a div. When you look at my source code being generated I see something like this:

How to access the button's value when there are several in the same form?

Hi guys... I have the following code:

<?php
// This function creates a container (fieldset) for each element:
//It is a custom hook

function _mymodule_item_container($oid, $uid, $username) {

$button_choose = drupal_get_path('module', 'mymodule') . '/img/choose-button.png';

$form['container'] = array(
'#tree' => FALSE,
'#type' => 'fieldset',
'#prefix' => '

',
'#suffix' => '

',

);
$form['container']['info'] = array(
'#type' => 'markup',
'#markup' => 'Element ' . $oid . ' -- Created by ' . l($username, 'user/' . $uid),
);
$form['container']['choose_button'] = array(
'#type' => 'image_button',
'#button_type' => 'button',
'#src' => $button_choose,
'#value' => $oid,
'#submit' => array('mymodule_record_choose'),
'#ajax' => array(
'callback' => 'form_node_voting_rebuild',
'wrapper' => 'container',
'effect' => 'fade',
),
'#prefix' => '

',
'#suffix' => '

',
);
return $form;
}

//NOW, I USE PREVIOUS FUNCTION:
//Creates a node form voting:
function mymodule_form_choosing($form, &$form_state, $node) {

if ($node->elements) {

if($node->help){

Making a taxonomy term block

Hi everyone,

I have enabled the out of the box taxonomy view which I can see has a page url of: /taxonomy/term/%

I have tagged a few blog posts already through the 'tags' cck field on the blog post content type, but they seem to use the standard url of: /tags/TAG_NAME

I have been looking around for a way to replace the default tagging system with a block of my own which links to a custom tags view page so I can style it out to my liking.

drupal 7 - how do i get the regions to show when rendering out page content from custom menu callback url?

made a simple thankyou page (e.g. /product/3/thankyou) based on a menu callback in a custom module. it renders out a page with some content after someone submits a review on a product. however, I want all my normal regions to show. any ideas?

How to custumize main_menu and created top menu

Hi, i'm newbie with Drupal. and I want to create my own menu, in fact, custumize main menu way to draw.
I want to insert a

  • with a image between every
  • from main menu item, how do i get all menu items and links, to draw my own menu? or is there other way to do that?
    Also, I created a new menu called menu-topmenu (its url), how do i get it ? how do i get items and links?
  • Pages

    Subscribe with RSS Subscribe to RSS - Drupal 7.x