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

HDI: display a link when the user is not logged in?

Got an email earlier asking this:

>Do you know if there is a way to get info about a user in the template?
>I need to add a link in the page.tpl.php only when no user is logged in.
>The $user seems to be empty.
>
>I'm using Drupal 4.6 with PHPTemplate engine.

I'm not sure if you mean when the users are not logged in, or when there is nobody logged in.

Inserting a link when a user is not logged in can be done by inserting the following in your page.tpl.php or node.tpl.php etc. :

HDI make a block visible to only logged in users?

I am using drupal 4.7 and there is a new 'feature' that I want to take advantage of and it is in the "Show block on specific pages". There is now a section for putting in code that returns true, and if so, the page is shown, but I have tried a few things without luck.

I have created a couple of pages in the past on 4.6 that worked ok, but I want to take advantage of the new 'feature'. So if anyone can provide some sample code for that block I would be really happy.

Thanks

Display (n) blog entries of node's author but custom layout

http://drupal.org/node/23231
This goes over how to pull the node view for each blog entry of a specific user id.

I want to know how to get the current node's author's user id. $submitted returns an html string with lots of extra information in it. I just want to get the node's author's user id.

need redirection advice

I have been working on a module that needs to redirect to a different page after processing. I have tried to use drupel_goto() but I find that it does not work to send to pages with options.
ie I need to go to page "website/sCal/1/2" sCal is the menu callback and 1 and 2 for some processing options. The goto works for sCal on it's own but wont pass the extra 1/2 options.
Any ideas on how to resolve this?

Poll.module: multiple selection

In poll.module user can select only one answer via radio-buttons. But how can i patch poll.module to enable users to set multiple oprions via checkboxes?

Please help!

Create an "external" PHP page

In my Drupa site I have to create a sequence of forms and a subseguent PHP pages.
My first (actual) solution is to put all forms and pages on the nodes, it works fine but this solution is not appreciated by mt client (he wont to alter/create pages without knowing anything about nodes etc.)
My question is ?
It's possible to link external php ot HTML pages in a drupal site mantaining sidebars, menus, logo, ...?

Thank you

Pages

Subscribe with RSS Subscribe to RSS - Post installation