This forum is for assistance with theme development.

Creating a custom login box from scratch on front page of theme

This is one of those rare cases where I feel like I've tried everything! Help would be much appreciated...

I have created a custom theme. I'm using front.tpl.php to have a completely different layout for my home page. On it I would like to place a custom login box, which toggles to a My Account / Logout link when the user is already logged in. All other login boxes are working fine -- it's just the one on the home page that's giving me grief. It simply (re)loads the page without logging the user in.

I am (well, was, as I have it disabled now to try and get this working) using LoginToboggin. I tried the snippet on this page with no luck. I'm using clean URLs, so I updated the form action to match. No luck. I grabbed various form/field properties from viewing source on other login pages. Still no luck. I checked out the user.module file to see where Drupal gets its form settings from and saw this:

$form['#action'] = url($_GET['q'], drupal_get_destination());

If I'm reading that right, it seems that Drupal gets the form's action from the hidden page destination field itself. *scratches head*

Anyway, that's a whole lot of rambling about what I've done, but I have no idea what else to try. How does one create a login box from scratch??

Anyone who would like to take a look is welcome to contact me for the URL.

4.7 Regions and Text Wrap

I'm trying to get "text wrap" to work on 4.7 regions. My layout is :

print $content;

if ($right1) {

print $right1

}
if ($right2) {

Theme tutorials manual is very bad

Hi does anyone have good links for drupal theme development and or customization?

I have read the manual but it is hard to read, and "impossible" to understand, drupal sound great, but why is theming so hard on drupal and so easy on toehr system?

CSS Problem Driving Me Crazy

Hi

I'm building a freebie site for a client using 4.7 and the Burnt theme. http://www.traditionalmedicinescongress.com

Weird problem - search button text missing

It started when I caused a PHP parse error while editing a theme. The text for the search button went away so I now have a tiny button with no text in it :)

I can't tell where the string is. The theme calls it search_button_text. It doesn't look like it's in the database; I think it's some local variable. I restarted htppd and that didn't fix it. Doesn't that cause PHP to restart?

Changing themes and changing languages don't fix it.

Immediate CSS change?

I've been creating themes for Drupal lately... and I'm facing the problems with CSS when I've uploaded the themes and enabled it. When I change the CSS inside the webserver, my web browser doesn't immidiately apply the change. I need to wait for several weeks before the change takes effect. The other way i use is by changing the $styles and the style.css names.

Is there a way to make my change to CSS immediately takes effect to the page?

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development