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

How to hide subproducts?

I generated subproducts, but I want searchers to see the main product node, not the subproduct nodes. Is there any way to hide the subproducts from searches and category browsing? I tried unpublishing them, but that caused them to be removed from the menu on the main product node.

help! social networking - cck, nodeprofile, and updating nodes through reference

I am pretty new to Drupal, using 4.7 - I am tring to do the following, it may be totally off, or there may be a significantly easier way to do it.

I am trying to use a bit of social networking fun with a site. I am using CCK and nodeprofile to build userprofiles. I have nodereference installed also.

I have a profile CCK node built. Part of social networking is to allow only specific text to be entered into fields that you want to use to link people together.

My userprofile CCK node has a field which asks for the school the person graduated from, i wanted only specific school names to be used, fortunately there are only 20 or so for the people i am doing this for. So I created a taxonomy (catagory) of schools, really with no other fields yet. I created a bunch of nodes within the taxonomy, and then in my CCK userprofile node, created a Node Reference text field with autocomplete to reference the taxonomy. Now when people start to type in the name of the school, it gives them the limited choice.

That all works fine and dandy, but what i need it the following; when you view the new cck userprofile node, the school name is hypertexted and links you to the schools node...which basically contains nothing. What i am wondering, is if a person choses the school node in the CCK userprofile, can i have it add his/her name to the school node, so that when someone clicks on the school node, they see the school name, and a list of all of the people that are on the site who attended that school (then ideally be able to click on that, get sent to the user node and add them to the buddy list)

Disable commenting after certain amount of time

Since checking comments is a lot of work (and I hate checking comments for old posts), I would like the ability to disable comment for nodes that are older than two weeks. The existing comments should still be readable.

So I would guess a simple hack could hide and disable the commentform when the publishtime + "comment time" is reached.

Cached Links Like Google

I am going to start caching pages like Goggle when I link to a news item. I hunted around the downloads and forums but did not see any mention of this in anyway. Can anyone point me to Module or snippet that does This. Looks like flexinode my be my best bet.

Table Manager Import?

Is there a way to import data into a Table Manager table (Drupal 4.6.x), for example from a .csv file?

help needed with a specific template.php file problem

HI there, I'm trying to add a new section to my template.php files. But the messages error I get is this:

Fatal error: Cannot redeclare _phptemplate_variables() (previously declared in /homepages/46/d117124046/htdocs/jedebogue/www/chiens/themes/chien3col/template.php:2) in /homepages/46/d117124046/htdocs/jedebogue/www/chiens/themes/chien3col/template.php on line 137

So it's true that the function is already declared, and the new function i'm trying to add is the following:

<?php
// $Id: template.php,v 1.4 2006/08/02 11:18:12 frjo Exp $

function _phptemplate_variables($hook, $vars) {
switch($hook) {
case 'node':
$vars['storylink_url'] = check_url($vars['node']->vote_storylink_url);
if (arg(1) != 'add' && arg(1) != 'edit') {
$style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? '_alt' : '';
$vars['vote_up_down_widget'] = theme("vote_up_down_widget$style", $vars['node']->nid, 'node');
$vars['vote_up_down_points'] = theme("vote_up_down_points$style", $vars['node']->nid, 'node');
}
$vars['vote_storylink_via'] = theme('vote_storylink_via', $vars['node']->vote_storylink_url);
if (arg(1) == 'top') {
static $count;
$count = is_array($count) ? $count : array();
$count[$hook] = is_int($count[$hook]) ? $count[$hook] : 1;
$vars['seqid'] = $count[$hook]++;
}

Pages

Subscribe with RSS Subscribe to RSS - Post installation