Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader > Mods & Themes
Reply
  #1  
Old 6th January 2011, 02:22
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default allow users to move there blocks around haha
all credit goes to walker1977, this small code allows each user as they wish, to move there blocks around on site, yep thats right, you can simply click on block title and move it where you like hahaha pretty neat.

Code:
 this goes befor the begin_block
  
  <html>
  <head>
  <script language="JavaScript">
  <!--
  function $(v) { return(document.getElementById(v)); }
  function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
  function xy(e,v) { return(v?(agent('msie')?event.clientY+document.body.scrollTop:e.pageY)agent('msie')?event.clientX+document.body.scrollTop:e.pageX)); }
  function dragOBJ(d,e) {
  
     function drag(e) { if(!stop) { d.style.top=(tX=xy(e,1)+oY-eY+'px'); d.style.left=(tY=xy(e)+oX-eX+'px'); } }
  
     var oX=parseInt(d.style.left),oY=parseInt(d.style.top),eX=xy(e),eY=xy(e,1),tX,tY,stop;
  
     document.onmousemove=drag; document.onmouseup=function(){ stop=1; document.onmousemove=''; document.onmouseup=''; };
  
  }
  //-->
  </script>
  </head>
  <body>
  <div style="position: relative; top: 0; left: 0" onmousedown="dragOBJ(this,event); return false;">



this after the end_block part
Code:
  </div>
  </body>
  </html>
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
The Following 2 Users Say Thank You to daffy For This Useful Post:
Krypto (29th January 2012), PopcornCat™ (22nd April 2011)
  #2  
Old 29th January 2012, 19:04
shasta's Avatar
shasta shasta is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 46
Question
Quote:
Originally Posted by daffy View Post
all credit goes to walker1977, this small code allows each user as they wish, to move there blocks around on site, yep thats right, you can simply click on block title and move it where you like hahaha pretty neat.
what page need modificate
Reply With Quote
  #3  
Old 31st January 2012, 22:08
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
this is an old mod now, dont even think it will work anymore, will need to get back to you in the late future if i ever look at it again lol
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
Reply

Tags
blocks , haha , move , users

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 21:34. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.