Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   [SOLVED] Emotion plugin "qipsmiles" and social buttoms (http://forum.bytesforall.com/showthread.php?t=23554)

denisrobinzon Sep 20, 2016 05:18 AM

[SOLVED] Emotion plugin "qipsmiles" and social buttoms
 
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

juggledad Sep 20, 2016 07:35 AM

1 Attachment(s)
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
Attachment 2762
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.

denisrobinzon Sep 20, 2016 08:38 AM

4 Attachment(s)
Quote:

First off, putting images in dropbox assumes the viewer has a dropbox account
https://www.dropbox.com/s/hiboc2unau...atahualpa1.png
https://www.dropbox.com/s/f5pfzl1tz4...atahualpa2.png
https://www.dropbox.com/s/iuigff03zl...atahualpa3.png
These links work correctly without a dropbox account.

attachments:
Attachment 2763
Attachment 2764
Attachment 2765

Quote:

for item 2 do you mean to put the icons before the footer like this
Attachment 2762
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.
thanks for the tip. I added code here
Attachment 2766
and the block is displayed correctly, but the buttons don't work.

for ex: google + - 400. That’s an error.

juggledad Sep 20, 2016 02:40 PM

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?

denisrobinzon 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 ?

juggledad Sep 21, 2016 08:00 AM

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:
HTML Code:

                    echo $before;
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.

denisrobinzon 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/

juggledad Sep 21, 2016 10:04 AM

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 }


denisrobinzon 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

juggledad Sep 21, 2016 03:59 PM

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)

denisrobinzon Sep 22, 2016 07:08 AM

Quote:

Originally Posted by juggledad (Post 114176)
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?

juggledad Sep 22, 2016 08:29 AM

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.

denisrobinzon Sep 22, 2016 08:47 AM

Quote:

Originally Posted by juggledad (Post 114178)
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.


All times are GMT -6. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.