This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

display discription instead of page title

HI there , i have installed the module taxonomy term,
right now i have some terms defined, and this calls up a certain theme.
each page has a term which falls on a certain theme
like this i can make sub sites in one site.
Now that i have the terms defind and make the pages, i get title of the page as page title on the site.

for instance i have the term "clean" and i make a page called "clean_main". I Get clean_main as title of the page.

i gave the page also a discription like : "Intro to the clean site."

Private Message in profile shows: "p" "p".

I just installed Privatemsg module, its seems to be working fine, but when going to view my profile or a members profile, under "Private Messages" heading, it shows "p" "p". Any ideas what p and p is?. I was lookin for a link under this heading that would say, "Send a private message to this member".

Thanks in advane.

hook_menu code not working

Why doesn't this work?

/**
 * Implementation of hook_menu()
 */
function gt_calendar_menu($may_cache) {
  global $user;

  $items = array();
  if ($may_cache) {
    $items[] = array(
			'path' => 'admin/settings/gt_calendar',
			'title' => t('calendar'),
			'callback' => 'gt_calendar_admin',
			'access' => user_access('administer calendar')
		);

    $items[] = array(
			'path' => 'gt_calendar',
			'title' => t('Calendar'),
			'callback' => 'gt_calendar_page',
			'access' => user_access('access calendar'),
			'type' => MENU_CALLBACK
		);

		/* used in block view only */
		$items[] = array(
			'path' => 'gt_calendar/add',
			'title' => t('Add an Event'),
			'callback' => 'gt_calendar_add',
			'access' => user_access('add events'),
			'type' => MENU_CALLBACK
		);

		$items[] = array(
			'path' => 'gt_calendar/edit',
			'title' => t('Edit an Event'),
			'callback' => 'gt_calendar_edit',
			'access' => user_access('edit own events'),
			'type' => MENU_CALLBACK
		);

		$items[] = array(
			'path' => 'gt_calendar/delete',
			'title' => t('Delete an Event'),
			'callback' => 'gt_calendar_delete',
			'access' => user_access('edit own events'),
			'type' => MENU_CALLBACK
		);
  } 
  else {
    theme_add_style(drupal_get_path('module', 'gt_calendar') .'/gt_calendar.css');
  }
return $items;
}

If I go to "gt_calendar", then gt_calendar_page is correctly accessed.

GameAPI Map Definition: Coordinates or Names?

In my previous post on the GameAPI (original RFC here), I talked about map making and the concept of a room: a single location, regardless of size, that could contain other, smaller, locations. A house, being one large "room", could contain three smaller rooms, for a total of 4. Re-read my earlier post, as its discussion of the user-interface to these rooms will become a key consideration in the following discussion.

Progress on the GameAPI has been slow but steady, and I've only two or three remaining TODO items for the character creation framework before I'll consider it "done enough for now". Next up is room definition and map making, to which the earliest question is simply put: coordinate-based or unique names? I've decided on coordinate-based, and the following is a meandering set of reasons why.

A coordinate-based system would place each room in a simple three-dimensional space, such as 15,14,0. 15 and 14 are the x,y coordinates, and z, here 0, would refer to the vertical plane. If 0 is "ground floor" of the inn, then 1 would be the second floor, and -1 would be its basement. Coordinates would be unique to a namespace, specifically, the include file they've been defined in. If rooms/inn.inc defines 15,14,0, it has nothing to do with the 15,14,0 in rooms/forest.inc. Likewise, the measure of the vertical plane is unique to the namespace: for the inn it may refer to floors, but for the "overworld", it may refer to inner-earth, "outside", and space.

All sorts of problems with privacy by role!

I could cry! I've got a site that is due to be launched tomorrow and I've not noticed this problem until 5 minutes ago - and I know that it's a biggie!

If I search for a taxonomy term, or any content (apart from users) then I get the following error:

user error: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
query: SELECT DISTINCT i.sid, i.type FROM search_index i INNER JOIN node n ON n.nid = i.sid INNER JOIN node_access na ON na.nid = n.nid INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (na.grant_view = 1 AND CONCAT(na.realm, na.gid) IN ('all0','node_privacy_byrole_role1','node_privacy_byrole_user0')) AND (i.word LIKE '%ipsu%') in /home/sites/ourcomms.org/public_html/includes/database.mysql.inc on line 66.

Here are the weird differences:

1) Searches for users are fine
2) Searches for taxonomy terms are fine, unless there is a result. In that case, the result is displayed along with the error above.
3) Searches for content/nodes are fine unless there is not a result. In that case, the result is displayed along with the error above.

In all honesty, I am so knackered and I have so little time to finish this, that I have half a mind to simply turn off the error messages! Obviously, I would rather solve this instead.

How to keep taxonomy changes in sync between two nodes

Hi! I'm creating a module which defines a 'minutes' content type. This can only be attached to an event in the calendar, and should inherit a bunch of information from the parent. In my version for 4.6, I didn't worry about the taxonomy information changing in the parent (partly because I didn't think about it, partly because I was writing custom view methods, which were able to join up with the parent). However, for 4.7, I'm trying to rethink how I did a bunch of stuff, and I'd like to start using Views in place of some custom view methods.

My question is this: what is the best way to keep up to date with changes in the taxonomy of the parent event?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions