I want to insert three divs in the top content region of a Zen sub-theme. My question is should these divs go into mystyles.css, layout.css or should I insert them into page.tpl.php file? Or, better yet, should I create my own region above the top content region provided by Zen, and then define my new divs in my custom region?
I'm trying to find a way to add a user search button the to search block (box)
This would mean that people dont have to travel to the search page to search for a user. from any page they can enter a search term into the text field - then they would have two buttons to choose. One would search for nodes the other for users.
Any help or pointers would be great!
While recognising that this is a useful and practical idea, they won't develop it. But they welcome patches or custom modules, so I turn to Drupal community to see if anyone is willing to write no more than 50-100 lines of custom code.
The basic idea: users can select more than 1 content language, while (naturally) selecting only 1 interface language. This is going to emulate the way that languages behave on www.reddit.com (and youtube.com to some extent).
when you click on Order View under admin/store/orders/view, the order isn't showing the chosen attributes for that particular order. Is there a way to show the selected attributes in the order detail view?
I am surprised it isn't there by default, it's a rather important part of the order.
in typical PHP applications I used to use mysql_real_escape_string before I did SQL inserts. However I am unable to do that in Drupal so would need some assistance. And without any sort of function like that, user input with apostrophes is breaking my code.
Please suggest.
Thank You
My SQL is as follows:
$sql = "INSERT INTO some_table (field1, field2) VALUES ('$field1', '$field2')";