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

Drupal in a subfolder and default URL

I have Drupal in a subfolder, /folder

I also use the Path module to specify custom page path, so it ends up with

custom-page-name

When I insert links to pages, I use

/custom-page-name

Naturally, it directs to domain.com/custom-page-name.

How do I make it redirect to domain.com/folder/custom-page-name without changing all the paths on the site? I plan to migrate to the root folder soon.

I have tried editing the base_url in the settings.php file and nothing.

Contextlinks

Hi

Do you know any problem given by the contextlinks module ? On my settings page icons are not shown. Is there any solution ?

node pirvacy by role - user problem with editing node

I've installed module node privacy by role. Enabled it in modules then in admin -> settings -> node_privacy_by_role
I've setted permissions for node to be viewed by one role and viewed and edited by another.
There're no porblems with viewing role. But with editing it is. When the user logs in. And tryed to edit this node it gets: "This document is being edited by "" as of 3:01 am on January 1, 1970." on top of front page and can't edit the document.
What I do wrong?

comments.module code different between 4.7.x and 5.0.

When I was using 4.7.x version I just implemented the following changes to comments.module to simply remove the ‘reply’ link from the user the comments.

Before:
$links[] = l(t('reply'), "comment/reply/$comment->nid/$comment->cid");

After:
// $links[] = l(t('reply'), "comment/reply/$comment->nid/$comment->cid");

But looking at the codes in 5.0, it’s different from the above, anyone know what I need to omit out exactly to remove the ‘reply’ button on user comments, on the code below? I don't want to break the drupal!


if (node_comment_mode($comment->nid) == COMMENT_NODE_READ_WRITE) {
if (user_access('administer comments') && user_access('post comments')) {
$links['comment_delete'] = array(
'title' => t('delete'),
'href' => "comment/delete/$comment->cid"
);
$links['comment_edit'] = array(
'title' => t('edit'),
'href' => "comment/edit/$comment->cid"
);
$links['comment_reply'] = array(
'title' => t('reply'),
'href' => "comment/reply/$comment->nid/$comment->cid"
);
}
else if (user_access('post comments')) {
if (comment_access('edit', $comment)) {
$links['comment_edit'] = array(
'title' => t('edit'),
'href' => "comment/edit/$comment->cid"
);
}

localizer error

i got the following error on my page

unserialize() expects parameter 1 to be string, array given in /srv/www/htdocs/open/sites/all/modules/localizer/localizer.module on line 882.

what should i do? thank you.

Drupal has divitis as well as classitis by default...

And I'd like to streamline my installation a bit. That means I only want a class or ID on an element if I actually need it.

Some of the output is unnecessarily bloated and most things could easily be achieved with CSS selectors, rather than plonking 5 different classes on every list item.

So something like this is just too much, one might as well design with tables:

<ul class="links primary-links">
  <li class="first menu-1-1-2"><a href="" class="menu-1-1-2">Foo</a></li>
  <li class="menu-1-2-2 active"><a href="" class="menu-1-2-2 active">Foo</a></li>
  <li class="menu-1-3-2"><a href="/drupal/whatson" class="menu-1-3-2">Foo</a></li>
  <li class="menu-1-4-2"><a href="/drupal/living" class="menu-1-4-2">Foo</a></li>
  <li class="menu-1-5-2"><a href="/drupal/dining" class="menu-1-5-2">Foo</a></li>
  <li class="last menu-1-6-2"><a href="/drupal/visitors" class="menu-1-6-2">Foo</a></li>
</ul>

I can't think of anything I couldn't achieve with CSS just as well with:

<ul class="links primary-links">
  <li class="first"><a href="">Foo</a></li>
  <li class="active"><a href="">Foo</a></li>
  <li><a href="/drupal/whatson">Foo</a></li>
  <li><a href="/drupal/living">Foo</a></li>
  <li><a href="/drupal/dining">Foo</a></li>
  <li class="last"><a href="/drupal/visitors">Foo</a></li>
</ul>

Pages

Subscribe with RSS Subscribe to RSS - Post installation