Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-27 10:59:37
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Popup comments
I have enabled ‘Popup comments’ in my site configuration, but it still displays the form on each article page. How do I place a link on the article_form that will open both the comments and the form in a different window ?
Thanks!
http://urbangriffin.com/photoblog/
Offline
#2 2006-03-27 18:29:37
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Popup comments
I finally found the tag to display the link for popup comments, which was:
< txp:comments_invite showalways=“1” / >
But, the window that pops up only says this:
Warning: unknown_tag in /home/urbangr1/public_html/textpattern/publish.php on line 911
Is there something I missed I should have altered either in the config or the tags ?
Offline
#3 2006-03-27 19:27:09
- Nell
- Member
- From: Mexico City, Mexico
- Registered: 2005-06-21
- Posts: 48
Re: Popup comments
I use popup comments too, this is how I did it:
In my article form, I used these tags:
<code><txp:if_comments_allowed>
<txp:comments_invite showalways=1 />
</txp:if_comments_allowed>
</code>
This is better because it only shows the comment link if you have comments activated for that particular post.
Then, in the admin>preferences tab, turn off the Automatically append comments to articles? option.
I’m not sure if that might be your problem, but I hope that helps!
Offline
#4 2006-03-27 19:44:54
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Popup comments
I pasted the code to replace my unique tag, and checked again that Automatically append was disabled. Unfortunately, I still get the same error. But thank you all the same, Nell! :)
Offline
#5 2006-03-27 19:52:50
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Popup comments
Oh!
The default popup_comment form that appeared after I checked the popup option for comments in the configuration had another < txp:popup_comment / > tag within, calling for itself as a form, something absurd (unless I’m missing something). I replaced it with < txp:comments_form / > and the form finally appeared.
I still was getting the error line above the comment form, though. So, in comment_display, I replaced < txp: comment_form / > with < txp: comments_invite / >, and now it’s gone.
I tested, though, and after hitting the Preview button (no Submit button to see), the next page is blank.
Last edited by lisionosk (2006-03-27 20:19:01)
Offline
#6 2006-03-27 20:17:45
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Popup comments
Since it seems my comments, comments_display, comment_form and popup_comments have come up with some wrong tags in them, would somebody who uses popup comments that work oblige me by providing me with the forms they use, please ? :)
Offline
#7 2006-03-27 20:21:43
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Popup comments
Odd. The form that appears only after placing < txp:comments_form / > calls for a form that doesn’t exist, as I only have a comment_form, singular. But when I call for < txp:comment_form / > instead in the popup_comment form, I lose the comment form again, and clicking on the link gets an empty window.
Am I using too many (unrelated to comments) plugins in my TXP install that may be messing with things ?
Last edited by lisionosk (2006-03-27 20:22:43)
Offline
#8 2006-03-28 06:44:13
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Popup comments
The form that appears only after placing
<txp:comments_form />
calls for a form that doesn’t exist, as I only have a comment_form, singular. But when I call for<txp:comment_form />
instead in the popup_comment form, I lose the comment form again, and clicking on the link gets an empty window.
You’re getting confused: tag names have zero to do with form names. The correct tag name would be <txp:comments_form />
, but that’s not the one you want anyway.
The default popup_comment form that appeared after I checked the popup option for comments in the configuration had another
<txp:popup_comment />
tag within, calling for itself as a form, something absurd (unless I’m missing something). I replaced it with<txp:comments_form />
and the form finally appeared.I still was getting the error line above the comment form, though. So, in comment_display, I replaced
<txp:comment_form />
with<txp:comments_invite />
, and now it’s gone.
The sole tag to be placed in your “popup_comments” form is the <txp:popup_comments />
tag.
At this point, return your comment-related forms to their defaults and start again.
Offline
Re: Popup comments
This is what I was using on my photoblog before I removed comments. It should still work (there’s a tutorial too).
form: comments (if you have comments presented as an ordered list)
<div class="comment">
<txp:message />
<p class="commenter">
—<txp:comment_name />
<txp:comment_time />
<txp:comment_permlink>#</txp:comment_permlink>
</p>
</div>
form: comments_display (since this is a popup, it has has the title and thumbnail)
<h3><txp:title /></h3>
<p><txp:permlink><txp:excerpt /></txp:permlink></p>
<txp:comments />
<txp:if_comments_allowed>
<txp:comments_form />
<txp:else />
<p><txp:text item="comments_closed" /></p>
</txp:if_comments_allowed>
form: popup_comments
I’m greatly simplifying things here by excluding the doctype and most of the head:
<html>
<head>
<title><txp:title /></title>
</head>
<body>
<div id="container-of-sorts">
<txp:popup_comments />
</div>
</body>
</html>
form: comments_form (add something like #comment_form label { display: block; }
to your css to space these, or use p
’s)
<txp:comments_error / >
<fieldset id="comment_form" >
<label for="name">< txp:text item="name" />< /label>
<txp:comment_name_input />
<txp:comment_remember />
<label for="email">< txp:text item="email" />< /label>
<txp:comment_email_input />
<label for="web">http://< /label>
<txp:comment_web_input />
<label for="message">< txp:text item="message" />< /label>
<txp:comment_message_input />
<txp:comments_help />
<txp:comment_preview />
<txp:comment_submit />
</fieldset>
Updated code formatting, not sure if much of this is relevant with 4.0.4.
Last edited by jm (2006-12-01 04:04:20)
Offline
#10 2006-11-30 15:52:51
- Keen
- New Member
- Registered: 2006-11-30
- Posts: 3
Re: Popup comments
Hi, sorry if I’m bringing up old topics, but I’m getting the same kind of error here,
Warning: unknown_tag: popup_comments in /home/riding/public_html/gourmetborneo/textpattern/publish.php on line 968
However, when I try this on a different site, on a different server it works fine. I am unsure whether this has anything to do with differing versions of PHP used (4.4.2 on the error producing site and 4.4.4 on the working one) or something else I am missing. Is there any way to rectify this?
Also, I am using the default forms.
Last edited by Keen (2006-11-30 15:54:41)
Offline
Re: Popup comments
So it’s a stock install with popup comments? Could you post your diagnostics?
Offline
#12 2006-12-01 04:51:08
- Keen
- New Member
- Registered: 2006-11-30
- Posts: 3
Re: Popup comments
Well I wouldn’t call it stock as it runs a dozen or so plugins but none that have anything to do with comments.
Here is the full set of diagnostics;
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-10-18 12:43:50/2006-10-18 12:35:26
Document root: /home/riding/public_html/gourmetborneo
$path_to_site: /home/riding/public_html/gourmetborneo
Textpattern path: /home/riding/public_html/gourmetborneo/textpattern
Permanent link mode: section_title
open_basedir: /home/riding:/usr/lib/php:/usr/local/lib/php:/tmp
Temporary directory path: /tmp
Site URL: gourmetborneo.ridingdreams.net
PHP version: 4.4.2
Server Local Time: 2006-11-30 22:45:15
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.2 FrontPage/5.0.2.2635.SR1.2 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.2 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.6.9-34.0.1.ELsmp
Active plugins: ob1_title-2.2, zem_contact_lang-4.0.3.02, zem_contact_reborn-4.0.3.16m, rss_auto_excerpt-0.2, ajw_notepad_public-0.1, rss_unlimited_categories-0.6, rss_suparchive-0.18, rss_admin_db_manager-4.1, rss_admin_show_adv_opts-0.3, rss_thumbpop-0.7, tcm_ratinginput-0.3, tcm_ratingoutput-0.4m
Pre-flight check:
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server:: show_source, system, shell_exec, passthru, exec, popen, proc_open
------------------------
.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]
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/
19 Tables: txp_txp_note is latin1, txp_txp_tcm_ratings is latin1
PHP extensions: xml, tokenizer/0.1, standard/4.4.2, sockets, session, posix, overload, mysql, gd, ftp, ctype, calendar, bcmath, zlib/1.1, pcre, apache, eAccelerator/0.9.4
pretext_data: array (
'id' => '',
's' => '',
'c' => '',
'q' => '',
'pg' => '',
'p' => '',
'month' => '',
'author' => '',
'request_uri' => '/05120db520a8e4819d474eab749a5a3b/?txpcleantest=1',
'qs' => 'txpcleantest=1',
'subpath' => '\\/',
'req' => '/05120db520a8e4819d474eab749a5a3b/?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 (7749f699c03d0c57e04fafe17dbfa94c)
/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 (b110efd071e9a5bb395beea66ced128a)
/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: r1887 (0049a228dc8eb346f8603478a7c1b2e2)
/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)
I have trouble with one or two of the plugins on, but thats very much a different issue, I believe.
Offline