Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-05-03 00:08:00
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
[plugin] [ORPHAN] upm_restrict_comment_size
Offline
Re: [plugin] [ORPHAN] upm_restrict_comment_size
Is work for 4.0.4 ?
I have installed this plugins according to documentation, but did not work.
I using this code :
<txp:upm_restrict_comment_size min="25" error_message="my error message" />
<txp:comments_error />
<table cellpadding="4" cellspacing="0" border="0">
<tr>
<td align="right" valign="top">
<txp:text item="name" />
</td> .........
Offline
#3 2007-05-03 21:39:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_restrict_comment_size
…but did not work.
Detail please.
Offline
Re: [plugin] [ORPHAN] upm_restrict_comment_size
hmmm …
The letter limit is 25 character, and i tried to entered 15 character. But the error message is not displayed.
Comment is accepted.
——
sorry for my english.
Offline
#5 2007-05-06 00:04:32
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_restrict_comment_size
Please post your High diagnostics results, as well as a tag trace.
I tested the plugin with a stock 4.0.4 install with no problems.
Offline
Re: [plugin] [ORPHAN] upm_restrict_comment_size
okay , im sorry for my bad english.
Here we go :
<!-- txp tag trace:
[SQL (0.000409): select name from txp_lang where lang='en-gb' limit 1]
[SQL (0.007749): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.002192): select name, code, version from txp_plugin where status = 1]
[SQL (0.010692): select ID,Section from textpattern where url_title like 'jose-reina-yg-terbaik' AND Section='blog' and Status >= 4 limit 1]
[SQL (0.000450): select * from txp_section where name = 'blog' limit 1]
[SQL (0.000690): select *, unix_timestamp(Posted) as uPosted from textpattern where ID=334 and Status = 4]
[article 334]
[SQL (0.000557): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted > '2007-05-05 17:55:46' and Section = 'blog' and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.010569): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted < '2007-05-05 17:55:46' and Section = 'blog' and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.000381): select host from txp_log where ip='125.164.120.203' limit 1]
[SQL (0.000462): insert into txp_log set `time`=now(),page='/blog/jose-reina-yg-terbaik',ip='125.164.120.203',host='125.164.120.203',refer='',status='200',method='POST']
[SQL (0.000578): select user_html from txp_page where name='archive']
[Page: archive]
<txp:css n="grid" />
<txp:page_title/>
[SQL (0.000687): select title from txp_section where name='blog']
[SQL (0.000229): select Title from textpattern where ID = 334]
<txp:if_comments_preview>
[<txp:if_comments_preview>: true]
<txp:comments_preview/>
[SQL (0.000464): select Form from txp_form where name='comments']
[Form: comments]
<txp:comment_id/>
<txp:comment_name/>
<txp:comment_permlink>
</txp:comment_permlink>
<txp:message/>
<txp:comments_form isize="20" msgrows="7" msgcols="45" form="yui-cpreview" />
[SQL (0.027771): insert into txp_discuss_nonce set issue_time=now(), nonce='8a4b8e5140115eb1ac58271ce5ab93d1', secret='9ceb7b6cb896120bbcae0ccc0582b3e3']
[SQL (0.000349): select Form from txp_form where `name` = 'yui-cpreview' limit 1]
<txp:comments_error/>
<txp:text item="name" />
<txp:text item="email" />
<txp:text item="message" />
<txp:comments_help/>
<txp:permlink/>
</txp:if_comments_preview>
[ ~~~ secondpass ~~~ ]
UPD :
sorry this is my false, now i can show the error message, if commenters message is less than characters limit.
But the problem is … when I entered comment message with character less than character limits, an error message will displayed, but I still continue to be able to submit it.
That was true?
Last edited by kus (2007-05-06 08:45:20)
Offline
#7 2007-05-06 23:35:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_restrict_comment_size
According to your tag trace, the tag is not there. Are you positive that your form, “yui-cpreview” has the tag in it? Can you change your production mode to debugging and see if you get any errors/warnings?
Offline
Re: [plugin] [ORPHAN] upm_restrict_comment_size
Yes , this is my false. The plugins is work now.
But if I put the character less than the character limit, commented continue to be able to submit in.
is this plugins working like that?
—-
sorry for my english
Offline
#9 2007-05-07 03:29:04
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_restrict_comment_size
No, it should force a reload of the comment form. Would you post your “High” diagnostics results, please?
Offline
Re: [plugin] [ORPHAN] upm_restrict_comment_size
okay this my tag trace :
<!-- txp tag trace:
[SQL (0.000398): select name from txp_lang where lang='en-gb' limit 1]
[SQL (0.007931): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.002208): select name, code, version from txp_plugin where status = 1]
[SQL (0.010093): select ID,Section from textpattern where url_title like 'jose-reina-yg-terbaik' AND Section='blog' and Status >= 4 limit 1]
[SQL (0.000312): select * from txp_section where name = 'blog' limit 1]
[SQL (0.000590): select *, unix_timestamp(Posted) as uPosted from textpattern where ID=334 and Status = 4]
[article 334]
[SQL (0.000416): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted > '2007-05-05 17:55:46' and Section = 'blog' and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.010353): select ID, Title, url_title, unix_timestamp(Posted) as uposted
from textpattern where Posted < '2007-05-05 17:55:46' and Section = 'blog' and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.000529): select host from txp_log where ip='125.164.120.203' limit 1]
[SQL (0.000677): insert into txp_log set `time`=now(),page='/blog/jose-reina-yg-terbaik',ip='125.164.120.203',host='125.164.120.203',refer='',status='200',method='POST']
[SQL (0.000298): select user_html from txp_page where name='archive']
[Page: archive]
<txp:css n="grid" />
<txp:page_title/>
[SQL (0.000206): select title from txp_section where name='blog']
[SQL (0.000221): select Title from textpattern where ID = 334]
<txp:if_comments_preview>
[<txp:if_comments_preview>: true]
<txp:comments_preview/>
[SQL (0.000201): select Form from txp_form where name='comments']
[Form: comments]
<txp:comment_id/>
<txp:comment_name/>
<txp:comment_permlink>
</txp:comment_permlink>
<txp:message/>
<txp:comments_form isize="20" msgrows="7" msgcols="45" form="yui-cpreview" />
[SQL (0.000238): insert into txp_discuss_nonce set issue_time=now(), nonce='e99ebc19b0e0b8a6de5af72f7f4a57f8', secret='b0b567414b0503a86cec0a169078ee3c']
[SQL (0.000209): select Form from txp_form where `name` = 'yui-cpreview' limit 1]
<txp:upm_restrict_comment_size error_message="error_message" />
<txp:comments_error/>
<txp:text item="name" />
<txp:text item="email" />
<txp:text item="message" />
<txp:comments_help/>
<txp:permlink/>
</txp:if_comments_preview>
[ ~~~ secondpass ~~~ ]
And my “high” diagnostic info
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-10-12 12:43:05/2006-08-31 15:47:57
Document root: /home/ckusaeni/public_html
$path_to_site: /home/ckusaeni/public_html
Textpattern path: /home/ckusaeni/public_html/textpattern
Permanent link mode: section_title
open_basedir: /home/ckusaeni:/usr/lib/php:/usr/local/lib/php:/tmp
Temporary directory path: /tmp
Site URL: kusaeni.com
PHP version: 4.4.4
Server Local Time: 2007-05-08 11:09:23
MySQL: 4.1.21-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 mod_ssl/2.8.28 OpenSSL/0.9.7a
Apache version: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 mod_ssl/2.8.28 OpenSSL/0.9.7a
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.6.9-023stab043.1-enterprise
Active plugins: ako_youtube-0.2.1, rss_admin_db_manager-4.3, tru_tags-2.0m, rss_admin_show_adv_opts-0.3, ajw_comment_alt-0.3, ajw_comment_num-0.2, hpw_admincss-0.1, chh_article_custom-1.15, chh_article_lib-1.04, ied_plugin_composer-0.4, glx_if-0.6.4m, ajw_if_comment_owner-0.3.1, glx_code-0.3, asy_wondertag-0.5, ebl_articleDelete-0.1, ied_replacer-0.1, etz_striptags-0.2, rss_pluginstaller-0.1, asy_showdate-0.3m, asy_jpcache-0.9.8, nko_spamurl_blocker-0.2m, upm_plugin_restore-0.1, chs_if_urlvar-0.5, czg_if_comment_cookies-0.1, zem_redirect-0.5, dzd_upload_image-0.2, hcg_templates-0.3m, upm_restrict_comment_size-0.1
Pre-flight check:
------------------------
Some Textpattern files are out of date: /lib/txplib_forms.php
Some Textpattern files have been modified: /include/txp_article.php,
/lib/txplib_head.php
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: dl, exec, shell_exec, system, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak,
------------------------
.htaccess file contents:
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
#This path should match the relative url of your Textpattern install
RewriteBase /
#If you're using a section other than "tag", change the following two rules accordingly
RewriteRule ^tag/([^/]+)$ tag/$1/ [R,L]
RewriteRule ^tag/(.+)/$ ?s=tag&t=$1
RewriteRule ^(.*) index.php
</IfModule>
php_value register_globals 0
------------------------
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: -
PHP extensions: zip, xml, tokenizer/0.1, standard/4.4.4, sockets, session, posix, overload, mysql, imap, gd, ftp, ctype, calendar, bcmath, zlib/1.1, pcre, apache
pretext_data: array (
'id' => '',
's' => '',
'c' => '',
'q' => '',
'pg' => '',
'p' => '',
'month' => '',
'author' => '',
'request_uri' => '/694864d4d71c1ad0186fa231f1641cae/?txpcleantest=1',
'qs' => 'txpcleantest=1',
'subpath' => '\\/',
'req' => '/694864d4d71c1ad0186fa231f1641cae/?txpcleantest=1',
)
/include/txp_category.php: r1879 (aee777474b2f67ca07fc25756ba25c15)
/include/txp_plugin.php: r1917 (74184c0d8ed8608f840707a255178617)
/include/txp_auth.php: r1879 (b1dd4072b7daf4e997c6ff65ce3d1b2d)
/include/txp_form.php: r1913 (16ec600b41438b4cca10d2c8a19b2db8)
/include/txp_section.php: r1891 (2959593586ba3e97bc602f369c32e738)
/include/txp_tag.php: r1915 (3b4a7f73d92f9bbbe09985c5aa830d29)
/include/txp_list.php: r1892 (41f4d32fd070234b78f94adefebd5234)
/include/txp_page.php: r1913 (34331a5468bbb18dd9f6a282f3aa11e8)
/include/txp_discuss.php: r1909 (9b9ee934a30f52cd7a4d8cb45c8380ab)
/include/txp_prefs.php: r1946 (05615b6275d8927a2a0d51918d70a896)
/include/txp_log.php: r1919 (ed54d02e865319f2506c642a6bde768b)
/include/txp_preview.php: r1238 (5a4ae3ff0d68f4cb573d6d62a00ce9e8)
/include/txp_image.php: r1955 (20be975e67fa7c4aa9a1a3e51bfaf379)
/include/txp_article.php: r1889 (ed9f776da2ec01bc6655cdcccd4be682)
/include/txp_css.php: r1897 (f5cf1c20badb96a063c7c180e9020359)
/include/txp_admin.php: r1879 (d36dac010d21df7bcf9cf5e242b34d58)
/include/txp_link.php: r1879 (0652287df8bb32c66cfa1b939402404a)
/include/txp_diag.php: r1902 (96697ade63048e517177f4129d47de76)
/include/txp_file.php: r1895 (6ed67b094522e51b028dc88baa07444c)
/include/txp_import.php: r1238 (634e75d1b61958875ff275e3130f23ad)
/lib/admin_config.php: r1747 (1563fcbaffe25b3272b0d85ff9d5571d)
/lib/txplib_misc.php: r1956 (182c50b86195f1abe9dbe15728df3cae)
/lib/taglib.php: r1535 (04806ef864d5b0d2974e0e5f6397a2d7)
/lib/txplib_head.php: r1887 (a1a28a0e26dfd62d66b5f493a9921e94)
/lib/classTextile.php: r1943 (2c559991e34738eef1990dc079bd91c4)
/lib/txplib_html.php: r1937 (c206ca9cb9a54a7a95f3355b77fd0fa2)
/lib/txplib_db.php: r1879 (d68b6ea69950e405c4fec23b8641d9c2)
/lib/IXRClass.php: r765 (cbe59b59246dce060a4b4a52b4d448d8)
/lib/txplib_forms.php: r950 (e0b0aaea0fbe5d1343b22aa1d9c7c4fe)
/lib/class.thumb.php: r1955 (12961180eee3add5096e69e0a154284e)
/lib/constants.php: unknown (0e40251c717c52b2b7fe992b62a3e97a)
/lib/txplib_update.php: r1239 (757f8189fcc53a795d7c807f17b2e788)
/lib/txplib_wrapper.php: unknown (584448787b4a3488200722672c0eee0d)
/publish/taghandlers.php: r1949 (3fa1b9ded18e6074b2495a3f4e3c33b5)
/publish/atom.php: r1864 (50602e2f1c443819a0a60f14f39d3093)
/publish/log.php: r1637 (a4a772567079f18101a1752446f3f6d4)
/publish/comment.php: r1951 (a3f803d744fea80808eb27a3f6b28674)
/publish/search.php: r1748 (b0182abc287055fe0932c263b2a5266d)
/publish/rss.php: r1864 (ae43eaa9ebe6b00e63810ae60ca7c6b6)
/publish.php: r1945 (abff727405efc6c4ec8b1cb403290063)
/index.php: r1948 (adf86f44861797f4969373c708ef48fb)
/css.php: r944 (763fa7658fc19ad23a5b2126fcdf366c)
Offline