Eliminate (...)

Dear Tom,

Thanks for the quick respond.

I've tried both.

However, problem's not solved yet.

1/ "couper" also displays the (...).
2/ sommaire-dist.html does not leave an option to eliminate the (...) -
infact, it does not contain it at all. Perhaps it is in another file?
Where would the INTRODUCTION function be defined?

Thanks,
milNat

-----Original Message-----
From: Tom [mailto:tom@mir2.dk]
Sent: Sunday, October 24, 2004 4:23 PM
To: Natasa Stevanic
Subject: Re: [Spip-en] Eliminate (...)

Its in the dist file !!
Check the HTML (eg. sommaire-dist.html) file, and you find it(...) Tom

Maybe you like this one 2..
(#TEXTE|couper{80})read on]

On 24/10/04 15:58, "Natasa Stevanic" <nstevanic@sbb.co.yu> wrote:

Hi again :slight_smile:

I'm using the #INTRODUCTION tag for the home page, and it inserts this
->
(...) at the end of the text presented. How can I get rid of it, since

I want to use something else instead.

Thanks again!
milNat

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.779 / Virus Database: 526 - Release Date: 10/19/2004

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.779 / Virus Database: 526 - Release Date: 10/19/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.779 / Virus Database: 526 - Release Date: 10/19/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.779 / Virus Database: 526 - Release Date: 10/19/2004

1/ "couper" also displays the (...).
2/ sommaire-dist.html does not leave an option to eliminate the (...) -
infact, it does not contain it at all. Perhaps it is in another file?
Where would the INTRODUCTION function be defined?

If you know a bit of PHP, you could always program a filter function to
strip out the "(...)".

Something like this (not tested) :

function stripdots($text) {
  return preg_replace(',\(\.+\)\s*$,', '', $text);
}

Put the function in your file mes_fonctions.php3 (create the file if it
does not exist), and then you can call [(#INTRODUCTION|stripdots)].
That way you don't have to modify the SPIP core files.

Cheers

Antoine.

Or you can put the introduction in the "description" box. SPIP will display the description without the (...)

George

Antoine wrote:

1/ "couper" also displays the (...).
2/ sommaire-dist.html does not leave an option to eliminate the (...) -
infact, it does not contain it at all. Perhaps it is in another file?
Where would the INTRODUCTION function be defined?
   
If you know a bit of PHP, you could always program a filter function to
strip out the "(...)".

Something like this (not tested) :

function stripdots($text) {
return preg_replace(',\(\.+\)\s*$,', '', $text);
}

Put the function in your file mes_fonctions.php3 (create the file if it
does not exist), and then you can call [(#INTRODUCTION|stripdots)].
That way you don't have to modify the SPIP core files.

Cheers

Antoine.

hi,

i'd like to use a php form (form to mail) script i
wrote - my very first :slight_smile:

is it possible to include the script in an article or
a rubrique?

i'm looking for a way to avoid being thrown out of the
'spip structure' when my form calls 'form.php'.. cause
'form.php' can't get the data from spip, it's a
completely seperate page.

does anyone know how i can get this done?
many thanks,
/bruno

__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail

The INCLURE tag might help you out here, check out this article:

Using that, your form will remain in the SPIP structure.

Ant.

-----Original Message-----
From: spip-en-bounces@rezo.net [mailto:spip-en-bounces@rezo.net] On

Behalf Of

bruno
Sent: 26 October 2004 19:47
To: spip-en@rezo.net
Subject: [Spip-en] php script in article?

hi,

i'd like to use a php form (form to mail) script i
wrote - my very first :slight_smile:

is it possible to include the script in an article or
a rubrique?

i'm looking for a way to avoid being thrown out of the
'spip structure' when my form calls 'form.php'.. cause
'form.php' can't get the data from spip, it's a
completely seperate page.

does anyone know how i can get this done?
many thanks,
/bruno

__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
Yahoo fait partie de la famille de marques Yahoo.
_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en