Image URL changes automatically following the page url

The images path at: /sites/default/files/icon/facebook-icon.png

When you are at Home, image path is: mysite.com/sites/default/files/icon/facebook-icon.png, Correct.

But, when you at other page in the same site, for example : mysite.com/search/node, the image path change to : mysite.com/search/node/sites/default/files/icon/facebook-icon.png, so the image not show up.

Every page url use 2 paths (mysite.com/content/nodetitle, mysite.com/forum-topic/nodetitle, mysite.com/faq/nodetitle) it always happen.

How to solve this problem?

I'am newbie

How to generate the encrypted Drupal7 password of a user from an external script?

Hi,

I'd like to generate the encrypted password of a user from a PHP script external to Drupal7.

I've tried this code but the output of the echo command changes each time I execute it.

Is it possible to generate the encrypted password with a script?

<?php
require_once '../includes/bootstrap.inc';
require_once '../includes/password.inc';
echo user_hash_password('11111111111');
?>

Thank you very much

cld

Views_Data_Export - .doc template - css help

I am looking to export a view to .doc

included in my export is a table. I am looking to set the table properties, text wrapping to NONE when exported to word.

I am using the views-data-export-doc-header.tpl.php file to add css style

I cannot find any css to apply NO text wrapping to an entire table. Can anyone help?

Empty fields are not being updated for node edit forms - D7

I'm facing a weird problem in one of our Drupal site on production server. The null/empty values for the fields (like textfield/textarea) are not being submitted in any node edit forms.

Let's say I've a text-field called "name" and having 'Krishna' as value in that field. If I emptied the field and submit the node, the previous value (Krishna) is being updated (In other words the I can't see any change after submission but getting 'node has been update' successful message).

Domain registered thru Google, site hosted on Hostmonster, can’t get email to work

This may be a very niche problem, but I’m hoping someone can help. 

My domain is registered thru Google Domains. My D7 website is hosted on Hostmonster. 

I have email for the domain configured (tested and working properly) thru Google Domains. 

On my Hostmonster-hosted website, I use that email address as the site address, the contact form, etc. Everywhere I can find that requires an email address. 

Ultimate Cron : frequency

Hi.

Using Ultimate cron, I'm not sure about the frequency of some of jobs.

Of course, update can run once a day at 4 in the morning, but what about modules like :

- aggregator_cron
- queue_aggregator_feeds
- captcha
- ctools
- honeypot
- XML sitemap

Is there a page where I can find suggestions or "rules of thumb" ? If not, suggestions would much appreciated.

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x