Thread: Forum Home Enhancements - [CM] FaceBook SlideBox (LikeBox)
View Single Post
  #26  
Old 09-02-2012, 06:11 PM
ChiNa ChiNa is offline
 
Join Date: Jul 2012
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by [B
bzcomputers[/b];2361805]I had a couple people using touchscreens (iPads, tablets, etc.) saying they had issues getting it to close. It will slide out on touch but there is no way to close it ........
Quote:
Originally Posted by [B
CharlieDelta[/b];2361989]+1. I have had the same complaints.
Update for, CharlieDelta and bzcomputers:

So I am back, and I forgot to tell, that I updated the Facebook Slidebox tutorial to a much better and easier tutorial! There are 2 METHODS! Method 1 is the new Tutorial, and METHOD 2 the old one which I think you both are still using!
The NEW Method 1, has only 1 TEMPLATE EDIT. And I can only hope for it works for you, I have added an extra FIELD called the JAVASCRIPT "NO CONFLICT" variable, Now its upto you if you wanna try the new method and see if it works for the people with the IPad problem!

First of all REMOVE all the codes used from the old FACEBOOK TUTORIAL! The codes should be in 3 template. In your Headinclude + Additional.css + header template. If you dont remember how, then take a look at "METHOD 2". And use it to remove the codes..

Step 1: Here is the NEW CODE and new METHOD to add the facebook slider! Add the whole code thar you see below in your header template, Add it BELOW EVERYTHING ELSE IN YOUR HEADER, And DO NOT SAVE IT YET.

============================
ADD THE CODE BELOW IN HEADER:
============================

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(function (){
jQuery(".s_likebox").hover(function(){
jQuery(".s_likebox").stop(true, false).animate({right:"0"},"medium");
},function(){
jQuery(".s_likebox").stop(true, false).animate({right:"-250"},"medium");
},500);
return false;
});
</script>
<script>
jQuery.noConflict();
</script>
<style type="text/css">
.s_likebox {
float:right;
width:288px;
height:345px;
background: url(images/fbslide.png) no-repeat !important;
display:block;
right:-250px;
padding:0;
position:fixed;
top: 130px;
z-index:1002;
border-radius:10px;
-moz-border-radius:10px;
-webkit-border-radius:10px;
}
div.likeboxwrap {
margin-top:2px;
margin-left:-5px;
background: #fff;
width:238px;
height:325px;
overflow:hidden;
border-radius:10px;
-moz-border-radius:10px;
-webkit-border-radius:10px;
}
div.likeboxwrap iframe {margin:-1px}
</style>

</style><div class="s_likebox"><div style="color: rgb(255, 255, 255); padding: 8px 5px 0pt 50px;"><span><div class='likeboxwrap'>PUT YOUR IFRAME CODE HERE</div> </span></div></div>

============================
After adding, move on to STEP 2, without SAVE!
============================

Step 2: We are still in your HEADER template, and you havnt saved it yet! Now if you take a look ABOVE in the code you just added in your header, you will see the BLUE TEXT saying PUT YOUR IFRAME CODE HERE! Add your FACEBOOK IFRAME code instead of the text PUT YOUR IFRAME CODE HERE! Exactly as you did in my first Tutorial! After you added that, make sure that your fbslide.png image is in your "images" folder! Then your CODE is done in the header. HIT SAVE to save your HEADER!

NOW WE ARE DONE!

Try now use the IPAD to see if it still have the conflict! And from now on, if anything use always this METHOD, or my METHOD 1 ! Good luck, and waiting for an update!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01198 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete