Apostrophes! Curly, straight, and UTF-8

I have a site that has some content created right in Drupal and some was created in Word and then cut-and-pasted in.

Apostrophes are displayed differently, depending on their source. When they were typed directly in Drupal, they are straight ' apostrophes. When they come from Word they are curly ’ apostrophes. The client want them all the same, straight.

I thought I could do a global search and replace using a module like Scanner, but doesn't seem to be able to tell the difference between the 2.

My research tells me that MS does stupid stuff with character sets and that making sure everything is set to UTF-8 should take care of it for me (force the curly to be straight).

I edited my page.tpl.php file so that the beginning of it looks as shown below, with the hopes that this would display all characters in utf-8 but this has not fixed it.


print $language->language; " xml:lang=" print $language->language; ">
header("Content-type: text/html; charset=utf-8");

print $head_title;
print $head;
<?
# data decleration
global $base_url, $theme_path;
?>

Drupal 6 Feed not pulling

I have been trying to figure out feeds, I am pulling a press release feed from a drupal7 site to a drupal6 site. I got the feed to come into the drupal6 site on my localhost, however I keep getting an error that "Download of site/news-room/press-releases/feed failed with code -1003."

I have searched and can not find any explanation. I went to test on our staging server and get the same message, however it won't pull the feed here.

Has anyone seen this or know of something that would help me figure it out?

Thanks
Tim

Need a User per Node time tracker for a long period of time tracking

HI all,

I am making an simple e-learining site and i have been asked to track and report the time of registered user have spent totally on a lesson (a node) . he can access the lesson in different days an times but i need the total time that have open the node

does anyone know how can i do this ? any module ?

need help here....

thanks in advanced

Kordou

Drupal 7 on multiple machines behind a load balancer? Here is how to add content to Master only.

Alright, so I hope my post helps someone looking for a way to make sure content is always added to master server behind a load-balancer.

Our current typical setup has Drupal7 on 4 servers:
Prodweb1 - File system | Master
Prodweb2 - File system | Slave
Proddb1 - Database | Master
Proddb2 - Database | Slave

Using Lsyncd to push content from Prodweb1 to Prodweb2, and from Proddb1 to Proddb2

Both File systems are pulling content from Proddb1 ONLY. Proddb2 is just a realtime backup of the master DB.

Now both Prodweb1 and Prodweb2 are behind a load balancer, so the typical issue we get is that authors logs in on www.mysite/user and add their content. The content is stored in the DB, so all good, but if the load balancer logs the user on Prodweb2, then the images / files are saved in sites/default/files/ on Prodweb2. Now when lsync crawls, it sees new files on Prodweb2 but not on Prodweb1, so it deletes those files totally.

To overcome this issue, here is what I did:
1. At my domain registrar (godaddy), created a new subdomain let's call it admin and pointed admin.mysite to the IP of Prodweb1 (not the load balancer).
2. I made a change in the settings.php file located at sites/default/settings.php to read the subdomain of the site, (I already have .htaccess configured to point non-www visitors to www), and change $base_url and $cookie_domain as follows:

Taxonomy Menu displays on just Parent link page

Hi,

My drupal website is http://www.uvassociates.in

I configured one of my existing vocabularies today, and enabled Taxonomy Menu for that Vocabulary, making the new menu links for terms of that vocabulary display under Primary Links -> UV Greetings (UV Greetings is a path for a node view.)

It worked and I could see all my terms with number of items in each term along with the term name. I've a superfish menu and the arrow started appearing UV Greetings showing it as expandable.

Uploaded pdf link gives 500 internal server error

Hi sir,I have created a content type with field upload pdf,I have uploaded pdf.When i click ,this pdf link.It redirect to 500 internal error.I have also check ,this pdf are available in files folder.Please suggest me ,how i can remove this problem.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x