This forum is for less technical discussions about the Drupal project, not for support questions.

getting session user info on custom php page

If I create a new page in my drupal system with mostly php code in it, can I and how I use the global $user variable to retrieve the username (field "name" in the users table) ?
The very username of the person connected (so it's in the session or something ?) so when he goes on that page i'll be able to show him a list of clients he's in charge of , this list coming from an external DB that can link his username with it (actually an oracle view).

and what would be the most efficient/elegant way to have this other external oracle DB connection in my drupal page.

drupal site -> static cdrom

I'm just about to look into how to transform my site (http://100777.com) into a static nice little collection of folders and .html files that could be put on a cdrom for instance. Before that I've decided to see if anyone's already done something like this? Didn't find any threads on this yet, perhaps I'll google around in a while.

How can you add recent posts like that?

How difficult is adding the recent entries of Blogs, weblinks, events and such to the main section of your site like in the following URL?

http://urlgreyhot.com/drupal/

Does it involve hacking so many things, or simpler than it looks?

Can you guys pls point me in the right direction?

KC

weblink import script

Does anyone have a script which imports many weblink nodes at one time instead of entering them one-by-one. When you try to add hundreds or even maybe thousands of links, it is not a fun job to sit there and copy paste over and over and over:-)


I already tried installing the node import module but unfortunately it did not work. I asked a question about a month ago but nobody answered. http://drupal.org/node/view/7714


Using Drupal for 'Local leisure activities'

Hello,

I'm trying (this summer) to develope a web application that can hold a system of keeping local leisure activities (theater, gigs, exhibitions,...) up-to-date. This is an idea that I had for some years, and I even used to keep alive the web version of the local activities zine. That was years ago when I hadn't even heard of server programming (read php + mysql).

Mail to announce topic comments

Hello,

Is there any way of get an announcement of comments posted to my topics?

(If not I think it will be a help, simply not to have to remember all the topics I've posted and have to check every day (hour?, minutes?) for comments to themm.)

Thanx for your attention,
hip

Pages

Subscribe with RSS Subscribe to RSS - General discussion