Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-04-16 14:57:02
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
How to remove a comment preview. act_comments_form
Sorry for my english (google translate)
As it should be. (His site). I can not do the same http://ilovetxp.ru/articles/40/jquery-preload-images-textpatern#cut
He sent me the instructions and plug-ins. And also .js file which can be found via the browser View-Source (link to his site. Top)
The first plug-in http://ilovetxp.ru/?rah_plugin_download=act_comments_form
form comments_form
<ul>
<li id="CommentsError"> </li>
<li class="col">
<label for="name">Имя<span class="required">*</span></label>
<div class="text-input"><txp:comment_name_input /></div>
</li>
<li class="col">
<label for="email">E-mail
<span class="required">*</span> только для <a href="http://ru.gravatar.com/" rel="nofollow" title="Что это?|Картинка, которая сопровождает вас от сайта к сайту. Щёлкнув на ссылке, вы сможете зарегистрироваться и загрузить свой аватар. Указaв в последствии в форме отправки комментариев свой адрес эл.почты, который вы выбрали при регистрации, вы увидете свой аватар рядом со своим комментарием.">
Граватарки
<img src="/img/0.gif" class="icon help"/>
</a>
</label>
<div class="text-input"><txp:comment_email_input /></div>
</li>
<li class="col">
<label for="web">Ваша страничка</label>
<div class="text-input"><txp:comment_web_input /></div>
</li>
<li class="one">
<label for="message">Комментарий<span class="required">*</span>можно использовать <a href="#" title="Показать/убрать подсказку по оформлению" class="action">Textile
<img src="/img/0.gif" class="icon help"/>
</a>
</label>
<div id="TextileHelp">
<div class="padding"></div>
</div>
<div class="text-input">
<txp:comment_message_input />
</div>
</li>
<li class="one center last">
<button type="submit" id="txpCommentSubmit" class="btn" name="submit">
<div><div>Отправить</div></div>
</button>
<input type="hidden" name="comment" value="true"/>
<input type="hidden" id="remember" value="1" name="remember"/>
<input type="hidden" name="checkbox_type" value="remember"/>
</li>
</ul>
at the very top of the page is needed here is a code
<txp:act_if_ajax>
<txp:act_if_gps var=“comment” value=“true”>
<txp:act_comment_ajax/>
</txp:act_if_gps>
</txp:act_if_ajax>
Here is the link to the plugin from the code
http://ilovetxp.ru/?rah_plugin_download=act_ajax
We should see the source code. There is a link to a script that does it all.
The author says that: With minimal knowledge of PHP and Javascript everything is clear.
——————————
In general, I have installed and activated the plugin in the admin panel 2,
replacing the contents of the form comments_form (worked in CSS)
And just put this code on your page default, before the doctype
<txp:act_if_ajax>
<txp:act_if_gps var="comment" value="true">
<txp:act_comment_ajax/>
</txp:act_if_gps>
</txp:act_if_ajax>
interposed between the head tags
<script src="http://ilovetxp.ru/js/jquery-1.3.2.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/jquery-ui-1.7.2.custom.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/chili/jquery.chili-2.2.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/chili/recipes.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/comments.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/jToolTip.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ilovetxp.ru/js/site.js" type="text/javascript" charset="utf-8"></script>
However, my comment is why it is not added.
After you click Send, and all page is loaded.
Sorry for my english
???
Last edited by Freeant (2012-04-16 15:43:52)
Offline
#2 2012-04-16 15:45:34
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
Re: How to remove a comment preview. act_comments_form
it is very important to me.
Offline
Re: How to remove a comment preview. act_comments_form
Hi Freeant
and welcome to txp
this is probably a plugin issue and as the author never started a support thread for his/her plugin here, you might have to wait until some other user of the plugin offers their advice. (I am changing the subject of your thread to include the plugin name)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#4 2012-04-16 18:04:35
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How to remove a comment preview. act_comments_form
I can’t find a single tag for act_comments_form. Could this be the problem?
If not: please post a link to your site so we can try to understand your problem a little better.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#5 2012-04-16 19:57:40
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
Re: How to remove a comment preview. act_comments_form
May be this <txp:act_comment_ajax/>
Well, for example http://gmore.org/dendy/8/battle-city
trying to introduce it to the site, but the button does not respond.
(Comments are temporarily without design …)
Last edited by Freeant (2012-04-16 19:59:55)
Offline
#6 2012-04-16 22:04:50
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How to remove a comment preview. act_comments_form
What happens when you remove the second jQuery reference?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#7 2012-04-17 05:54:06
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
Re: How to remove a comment preview. act_comments_form
Removed this line here. <script src=“http://ilovetxp.ru/js/jquery-ui-1.7.2.custom.js” type=“text/javascript” charset=“utf-8”></script>
Nothing has changed.
:-(
———-
I (still) not a programmer. In the plug act_comments_form ??? JSON.php ???
Last edited by Freeant (2012-04-17 06:12:57)
Offline
#8 2012-04-17 10:41:16
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How to remove a comment preview. act_comments_form
Freeant wrote:
I (still) not a programmer. In the plug act_comments_form ??? JSON.php ???
Do you have JSON.php installed? txpath
is the path to the textpattern folder, thus you should have it lying side by side with your config.php, in the same folder.
BTW the image you posted isn’t displayed only for the time you’re a forum beginner here, the code you used is absolutely correct.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#9 2012-04-17 11:53:39
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
Re: How to remove a comment preview. act_comments_form
I do not know.
As I understand it, you need to install yourself. Well then, just not installed.
I’m afraid my knowledge is not enough to install it.
It is not good. ?? ((
Offline
#10 2012-04-18 12:23:23
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
Re: How to remove a comment preview. act_comments_form
Where can i download JSON.php ?
Offline
#11 2012-04-18 16:44:29
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How to remove a comment preview. act_comments_form
Freeant wrote:
Where can i download JSON.php ?
As far as I understood is the guy with the act_
prefix the same one who runs ilovetxp.ru. So you should perhaps ask there.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#12 2012-04-19 14:50:47
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
Re: How to remove a comment preview. act_comments_form
JSON.php – can be downloaded here
http://mike.teczno.com/JSON.tar.gz
http://pear.php.net/pepr/pepr-proposal-show.php?id=198
I tride to downloaded this and upload to the site, but nothing happens.
(nothing changes)
———————————
The author of the site plugin can’t help, because he has no free time ((
Last edited by Freeant (2012-04-19 14:53:25)
Offline