Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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.
We're releasing our modifications to the Letter to the Editor tool originally created by Downhill Battle Labs. Changes to the module include several functions which make management easier for the admin of the Letter to the Editor, as well as making the module compatible w/ Drupal's db abstraction layer. Using the Letter to the Editor tool as an additional module to Drupal, the admin can easily assign talking points to appear along-side the letter form, is given the ability to change text to explain the mission of the campaign, the addition of a graphical and numeric display of the number of letters sent, the addition of counting to which individual papers letters have been sent, and finally the ability to use a slightly modified version of the contact directory module to edit records in the paper database via the website interface.
A lot of work remains. First, the module is not very Drupal or CivicSpace-ish. Development standards are not met – these need to be met to make continued development easier. There are definite design limitations – we designed this version to work on a page within Drupal that does not use any blocks (no sidebars) to take advantage of horizontal space. Additionally, an external php mailer is used where Drupal’s built in capacity to send emails should probably be harnessed. Lastly, the tool only lets you run one campaign. The need to run muliple campaigns with a full feature tool set exists, but it needs to be spec-ed and coded. Anyone interested?