Problem with building the path of a file in Drupal 7 in order to copy IT

Hello !

I'm developing a Drupal 7 theme. In the theme-settings.php, when submitting the form's setting I have to copy a file situated in

sites/default/themes/my_theme/folder_1/file.txt to
sites/default/themes/my_theme/folder_2/file.txt.

Using file_copy($source,$destination) i get an error like this. "The specified file could not be copied, because no file by that name exists. Please check that you supplied the correct filename." . I'm shure I'm missing something when building the path.

Ajax Views on Dashboard cause loading wrong non admin stylesheets after using exposed filters

Hi all,

i'm experiencing a strange issue related to the dahsboard having Ajax Views Blocks with exposed filters placed on it.
If i first load the Dashboard everything is fine. Only the stylesheets of my admin theme are loaded. If i use an exposed Filter of my View (uses ajax) and the request completes my dashboard fontsize seems to decrease.

I then looked into my loaded stylesheets (using firebug) and recognized that drupal has loaded the stylesheets of my frontend-theme next to the stylesheets of the admin themes.

How to set a session value manually in a module

Hi everybody

I am writing a module that can be run as anonymous user and that can be used to set the session id manually in order to "authenticate" using a valid session id. Okay, maybe this is not clear, so let me explain an example usage...

Idea

I log in (the usual way) using Browser A. There I get a session
SESS2bc56b2ec5a574c31cd8c8dccab1e094=zELYLkNSHjaTo0tPmpWf7-WZ7bQx9xIyxf5QVbksi7U

User registration: creating mandatory gender/city fields

Hello,

I'm trying to move from phpBB 3 to Drupal 7
(there seems to be a script for transferring users...)
and have successfully installed it at a
CentOS 5.5 + PostgreSQL 8.4.7 + PHP 5.3 machine.

I've chosen minimal installation and then enabled
following modules: Block, Image, Locale, OpenID
(hope to add Google accounts later...) and Search.

My problems are:

I don't know how to enable Gender/City fields
and make them mandatory.

Also I'm worried about spammers registering at my site.

Is it possible to customize the "add content" page? E.g, rearrange the options in a more compact way?

Currently the options for adding a content are scatterred over serveral option groups like: Menu Settings, Publishing Options -- it looks complicated. So I would like to rearrange the options. I don't know if there is any module or theme for doing so?

Thanks!

Some taxonomy terms missing or not found for anonymous user

I am at the end of my tether with this one and no clue what causes it or how to fix it, the issue is as follows:

I have created a vocabulary (Membership Levels), and added 3 terms to it (Standard, Premium, Pro). This vocabulary is used as a field on the users profile and also in a custom content type i created (Quake Live Map).

When i am logged into my site i can see these vocabulary terms no problem, but when i log out i can only see the term 'Premium', both 'Pro' and 'Standard' are missing from /taxonomy/term/[id] (giving a page not found error).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x