Drupal is up and running but how do I ...?

drupal_get_html_head() question

is there a way to theme drupal_get_html_head? I basically want to make my drupal site html4.01 transitional which means removing that pesky slash at the end of the meta tag.

We use the $head variable in our page.tpl.php often (to include javascript etc...) so hardcoing into page.tpl is not really an option (nor is it a good thing in general). And I certainly dont want to make changes to the drupal core

Thoughts?

Multiple Edit or Batch Editor for multiple pages

I am new to drupal (comming from Movabletype). I am looking for the batch editor feature, which allows me to e.g. mass change the category of multiple posts/nodes at ones.
Also for mass changes on Title, author or mass deletion.

Could anyone point me to where it is in Drupal?

Analyze URL with explode() function. Tricky Question

Hi Guys,

I am using this code to break out my URL into subsections:

$uri_request_id = $_SERVER['REQUEST_URI'];
$section = explode("/", $uri_request_id);

I am trying to say if($section[2]==$user->name) then do X.
This works except when pager creates a URL like http://example.com/blog/username?page=1

Views Exposed Filters cause errors in IE but not FF

I am using drupal 4.7 with the latest views module and I am getting this really weird behaviour in IE. I am developing this on Apache on Windows with MySQL 5 and have also tested it on Apache on Linux with MySQL 4.1.

My views seem to be fine when I use Firefox, but if I expose any of the filters I get a string of errors in IE (not FF) when I try to access the view, like:

warning: mysql_real_escape_string() expects parameter 1 to be string, array given in C:\Program Files\Apache Group\Apache2\htdocs\mysite\includes\database.mysql.inc on line 349.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND '')' at line 1 query: SELECT count(DISTINCT(node.nid)) FROM node node INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'term_access'))) AND (.tid AND '') in C:\Program Files\Apache Group\Apache2\htdocs\mysite\includes\database.mysql.inc on line 120.
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in C:\Program Files\Apache Group\Apache2\htdocs\mysite\includes\database.mysql.inc on line 349.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND '') LIMIT 0, 25' at line 1 query: SELECT DISTINCT(node.nid), node.title AS node_title, node.changed AS node_changed FROM node node INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'term_access'))) AND (.tid AND '') LIMIT 0, 25 in C:\Program Files\Apache Group\Apache2\htdocs\mysite\includes\database.mysql.inc on line 120.

Surround banner in a Div in drupal CSS?

Hi, I don’t know much about stylesheet and I don’t want to break my drupal either, not for the seventh time anyway.

I have a banner that appears in my node pages, the banner is in a standard table, and it aligns to the right.

I was advised to ”Surround banner in a DIV instead, and have it floating to the right in CSS”.

So, I have a code (banner) that’s in the standard table. Can you please show me the DIV that surrounds it, and make it float and modifiable in CSS?

Thanks

How do I make weblink node titles link externally?

I found one post when searching, but I'm no php expert and I'm not sure how to implement what was suggested in this post: http://drupal.org/node/41233.

What I'd really like to do is just modify the weblinks module so that all weblink nodes have titles that link externally. Anyone know how to do this?

Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Post installation