Drupal is up and running but how do I ...?

Hide menu items based on roles

I've searched through the forums and the handbook but have not found a direct answer to my problem. I have created a new menu and two menu items under this menu. I would like one menu item to show up when the person is anonymous, and I would like to show the other when the person is logged in (i.e. only one menu item showing up at a time). I have found this, http://drupal.org/node/27690, which seems close, but I'm not sure which file the code should physically go under (menus.module?).

main page lost

I lost my main page at http://www.shreemaa.org/drupal

here's the error: warning: call_user_func_array(): First argumented is expected to be a valid callback, 'node_page' was given in /home/httpd/vhosts/shreemaa.org/httpdocs/drupal/includes/menu.inc on line 354.

I have no idea what happened. I was reading a content page and 'zap' the page failed and so did the home page.

can someone help?
I need my home page back.

thanks in advance.
susan

Content created in a forbidden category

Using Drupal 4.7 beta3 for testing and exploring.
Checking the Taxonomy Access Control module (the latest release at this moment).

I have taxonomy terms for Club A and Club B, in a vocabulary which applies to "stories".

Clubs
- Club A
- Club B

User X is a "member of Club A" (a role). He should be able to read both clubs but only post in Club A.
So, I go to the tab Category Permissions, in the entry for the role "member of Club A", and I check the boxes:

Clubs: View
Club A: View, Update, Delete, Create
Club B: View

can't login on my drupal

Hi

I got that weird problem this afternoon, since I tried to change my base_url in settings.php, which didn't work. (I was doing that because of stats, since I use redirections)... I'll get a domain name so if someone can tell me if it's the right way to do it, I'd appreciate.

The problem is that now, nobody can login, request a new password or create a new user...maybe more problems.

Someone told me to flush drupal cache, I did, no change...I tried to change the password of my user with the following :

HDI (return of the backslash): take LaTeX input in body -> make text file with correct "\"s

Hi

My goal -> allow a user to enter the content of a section in LaTeX markup in the body of a book
node. When its saved, using nodeapi in my module, I want to create a file in /tmp/ with the LaTeX
body, then run LaTeX on it, and eventually upload a created ps or pdf file to the site.

My problem is the backslash.

My module has settings, two textareas which take the LaTeX header and footer,

\documentclass{article}
\begin{document}

and

\end{document}

respectively.

These are stored correctly and show up as I expect in the textarea. Then I added a call in nodeapi to my function:

  case 'insert':
        db_query('DELETE FROM {fhsstadmin}_syllabus WHERE nid = %d', $node->nid);
        db_query("INSERT INTO {fhsstadmin}_syllabus (nid, syllabus) VALUES (%d, '%s')",$node->nid,$node->fhsstadmin_syllabus);
         _prepare_ps_file($node->body);
      break;
    case 'update':
        db_query('DELETE FROM {fhsstadmin}_syllabus WHERE nid = %d', $node->nid);
        db_query("INSERT INTO {fhsstadmin}_syllabus (nid, syllabus) VALUES (%d, '%s')",$node->nid,$node->fhsstadmin_syllabus);
         _prepare_ps_file($node->body);

and my function looks like this:

function _prepare_ps_file($body)
{
$longtext = variable_get("fhsstadmin_bookheader","");
$longtext .= $body;
$longtext .= variable_get("fhsstadmin_bookfooter","");

browse profiles...

is there any way to make the users brows eachother profile.. i mean is there any way to make up a good search engine seeking for specific details in profiles like age, country, so users can add eachother later as friends?..

Pages

Subscribe with RSS Subscribe to RSS - Post installation