|
#1
Sep 20, 2016, 05:18 AM
|
|
Hello. Two questions?
1) I installed the plugin qipsmiles - http://webbug.ru/?download=qipsmiles.zip Now that would add smilies to the comments form, it is necessary to place the following code?
PHP Code:
<?php if (function_exists('qipsmiles')) qipsmiles('ru'); ?>
I added in comment.php after the code:
PHP Code:
<?php // Using the new function comment_form() with the custom settings $comment_form_settings comment_form($comment_form_settings);?> <?php if (function_exists('qipsmiles')) qipsmiles('ru'); ?>
but the smilies appeared not there where would like?
https://www.dropbox.com/s/hiboc2unau...atahualpa1.png
How to correctly add qipsmiles inside the forms of comments ?!
https://www.dropbox.com/s/f5pfzl1tz4...atahualpa2.png
2) I checked on the website http://share42.com/ru to obtain the forms of social buttons. At the exit they gave me the following code:
HTML Code:
<div class="share42init" data-top1="20" data-url="<?php the_permalink() ?>" data-title="<?php the_title() ?>"></div>
<script type="text/javascript" src="//mysite.ru/wp-content/themes/atahualpa/images/share42/share42.js"></script>
I added this after the
PHP Code:
global $bfa_ata; // You can start editing below: ?>
in comment.php and expecting to see the form immediately after the post, but the unit with buttons appeared not there where I wanted. How to place a block just after the article?
https://www.dropbox.com/s/iuigff03zl...atahualpa3.png
Last edited by denisrobinzon; Sep 22, 2016 at 08:41 AM.
|
#2
Sep 20, 2016, 07:35 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
First off, putting images in dropbox assumes the viewer has a dropbox account
for item 2 do you mean to put the icons before the footer like this
if so, try putting that code in the option ATO->Edit POST/PAGE INFO ITEMS->FOOTER:xxxxxxxx
you will probably have to add CSS to style it the way you want.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#4
Sep 20, 2016, 02:40 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
When I hit the google plus I go to a google login.
Make sure you have cleared your browser cache and do you have a caching plugin active?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Sep 21, 2016, 04:29 AM
|
|
No, caching plugin is disabled. I also added code in comment.php and now the bottom two blocks of buttons.
PHP Code:
); ?> <div class="share42init" data-url="<?php the_permalink() ?>" data-title="<?php the_title() ?>"></div> <script type="text/javascript" src="//mysite.ru/wp-content/themes/atahualpa/images/share42/share42.js"></script> <?php // Using the new function comment_form() with the custom settings $comment_form_settings comment_form($comment_form_settings);?>
And my block with buttons working fine.
vk - ok
facebook - ok
mail - ok
g+ - ok
twiter and others - ok
The blog in Footer: Single Post Pages does not work properly.
vk - no preview pictures
facebook - not working
mail - ok
g+ - 400. That’s an error.
twiter - <?php the_title() ?>
I think it's because of the fact that you no longer use php code in ATA Options ?
Last edited by denisrobinzon; Sep 22, 2016 at 08:43 AM.
|
#6
Sep 21, 2016, 08:00 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Quote:
I think it's because of the fact that you no longer use php code in ATA Options ?
|
oops, yup that's true - no php in the options so putting it in the option is out.
You could add the code to bfa_post_parts.php just before line 224 which is:
and you must wrap it with the correct php codes so you should add this:
HTML Code:
?>
<div class="share42init" data-top1="20" data-url="<?php the_permalink() ?>" data-title="<?php the_title() ?>"></div>
<script type="text/javascript" src="//mysite.ru/wp-content/themes/atahualpa/images/share42/share42.js"></script>
<?php
and REMEMBER - an update of the theme will wipe this code out.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Last edited by juggledad; Sep 22, 2016 at 06:44 PM.
|
#7
Sep 21, 2016, 09:12 AM
|
|
Thanks for the tip, now the unit with the buttons in a single article is perfect, but as you can see, the block appeared as well in the excerpts pages? It can be removed? Unit with buttons should only be in the full post!? http://nat-bio.ru/
Last edited by denisrobinzon; Sep 21, 2016 at 09:21 AM.
|
#8
Sep 21, 2016, 10:04 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
change the code to
HTML Code:
if (is_single()) { ?>
<div class="share42init" data-top1="20" data-url="<?php the_permalink() ?>" data-title="<?php the_title() ?>"></div>
<script type="text/javascript" src="//mysite.ru/wp-content/themes/atahualpa/images/share42/share42.js"></script>
<?php }
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Last edited by juggledad; Sep 22, 2016 at 06:44 PM.
|
#9
Sep 21, 2016, 10:21 AM
|
|
Thank you, fine now. And what about the first problem "qipsmiles" ? Where to add this code? what would the smilies appeared in the form of comments?
PHP Code:
<?php if (function_exists('qipsmiles')) qipsmiles('ru'); ?>
Attachment 2764
|
#10
Sep 21, 2016, 03:59 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Not sure how you are going to do that. The theme calls the WordPress function comment_form() passing a bunch of settings. (see the very end of comments.php)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#11
Sep 22, 2016, 07:08 AM
|
|
Quote:
Originally Posted by juggledad
Not sure how you are going to do that. The theme calls the WordPress function comment_form() passing a bunch of settings. (see the very end of comments.php)
|
Yes difficult, I'm afraid, without php knowledge, it is useless to try.
Have you thought in the future to add in theme option "php code" for experienced users? This would facilitate addition of special features and add-ons and reduced the number of technical issues to you on the forum?
|
#12
Sep 22, 2016, 08:29 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Quote:
Have you thought in the future to add in theme option "php code" for experienced users? This would facilitate addition of special features and add-ons and reduced the number of technical issues to you on the forum?
|
The theme used to allow this, but the WordPress Theme Review Team banned the practice several years ago and any theme that allows PHP in an option will get rejected.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#13
Sep 22, 2016, 08:47 AM
|
|
Quote:
Originally Posted by juggledad
The theme used to allow this, but the WordPress Theme Review Team banned the practice several years ago and any theme that allows PHP in an option will get rejected.
|
Hm, understand. OK, then no more questions. Solved.
|
|