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

How do I prevent specific Forums from appearing within the "New forum topics" block?

Does anyone know how to prevent specific Forums or Forum Containers from appearing within the "New forum topics" block?

Situation:

I have created a forum section for called "User created websites" for users to post a link to their website.

The problem I have is that I do not want these specific postings within this "User created websites" forum to show up with all other posting in the "New forum topics" block.

Is there any way to filter out or prevent posting within this forum or forum container from being displayed within the "New forum topics" block?

Presenting custom content to users that have created a certain node type

I'd like to have some helpful links appear to users that have created a custom flexinode type. There seem to be two ways to accomplish this, one would be having some function that adds the user to a new role if they create the node type, the other would be to create a bit of php that looks to see if the current user owns any nodes of that type and then return the content. Any tips on this?

SQL count from 2 tables w/ 1 query?

I currently have this code, but I was hoping to combine it into 1 query... I just can't figure out how to do it. Anybody know?

$result1 = db_query("SELECT COUNT(*) from {group_members} WHERE uid = '%d' && gid = '%d'", $user->uid, $node->gid);
$result2 = db_query("SELECT COUNT(*) from {group_requests} WHERE uid = '%d' && gid = '%d'", $user->uid, $node->gid);
if (db_result($result1) == '0' && db_result($result2) == '0') {

Thanks,
Billy

move the primary tabs in xtemplate

I'd like to move the primary tabs up so they're above the node title and below the breadcrumb. I'm using xtemplate. does anyone know what file I should edit?

Translating the month name in the event module.

I would like to translate the names of the month to a different language in the event module. Changing the name of the days was pretty easy by just changing the $weekdays array. Strangley any changes to the $months array do not effect anything?! Does anyone know where I can change the names of the month?

Google Adsense as a php include

I currently post the adsense script into each node and set the preview character length for content to be 400 characters so that on my mainpage no adsense shows up but once you go into the node you see ads. However, the problem with this is if I want to change the text or background color I have to do it on every node. I have been trying to do that this as an include file but it breaks the preview section on the mainpage. So instead of being just 400 characters it displays the entire contents of the node along with the functioning adsense.

Pages

Subscribe with RSS Subscribe to RSS - Post installation