See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

# and & in Drupal links

The problems occurs when passing # and & in links to the Drupal link system. ‘#’ is heavily used in web to add 'anchor tag', and Drupal is not an exception; for comments, it depends on that. Further, external links may possibly include & and # which will be rendered incorrectly, or rather in unexpected way by Drupals link system.

Before going to deep discussion I will explain, the parts of the url:
for a url - http://www.domain.com/text/sample.html:8080

  • scheme - e.g. http:// - (the protocol suit used)
  • host – eg www.domain.com
  • port – eg 8080 - which would follow the link by a colon
  • path – eg text/sample.html - the total url part to the target from the host
  • query - after the question mark ?
  • fragment - after the hashmark # - eg: #comment-4 - for a url http://drupal.org/node/5#comment-4

However, users might have noticed that it renders the links correctly if it typed directly in the document. So the problem becomes only developers’ nightmare. Therefore, I would like to explain, how a link rendered as text in a page would be converted to a link. URL filter is doing this job.

function _filter_url($text, $format) , defined in filter.module, is doing the rendering. If we look at how it is done,

<?php
// Match absolute URLs.

Willing to hire someone that could master a drupal

If you visit http://www.bun-venit.ro and try to login at first you see a normal reaction. EG: login as admin, and the logs appear. No problem so far. The issue is that if you go to another ADMIN page such as blocks or options or whatever, you'll get the restriction code. Unauthorized user. Could this be happening because of the java script tags that I've added like adsense .... I don't think so.. since I've inserted NORMALLY the jscript through the admin panel the login page acts as described...

how to use drupal api?

i use drupal api function in a block

<?php

$res=taxonomy_select_nodes($tids = array(1,3), $operator = 'and', $depth = "all
, $pager = TRUE, $order = 'n.sticky DESC, n.created DESC');
print_r($res->fetch_array());

?>

but its showing an error

Parse error: syntax error, unexpected $end in /home/space/public_html/drupal/includes/common.inc(1342) : eval()'d code on line 5
how i can solve it?

Getting Autocomplete Data From An External DB

I need to create a form that has a text field that uses autocomplete. The data used for the autocomplete text would live in a database. However the database would not be the drupal mysql database - it would be another database (possibly even another database server and type - another server running MS SQL Server for example). I like the way that http://dev.vocalvoter.com as it appears to use the autocomplete functionality from core.

Which module would work best for me…

Which module would work best for me… here is the scenario?

Comment as node

It has been quite some time since I started using Drupal (from release of 4.7). From that point, the thing that I liked about Drupal is the node architecture.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core