Problem with php.ini with drupal

Help with php.ini using XAMPP for Windows Version 1.5.1.

can u help me how to edit the mail function in my php.ini?

warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in E:\XAMPP 1.5.1\xampp\htdocs\drupal\modules\user.module on line 394.

Function to trim images

Hi,
I would like to build a function which will remove all pictures from a text.
So, I did a function in template.php

function trim_images($text)
{
  return preg_replace("'\[img[^\]]*?\].*?\[/img\]'si", "", $text);
}

And then in my node-flexinode-4.tpl.php I put the following code:
print trim_images($node->flexinode_7);

But it doesn't work, it prints all the text, even with pictures.

Anybody has an idea?

Thanks

no friendly URL in ?destrination=. Why?

I have encountered that using drupal_get_destination() constructs the URL w/ 'destination' in query, btu that URL is not user friendly. I mean that no URL alias is used there.
e.g.
NORMAL PATH IS user/1/favorite
FRINENDLY PATH IS user/root/favorite
BUT I GET user/1/favorite IN 'destination'.

How would you recommend to update this thingy?

profile module

Hi all,

here http://users.rsise.anu.edu.au/~abate/profile.module
you can get a version of the profile module with the following patchs:

Where can my bloggers tag their content?

This question most likely has a simple answer...Where do i enable a field so that the bloggers of my site can tag their blog entries with various tags for technorati and keyword tagging?

Thanks

Shorthand book creation

I'm creating my own node type based loosely on the book module. Was wondering if anyone can point me in the direction of how to go about so that, given a text, I can post-process the text and create the tree structure of the book and the content of this tree using something like regular expressions within the text.

Eg:

A story
=
Chapter 1.
==
page 1
==
page 2
=
chapter 2.

where '=' might be taken as the first level nodes in the book and '==' as the second level nodes.....

Pages

Subscribe with RSS Subscribe to RSS - Drupal 4.7.x