Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-03-06 07:33:59

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Special Entities in excerpt

Mary, I get what you get in a SVN snapshot from a few days ago (r2249). I don’t have 4.0.4 installed at the moment.

Last edited by ruud (2007-03-06 08:42:34)

Offline

#14 2007-03-06 08:10:12

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

Re: Special Entities in excerpt

Mary, thank you for answer!
Yes, you right I get

Heading 1

in both cases!

(it is not only my problem. One my friend has the same problem with r.2249. He have confirmed it on russian TXP forum: textpattern.ru. And my brother has the same on his blog. His revision is 2191.)

For example, my recent article was about choosing beetwen document-oriented and site-oriented headings. Imagine it! :)
So now I can’t made excerpt for it.

Last edited by warmrobot (2007-03-06 09:14:47)

Offline

#15 2007-03-06 21:37:16

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Special Entities in excerpt

Do you have any plugins installed?

Offline

#16 2007-03-07 15:08:08

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

Re: Special Entities in excerpt

Yes, I have. This is a full list inluding rsx_plugins_list , that I’ve just installed :

glx_gravatar 2006.2 by grauHirn.org
cbs_category_list 0.9 by Christophe Beyls
ob1_title 2.2 by Henrik Jönsson
upm_image 0.4.5 by Mary
rss_admin_show_adv_opts 0.3 by Rob Sable
zem_contact_reborn 4.0.3.18 by TXP Community
zem_contact_lang 4.0.3.5 by TXP Community
upm_file 0.1 by Mary
mem_imdb_votes 0.1 by Michael Manfre
rss_auto_excerpt 0.4 by Rob Sable
rsx_plugins_list 1.1 by Ramanan Sivaranjan
upm_insert_tab 0.3 by Mary Fredborg
rss_admin_db_manager 4.3 by Rob Sable
rss_unlimited_categories 0.7.2 by Rob Sable
hak_textile_tags 0.1.1 by Patrick Woods
rss_pluginstaller 0.1 by Rob Sable
upm_date_archive 0.2 by Mary Fredborg
rss_suparchive 0.18 by Rob Sable
upm_textile_toggle 0.5 by Mary Fredborg

Offline

#17 2007-03-07 15:41:32

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Special Entities in excerpt

Two questions:
  • how does it look if you click the ‘preview’ tab on the right side of the article you’re editing? Does it show up correctly there?
  • If you disable all plugins (temporarily, just for testing), does that solve the problem?

Last edited by ruud (2007-03-07 15:44:00)

Offline

#18 2007-03-09 08:17:50

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

Re: Special Entities in excerpt

1) Well, as I see “preview” can show you only body of the article, not excerpt. And there is no problems in the body, only in excerpt. So I can’t understand how will it helps.

2)I’ve disabled all plugins and it does not help. A can even uninstall it if you think that it will solve the problem. Want me to try?

To make all things clear I will show you what I see. “Try walking in my shoes”

Screenshot#1
Screenshot#2

Last edited by warmrobot (2007-03-09 08:38:51)

Offline

#19 2007-03-11 11:22:56

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Special Entities in excerpt

  1. It shows both in 4.0.4 (you really should upgrade, by the way). But, it turns out we’re talking about 2 different things anyway (see below). :)

Thanks for your screenshots, very helpful. This has to do with how textareas understand HTML entities. Textpattern adjusts for that with the article body, but doesn’t for the excerpt.

Try making the following change to your textpattern/include/txp_article.php file and it should be resolved.

Offline

#20 2007-03-11 14:20:02

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

Re: Special Entities in excerpt

OK, I’ve updated now. And this is another two screenshots:
Screenshot#3
Screenshot#4

The first was made until I press “save”.
The second – after.

As you see now it is altering all characters to special entities. :-)
I think we have to find “the golden mean”.

Offline

#21 2007-03-11 19:43:10

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Special Entities in excerpt

Try removing line 500 in txp_article.php. That should fix it:

--- 4.0/textpattern/include/txp_article.php	(revision 2252)
+++ 4.0/textpattern/include/txp_article.php	(working copy)
@@ -497,8 +497,6 @@
 		{
 			if ($view == 'text')
 			{
-				$Excerpt = str_replace('&', '&', htmlspecialchars($Excerpt));
-
 				echo n.graf('<label for="excerpt">'.gTxt('excerpt').'</label>'.sp.popHelp('excerpt').br.
 					'<textarea id="excerpt" name="Excerpt" cols="55" rows="5" tabindex="3">'.htmlspecialchars($Excerpt).'</textarea>');
 			}

Offline

#22 2007-03-11 20:30:57

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

Re: Special Entities in excerpt

Yep, it works! Thank you!

So, could I expect that this changeset will be in next revision?

Offline

#23 2007-03-12 04:37:03

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Special Entities in excerpt

If what you mean is “will this be fixed in the next release”? Then yes.

Offline

#24 2007-03-12 05:40:35

warmrobot
Member
From: Moscow, Russia
Registered: 2007-01-22
Posts: 31
Website

Re: Special Entities in excerpt

:-) yes, this is exactly what I meant.

Sorry for my English.

And thank you!

Last edited by warmrobot (2007-03-12 05:41:23)

Offline

Board footer

Powered by FluxBB