Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

[SOLVED] Emotion plugin "qipsmiles" and social buttoms


  #1  
Old Sep 20, 2016, 04:18 AM
denisrobinzon
 
12 posts · Sep 2016
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 07:41 AM.
  #2  
Old Sep 20, 2016, 06:35 AM
juggledad's Avatar
juggledad
 
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
Click image for larger version

Name:	linklocation.jpg
Views:	4847
Size:	24.7 KB
ID:	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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 20, 2016, 07:38 AM
denisrobinzon
 
12 posts · Sep 2016
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:
Click image for larger version

Name:	atahualpa1.png
Views:	2130
Size:	22.7 KB
ID:	2763
Click image for larger version

Name:	atahualpa2.png
Views:	2950
Size:	27.6 KB
ID:	2764
Click image for larger version

Name:	atahualpa3.png
Views:	2020
Size:	35.1 KB
ID:	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
Click image for larger version

Name:	atahualpa4.png
Views:	2023
Size:	21.6 KB
ID:	2766
and the block is displayed correctly, but the buttons don't work.

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

Last edited by denisrobinzon; Sep 22, 2016 at 07:42 AM.
  #4  
Old Sep 20, 2016, 01:40 PM
juggledad's Avatar
juggledad
 
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  
Old Sep 21, 2016, 03:29 AM
denisrobinzon
 
12 posts · Sep 2016
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 07:43 AM.
  #6  
Old Sep 21, 2016, 07:00 AM
juggledad's Avatar
juggledad
 
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:
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.
__________________
"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 05:44 PM.
  #7  
Old Sep 21, 2016, 08:12 AM
denisrobinzon
 
12 posts · Sep 2016
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 08:21 AM.
  #8  
Old Sep 21, 2016, 09:04 AM
juggledad's Avatar
juggledad
 
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 05:44 PM.
  #9  
Old Sep 21, 2016, 09:21 AM
denisrobinzon
 
12 posts · Sep 2016
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  
Old Sep 21, 2016, 02:59 PM
juggledad's Avatar
juggledad
 
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  
Old Sep 22, 2016, 06:08 AM
denisrobinzon
 
12 posts · Sep 2016
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  
Old Sep 22, 2016, 07:29 AM
juggledad's Avatar
juggledad
 
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  
Old Sep 22, 2016, 07:47 AM
denisrobinzon
 
12 posts · Sep 2016
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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
"About Me" Social Media plugin conflicts with Atahualpa kdawes01 Plugins & Atahualpa 4 Apr 22, 2012 05:16 AM
Integration of "WP Post to PDF" similar to "WP Print" or "WP Mail" neckit Plugins & Atahualpa 4 May 30, 2011 07:44 AM
Alt Text For "Comment" "Tag" and "Category" gifs jasebishop Atahualpa 3 Wordpress theme 0 Nov 12, 2010 11:09 PM


All times are GMT -6. The time now is 12:02 AM.


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