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.
I'm quite new to Drupal and have just banged my head into a problem.
Hope someone has time and knowledge to help me out.
What I have:
A Drupal site (!).
When a user logs in she/he get access to a user-only menu entry and this entry takes them to a side where a google map is presented.
The user selects a car (cars is just as an example) from a drop down list (manually set up, currently)
By using AJAX a PHP script (lookupcar.php) is called and by mysql lookup (in a database update by another app) the position is returned
This is done every 10 sec to present live data
What I need:
Restrict the access to the lookupcar.php (now located in DRUPAL_ROOT/php/lookupcar.php)
Currently anyone can call www.foo.bar/php/lookupcar.php?carId=123456 (please don't give this link away as it's secret ;-) )
But users should be logged in before the php script should respond with valid data.
And I must be able to find out which user it is to restrict the access to which cars she is allowed to track.
What should I do?
Are there any kind of simple mock-up I could do?
What is the correct way of doing this?
Rewrite the code (small footprint for now) into a module? (Hints for this, please!)
I'm hoping some of you have some hints (or toturials :-) ) for helping me with this as this.
I am looking for a sleek and great looking design portfolio template like the WP themes (please, no wordpress bashing) Grid-A-Licious, tanzaku or SwissDessign.
I've searched hundreds of blogs and site but most prebuilt and good looking themes are only available from Cargo and Wordpress.
Of course, creating your theme is the best option but I need a fast easy theme for portfolio stuff. Any recommendation?
I need to write a lot of forms to work with database tables. I have some small 2-3 column reference tables where I need basic CRUD functionality. But also some very complex forms with database transaction over multiple tables.
Would I need to create all those forms manually with db_insert, db_update, etc? Or can I use a module? (Perhaps at least for the simple 2 column reference tables that just need insert, update and delete)
I want to theme a page template for a specific content type. I would assume that the naming convention on the file would be something like: page--contenttype.tpl.php OR page--node--contenttype.tpl.php
And that would probably work, though here is the problem; my content type machine name has an underscore: news_articles
I've tried page--news_articles.tpl.php, page--node--news_articles.tpl.php, and also tried to change the underscore with a hyphen like this: page--news-articles.tpl.php with no success.
Is it possible to seperate the Main page content block into different blocks?
I have two regions for text but drupal only has the option to render the main content to 1 region (through blocks).
My content type looks like this:
LABEL - NAME - FIELD - WIDGET
Title - title - Node - module element
Text - field_body_left - Long text and summary - Text area with a summary
Media - field_body_right - Long text and summary - Text area with a summary
Hello there Druplers, I am making a drupal-site for my gaming community (LG), drupal-7, and was wondering how do people implement
sc2Ranks in to their sites.