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

Customerror

Hello. I just downloaded the Customerror module, and it's working beautifully, with one exception.
After users successfully log into my drupal site, the customerror access page is visible, as opposed to the page of the site.

I am wondering if it is because I didn't patch my common.inc file, as I am running 4.6.5 and the only patch that came with customerrror.4.6.0 was for 4.6.3.

Does anyone have a patch for 4.6.5.. or should the 4.6.3 patch work regardless?

Thanks you so much.

block visibility setting php code - show only on acidfree nodes?

Could someone give me a little help with this please?

in 4.7 i want to have a block show up on all acidfree nodes.

What would be the php code for the block visibility settings?

The handbook page has an example for forums, but i'm not confident i know what i'm doing to extrapolate from that.

Cheers,

Ben

Forum Link not working(code and screen shots included)

4.7

I've created a link that fits in the $links section of my forum comments. If you're say reading comments in "General Discussions" and you want to go back to see the rest of the topics in General Discussions this is the link that will take you there.

The problem is instead of the link taking you back to:
http://www.samplesite.com/forum/3

It takes you back to:
http://www.samplesite.com/forum/tid/3

Here's a link to the screen shot:
http://www.toonopoly.com/forum2.htm

Here's the code in my Theme Template file. I put it in originally for the gallery and it works great so I thought I would add it in the forum because using the browser back button to navigate the forum is not what I want.

<?php
function next_prev($current_nid, $type, $btn_type, $label, $class) {
$query = db_query("SELECT tid FROM {term_node} WHERE nid = $current_nid;");
$tid = db_result($query);

$sql = "SELECT n.nid, n.title FROM {node} n INNER JOIN {term_node} t ON n.nid = t.nid ";
$sql .= "INNER JOIN {term_data} r ON t.tid = r.tid WHERE n.type = '".$type."' AND n.nid ";

switch ($btn_type) {
case "next":
$sql .= "< ";
break;
case "prev":
$sql .= "> ";
break;
default:
return NULL;
break;
}
$sql .= $current_nid ." AND r.tid = ". $tid ." AND n.status = 1 ORDER BY nid DESC;";

Using PHP includes from a non CMS site

Hello, I am a newb who got my site up and hobbling yesterday. I can't believe the ease of Drupal, but I have ran into a snag. I had a site set up, with google maps, which worked fine. I would like to take the php scripts from that site, and move them to Drupal, but Drupal is throwing errors when I try to use includes. I have multiple scripts, and the includes are almost a requirement. Is there any way around this?

Translate the forum?

Has anyone ever translated the forum (not individual topics, but the containers and the forums)? I've tried doing it with the categories that are given, but it doesn't seem to work...the second langauge comes up with "No forums defined"...

Here's what I have: http://www.sbbic.org/drupal-4.7.0/en/forum

Thanks,
Nathan

Combined right and left columns possible?

Hi,

I'd like to make a website as followings,

at top,

Content - Combined Right/Left side bar

but after a few combined side block,

Content - Left side bar - Right side bar

So, I want a few wide blocks on top of usual 2 side bars.

I looked for PHP snippets section, but couldn't find anything useful. Any help would be appreciated.

Pages

Subscribe with RSS Subscribe to RSS - Post installation