different type of anonymous user

Hi everybody,

i'm facing a problem now and i don't know what is the best and easiest wait to solve it.

I need to have different content display to anonymous users based on where they come from. i.e : some users will come from a news letter and some will come from direct link and those peoples would not see the same blocks / content.

My idea was to setup a subdomain for the links from the newsletter and setting up a role for anonymous using that url ( so i could filter content and blocks based on user roles ) but i don't know how to set a role to an anonymous user.

301 redirects adding ?q= for some reason?

I've recently converted an html site that I did a while back into a Drupal install so that others in the company can easily edit things. Everything went well enough, but I am now completely baffled by a .htaccess problem I am having.

I have redirected all the html pages as follows (just a snippet of them all) :

redirect 301 /sports.html http://www.udoschoice.co.uk/udo_oil_and_sports
redirect 301 /winwinwin.html http://www.udoschoice.co.uk/win_win_win
redirect 301 /buy-online.htm http://www.udoschoice.co.uk/shop/index.php
redirect 301 /locator.html http://www.udoschoice.co.uk/udos_oil_store_locator

These all work great. However, on our adverts, and other marketing info, we also direct people to udoschoice.co.uk/sports, and /locator - this is just done for the simplicity of not putting in a big URL. The redirects have been set as follows:

redirect 301 /sports http://www.udoschoice.co.uk/udo_oil_and_sports
redirect 301 /locator http://www.udoschoice.co.uk/udos_oil_store_locator

Now, when udoschoice.co.uk/sports, and udoschoice.co.uk/locator are entered into any browser, they redirect as follows:

http://www.udoschoice.co.uk/udo_oil_and_sports?q=sports
http://www.udoschoice.co.uk/udos_oil_store_locator?q=locator

webform code generator

Is it possible auto generate drupal form api code from webform? or reverse webform to drupal form api code? Is there any module for this?

Classified Missing

i am new to drupal, i downloaded Ed_classified module ver 7X . but while installing it,

Classified Ads Notifications

7.x-3.0-alpha1

A classified ads service: notifications
Requires: Token (enabled), Classified (missing)

Please help me to go further, thanks

OG "subscribe link" with D7/Panels

Hello,

I have a weird problem. I set OG up thanks to this tutorial : http://www.youtube.com/watch?v=CqMEY6WMmtE

The "link problem" I have below is added from 7:25 to 7:42.

All works well except for this detail : non-member authenticated users cannot see the "Subscribe" link. User 1 can see them. So I guessed this may be a permission problem. But if I provide the link to an authenticated user, he can then subscribe to the group using this link, with no "access denied" or stuff.

Why page callback functions called twice??? (on page generation and form submission)

Hi,
I am writing a custom module and I've stepped into this "issue". I need to put a form on page so I mapped a menu item of type MENU_CALBACK, and as callback function I call a function wich generates the output that I need on the page, form included, built with FAPI and drupal_get_form().
I need that some code is executed before form generation. (this is why I am not calling directly drupal_get_form() as callback function of the page)
I found out however that drupal executes the callback function twice!!! The first time when I go to the path and it renders the page (and this is ok to me). And a second time when I submit the form.
But this way it executes my code twice, and this is a problem.
How can I avoid this?
I've included the code of the simple form I am using to test it.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x