Commas stripped out of teaser summary listing

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Commas stripped out of teaser summary listing

Post by jsw_nz »

Hi Guys

Never noticed this before - seems using the teaser contentpart - commas are stripped out of summary listing - is this the default?
Is there any way to change this

Thanks in advance for any pointer - - do need to have commas in summary - to enhance readability.

- jsw_nz -
User avatar
Oliver Georgi
Site Admin
Posts: 9889
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Commas stripped out of teaser summary listing

Post by Oliver Georgi »

There is no comma stripping (or better should).
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: Commas stripped out of teaser summary listing

Post by jsw_nz »

Hi Oliver

I thought it strange - so not sure what is going on - I uploaded a series of screen shots
(installation is still on localhost - planning to upload next week)

Image

Any ideas as to why this is going on - article detail shows comma - but teaser does not.

Cheers
John
User avatar
Oliver Georgi
Site Admin
Posts: 9889
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Commas stripped out of teaser summary listing

Post by Oliver Georgi »

…have found the problem. Crazy — developers are really stupid :) I will fix that.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9889
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Commas stripped out of teaser summary listing

Post by Oliver Georgi »

Please try what happens if you change include/inc_lib/general.inc.php around line 1161 (inside the function getCleanSubString) from:

Code: Select all

$words = preg_split("/[\s,]+/", $cutString, -1, PREG_SPLIT_NO_EMPTY);
to

Code: Select all

$words = preg_split("/[\s]+/", $cutString, -1, PREG_SPLIT_NO_EMPTY);
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: Commas stripped out of teaser summary listing

Post by jsw_nz »

That did the trick!

Cheers OLIVER!
Post Reply