hi. I set up drupal on apache in my pc. but all links are with "?q="... How can i remove this? I want http://localhost/user instead of http://localhost/?q=user/

Comments

Carl Ditzler’s picture

See the handbook.

Your server/apache need mod_rewrite.

Scem’s picture

ok then. thanx for your answer.. now i have anotha problem.. I want to add "Login | Register" part to the right top of the page (like www.snowboard-mag.com).. What can i do for this?

Aran Deltac’s picture

Edit your template. They all work a little different, so have fun.

Scem’s picture

its only about the template? or do i have to do something difficult ?

Aran Deltac’s picture

Just the template. On the snowboard site they most likely just edited their template. Which is just plain old HTML with some special tags that you can ignore. Either that or they went fancy and made the secondary links appear up top-right.

Scem’s picture

how can i do this? can u help more ??

Aran Deltac’s picture

go in to the templates folder in the folder that you installed drupal.
then find the directory for the template you are useing.
edit the template file that is within that directory.
if you know HTML it should be pretty straightforward.

sepeck’s picture

With bluemarine
Administer / themes
Click configure next to bluemarine

Click the Global settings tab

In primary or secondary links put this in.

<a href="/index.php?q=user" class="active">login</a> 

This will work with or without clean url's.

-sp
---------
Test site...always start with a test site.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Scem’s picture

ok. it really works. but I want it to be disappear when you logged in..
Somethin like this;
"Login | Register" before you Login
"Signed as Username | Logout" after Login

sepeck’s picture

If you are using primary and secondary links I do not think this is posible. It is probably doable with a custom block in phpTemplate, but I don't know how to do that.

-sp
---------
Test site...always start with a test site.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

sepeck’s picture

Depending on your template you should be able to easily add a link in the Primary or Seconday menu box. Themes\YourTheme.

-sp
---------
Test site...always start with a test site.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide