Problems doing a custom block in drupal - I've tried three methods, but can't get any to work
|
njehlen
Joined: 2006-04-25
Posts: 5 |
Posted: Wed, 2006-04-26 21:51
|
|
I'm trying to integrate Gallery 2.1 into my Drupal 4.6.6 installation. I've had good luck so far - the Gallery Block works great and I can access the embedded gallery just fine. I have all the URL rewrite rules turned off except "Show Item." But, when I try to do a custom block that grabs a Gallery image, things really go haywire. I've seen three different methods suggested to do this - I've tried each one, the results are below. I need to have a lot of control over the output of these blocks, which is why I can't use the block built into the Drupal gallery.module. Possible problem: I've seen in several posts that I should turn on the two blocks that the gallery.module creates. But when I turn on the gallery.module, it only creates one block for me: Gallery Block. What is the other one? Anyone ever run into this? Ok - here are the 3 methods with corresponding errors method 1: G2 filter But with the g2 input format filter turned on, nothing shows up - not even the block title. When i switch to another filter, the title and the text above shows up. I've checked and 18 is an ID of one of my photos. -------------------- I get this error: -------------------- (my gallery2 folder is called gallery2, and its on the same website as my drupal installation) I get these errors: Fatal error: (null)(): Failed opening required '/usr/www/users/username/websiteroute/includes/gallery2/embed.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/username/websiteroute/includes/common.inc(1816) : eval()'d code on line 3 The trouble (maybe?) is that its looking in the includes folder for my gallery2 installation - but I can't seem to figure out how to change where its looking. |
|
