Just testing out some code... and learning php at the same time :)
if ($user->uid) {
print $user->uid;
print " : This is your user ID";
}
elseif ($sid = session_id()) {
print $sid;
print " : This is your Session ID";
}
This code should print out your UID if logged in or your session id if you are just a visitor.... right?
Why then if I pasted this in a page with php input, I always get my session ID but not my User ID when I'm logged in?
Hi, for the last few months I have been looking for a CMS for a new website I want to make, its for a flower export company.
Now I have installed and tried about 7 differant ones so far but running into Drupal seems I have found what I need :)
Let me explain what I need this website to do for me, it has to be pretty simple, but needs away to let customers place there order for flowers online, they get invoiced so no need for a payment thingy.
I have made a modification to the LDAP_integration Module that for users to login using "Friendly Names", nicknames and such. The reasoning behind this is that the CN of a user in an LDAP database can sometimes be fairly cumbersome as most of us know, I for example would be Jeremy G. Devoid on the server I am connecting to. To make sign-ins easier I have created a "Friendly Name Lookup" additon to the LDAP module, it is optional and the admin can turn it on or off. The look up is based on key fields, on the LDAP server, that he admin desires, such as the cn and nickname fields.
Im write a book module with extra fields and on site of the book have 1 or more nodes.
I need help to view more then 1 nodes on a page.
Not a blocklist im need a nodelist with the Body and the Buttons to edit and del,
with the same function range on view.