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

Eeep. What did I do?

I'm thinking of moving my site over Drupal... so on the advice of some people in this forum I set up a test Drupal site on my laptop (Drupal 5.0 RC, Kubuntu Linux/Edgy, Apache 2, PHP5, MySQL 5.024a).

I started downloading and installing modules I wanted to play with. The first sets of modules were views and CCK.

Upon trying to activate CCK, I got the following... interesting message:


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 134763 bytes) in /var/www/ubersoft/includes/database.mysql.inc on line 377

Warning: Table 'ubwatchdog' was not locked with LOCK TABLES query: INSERT INTO ubwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Table 'ubsessions' was not locked with LOCK TABLES\nquery: SELECT sid FROM ubsessions WHERE sid = 'd86631674d3b8a117b72b9af404bc1ad' in /var/www/ubersoft/includes/database.mysql.inc on line 167.', 2, '', 'http://localhost/ubersoft/', '', '127.0.0.1', 1166497557) in /var/www/ubersoft/includes/database.mysql.inc on line 167

Warning: Table 'ubwatchdog' was not locked with LOCK TABLES query: INSERT INTO ubwatchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Table 'ubsessions' was not locked with LOCK TABLES\nquery: INSERT INTO ubsessions (sid, uid, cache, hostname, session, timestamp) VALUES ('d86631674d3b8a117b72b9af404bc1ad', 1, 0, '127.0.0.1', 'form|a:4:{s:32:\\"f10214c9aaffe4f8734d3b870cb438f3\\";a:2:{s:9:\\"timestamp\\";i:1166492744;s:4:\\"args\\";a:1:{i:0;s:14:\\"system_modules\\";}}s:32:\\"ff0a2229d6e5e4993ab0927f854e4e26\\";a:2:{s:9:\\"timestamp\\";i:1166493266;s:4:\\"args\\";a:1:{i:0;s:14:\\"system_modules\\";}}s:32:\\"df1517514c49ea10e0b9 in /var/www/ubersoft/includes/database.mysql.inc on line 167

Sort not working in "Views"

I have installed Drupal 5.1 and am running CCK and views.

http://yourleaders.org/drupal/all

I've tried to figure view out and read the documentation. And I've set up a little sample at the URL above.

On the site, it has the filters there, but when you try to use them, they just don't work; for example, if you just want to see views that have "Alabama" and select that, it still shows all listings.

Acidfree not showing photos

I posted about this before, but may have not given enough information...

My acidfree installation isn't working; when I go to an album that I've created, the thumbnails are just grey boxes, and when I click on the link in the middle of them, I get nothing - the title of the image, with no image.

The admin log gives me this message that in clicking on the link, I was going to:
http://www.saltspringconservancy.ca//active/0/84_thumb.jpg

How To Set Up A Disclaimer

I thought I'd share my solution to setting up a disclaimer that any visitor of my blog must agree to before viewing posts. There are three parts: creating a guest user + setting permissions, creating a login/disclaimer block, and making the 403 screen look pretty (optional).

* * * * Step 1 * * * *
Log into the Drupal server as the administrator and go to administer -> users. Create a guest user with a password. For example, Username=guest_user and Pass=guest_pass.
Go to administer -> access control. For the guest user, copy the anonymous user's checkboxes. Now un-check all the boxes for the anonymous user. This way, no one will be able to view content unless they are logged in (or have viewed the disclaimer).

* * * * Step 2 * * * *
Below is the HTML code for a disclaimer block. I replaced '<' with '-' and '>' with '-' as well. The values of guest_name and guest_pass are from Step 1. Also, the submit value for form-submit(op) must be "Log in". It doesn't work otherwise. You can hide this though and have a generic button, like below that says "I Agree".

* * Code For Block * *
-center-
Guest login is required to view website content. By logging in you are agreeing to the disclaimer:
-br-
-br-
-font size=4-
-a href="http://www.disclaimer_link.com" target="_blank"-
View
-br-
Disclaimer
-/a-
-/font-
-br-

-form action="?q=user/login" method="post"-

node title showing in a block?

Using either block.tpl.php (or a themed one) or php in the actual block, how can I get the title of a node to show in my block?

Anyway to get "Search" to NOT find a story?

I have a few "stories" on my website which I don't want to be accessable by the "Search" function. As in if a user uses the "Search" to look for a certain keyword, there are a few "stories" which contain that keyword which I do not want to show up as a result of that "Search". I want to hide a few pages from the "Search" yet keep the "Search" working for everything else. How might I go about doing that if it is even possible?

Pages

Subscribe with RSS Subscribe to RSS - Post installation