For Support and Advertisement you can contact  701491310 c0defire@xmpp.jp
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[CM] Twitter SlideBox (Widget) vB Version: 4.2.0
08-08-2013, 06:17 AM,
Post: #1
[CM] Twitter SlideBox (Widget) vB Version: 4.2.0
Hey Everyone, I made this first as a Facebook LikeBox, and now you can get it as Twitter Widget too. Its very small and simple! I hope you will like it.. And what you will achieve with this tutorial is that when mouse over the image, it will shift / slide your Twitter-Box Widget.

Lets Start with the Example Images First, and then the Modification!

[Image: TitBoxvB4.gif]

The modification may look a bit scary or confusing, but its very easy and after 1 time, you will install it without any help the next time!

Only 3 Template Edits

Hidden Content:
You must reply to see links


Image: Slide In
[Image: TwitBoxVB41.png]

Image: Slide Out
[Image: TwitBoxVB4.png]
==================== Modification Starts =====================

Step 1: Go to your ADMINCP, and then Styles & Templates.
Now to your right in the Dropdown menu, click on Edit Template, now find the "headinclude" template, which is the best place to add your Javascript or Jquery codes. And thats whats what we are going to do! Scroll all the way down, and to add the code below everything else...

Code to add:

PHP Code:
<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(".twitbox").hover(function(){
jQuery(".twitbox").stop(true, false).animate({right:"0"},"medium");
},function(){
jQuery(".twitbox").stop(true, false).animate({right:"-250"},"medium");
},500);
return false;
});
</script> 

Step 2: Now we have to add the CSS, Go back to your Styles & Templates in (ADMINCP) and in your Templates Dropdown choose "Edit Templates"!

Now scroll down till you find the CSS Templates. In the CSS Templates click and open the "additional.css" template! And add the following code below all the other codes: (If its empty, just add it in the front)

Code to add:
PHP Code:
.twitbox {
float:right;
width:288px;
height:345px;
backgroundurl(images/twitbox.pngno-repeat !important;
display:block;
right:-250px;
padding:0;
position:fixed;
top130px;
z-index:1002;
border-radius:10px;
-
moz-border-radius:10px;
-
webkit-border-radius:10px;
}
div.twitboxwrap {
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.twitboxwrap iframe {margin:-1px


Step 3: Go to this Site
Hidden Content:
You must reply to see links


Login with your own account... Or if you dont have an account then signup for one!

The Widget option can also be seen in your PROFILE, below! Its called
WIDGETS! Now you can click on it and on you right side click on options are on your right side it says "Create new"!

Click on CREATE NEW, and after creating your widget, simply COPY the code from BELOW! We need to embed the code on your webpage, but in a bit...

Widget Settings: You can leave the Width and Height as it is. It will also ask you for a Scrollbar, and make sure to Click and mark it YES! Click SAVE on your twitter accounts widget that you created...

When you are done, Click on Finish & Grab Code!

Step 4:
Now add the CODE inside the original code showen below, instead of the BLUE TEXT. After you have added the code, your full code should be ready!

Look for the BLUE TEXT below, and replace it with the code you just got for the Widget!:

Code to add:
PHP Code:
<div   class="twitbox"><div style="color: rgb(255, 255, 255); padding:   8px 5px 0pt 50px;"><span><div class='twitboxwrap'>PUT THE WIDGET CODE HERE</div></span></div></div


REPLACE THIS PART --> "PUT THE WIDGET CODE HERE" WITH THE WIDGET CODE.

STEP 5:
When your are done putting the WIDGET CODE inside the real code, Then now we need to put it all in your HEADER template, or footer...

Put the code below everything else in the tempplate. And you are DONE! (You can see an example of my CODE, used on my site below this post, so you get an idea of how it looks like when finished)

STEP 6:
Now copy the "twitbox.png" image from the attachment below, or from below the text, and upload it in your "images" folder in the root of your ftp!
We are DONE, Please its very important that you click INSTALLED after Installing, for future support! Thank you!

I would Get very happy if you nominate this as (MOTN) Mod of the Month

=================== Modification End ===============
===


Extra Troubleshoots & Info


Below you see example of the full code used in my forum China-Cheats.com
. The code in BLUE color is the twitter widget code:

Example of my Code:

PHP Code:
<div  class="twitbox"><div style="color: rgb(255, 255, 255); padding:  8px 5px 0pt 50px;"><span><div class='twitboxwrap'><class="twitter-timeline"  href="https://twitter.com/ChiNaCheats" data-widget-id="267073824858710017">Tweets by @ChiNaCheats</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div></span></div></div> 
Hidden Content:
You must reply to see attachments

Need help ! just ping me Blackhat
Jabber : c0defire@xmpp.jp
ICQ : 701491310

Quote
For Support and Advertisement you can contact  701491310 c0defire@xmpp.jp
01-17-2014, 07:53 AM,
Post: #2
[CM] Twitter SlideBox (Widget) vB Version: 4.2.0
nice poost brooooooooo
Quote
03-05-2014, 03:10 AM,
Post: #3
[CM] Twitter SlideBox (Widget) vB Version: 4.2.0
Thanks ! love ya . i will try it later hehe
Quote
02-06-2019, 05:30 AM,
Post: #4
RE: [CM] Twitter SlideBox (Widget) vB Version: 4.2.0
thanks for a thread. looking forward to read it
Quote


Forum Jump:


Users browsing this thread: 1 Guest(s)
For Support and Advertisement you can contact  701491310 c0defire@xmpp.jp


All rights reserved © 2012-2015 OffensiveCommunity, Designed at WallBB Co Uk
Powered By MyBB, © 2002-2019 MyBB Group.