Having problems installing Drupal? See the Installation Guide for more information.

Xtemplate: Need random background header image

I'm trying to display random background images in my xtemplate #header.

If it helps, I have http://cookedgamers.net/themes/xtemplate/images/banner/image.php spitting out file names of image files that I wish to use in the #header.

Does php run inside the .xtmpl file? I can't get php to run inside my .css file.

I feel I'm missing something very obvious. Can you guys help me out?

Thank you in advance.

All links on homepage go to index?

I have installed Drupal on a FreeBSD 4.9 machine. Everything seems to be working OK. I can access the homepage (index.php) with no problems, but when I click on 'Create New Account' I am sent to a Index page of my drupal directory. It turns out that every link on the homepage sends me to an index listing instead of the appropriate page. Any help would be greatly appreciated. Thanks.

Doug Penny

Okay, I was getting an error about permissions, of which I've learned is linked with htaccess

I'm using Drupal 4.3.1, and I was getting an error saying that I didn't have permission to view my index.php on my server.

So I searched through the forums and found someone with pretty much the same problem. Through this I learned that it's because of the .htaccess file that this problem exists.

How to have a form in a static page with PHP?

I am trying to use PHP and HTML Forms from a node that is a static page, with PHP enabled.

The node displays the text fields and the button fine, but does not process them when I click on the button. It redirects to the http://mysite.com/node page for some unknown reason.

How can I get this working?

Here is some sample code I am using:

$this_script=$_SERVER["REQUEST_URI"];

print "fname=$edit['fname'] $fname lname=$edit['lname'] $lname";

if ($edit["fname"] || $edit["lname"])
 {
 // Capitalize the name
 $full_name = ucwords ($edit["fname"] . " " . $edit["lname"]);
 print "Hello! Nice to meet you $full_name...";
 print "Glad to see that you are using my form!";
 }

$form  = form_textfield (t("First Name"), "fname", "", 30, 64);
$form .= form_textfield (t("Last  Name"), "lname", "", 30, 64);
$form .= form_submit    (t("Process"));


print form($form, "post", $this_script);

Any help appreciated.

[xtemplate] a hoover menu tag?

hi

within the xtemplate.css as used on drupal and my site, where can i alter the a link hoover for the users menu (on drupal, see upper left menu and hoover over a link). on drupal (and my site) you will get the browsers default colors (most likely dark blue).

i coulnt find a stylesheet entry for altering the values in this menu for hooverd links. anyone can give me a hint?

Preventing anonymous users from accessing full content of a story

I'd like users to have to register to view the full content of a story. So the "read more" link after a teaser on the front page could lead to "Please register to read the full content of this article." (I can change the error message in the appropriate module, I don't need a new page for this as far as I can tell).

A "bug" seems to be causing this as reported at http://drupal.org/node/view/1214 but I don't know how I'd replicate it as a "feature"!

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal