яλíĐєn
Junior Member
err..
Posts: 347
inherit
166268
0
Aug 19, 2012 9:14:04 GMT -8
яλíĐєn
err..
347
May 2011
xcraiden
|
Post by яλíĐєn on Jul 21, 2011 18:31:41 GMT -8
Hey Vergil, one little question about the code and how it is been shown to others and myself.
Why only my nickname is shiny from left to right but the other members i added to the code only shines there whole nickname instead shining like mine? or is it part of the effect?
|
|
inherit
168679
0
Nov 18, 2012 17:03:07 GMT -8
Virgil Sovereign
Latet anguis in herba.
686
July 2011
syonidv
|
Post by Virgil Sovereign on Jul 24, 2011 7:39:34 GMT -8
Raiden, The effect works by moving a color change incrementally over the individual letters of a link. To do this, it boxes each letter in its own "element". It appears that some of your links already have elements that encompass all the visible letters--to apply effects such as italicizing. Hence, this "block" is treated as a single letter by the shine script. I'm busy most of this week, but give me to Friday and I can modify the hack so that it's compatible with any hacks you have applying additional formatting. Regards, Virgil
|
|
яλíĐєn
Junior Member
err..
Posts: 347
inherit
166268
0
Aug 19, 2012 9:14:04 GMT -8
яλíĐєn
err..
347
May 2011
xcraiden
|
Post by яλíĐєn on Jul 24, 2011 20:44:05 GMT -8
Raiden, The effect works by moving a color change incrementally over the individual letters of a link. To do this, it boxes each letter in its own "element". It appears that some of your links already have elements that encompass all the visible letters--to apply effects such as italicizing. Hence, this "block" is treated as a single letter by the shine script. I'm busy most of this week, but give me to Friday and I can modify the hack so that it's compatible with any hacks you have applying additional formatting. Regards, Virgil That is good news to me since i was asked on the forum. As far as friday yea bro take your time, i am busy myself pimping my htc hd7 with custom background colors and learning the registery of my phone and sure its fun. Now anxious for mango update as currently running beta 2, sure has a lot neat features. But aside from all ill come to this thread on friday to read your response. Thanks for your help and coming back to this topic. thanks' Luis
|
|
яλíĐєn
Junior Member
err..
Posts: 347
inherit
166268
0
Aug 19, 2012 9:14:04 GMT -8
яλíĐєn
err..
347
May 2011
xcraiden
|
Post by яλíĐєn on Jul 29, 2011 20:19:02 GMT -8
I'm busy most of this week, but give me to Friday and I can modify the hack so that it's compatible with any hacks you have applying additional formatting. Regards, Virgil Hi Virgil, Its fridaylo, just waiting on that new modification. Also I've change my forums theme. Thanks
|
|
inherit
yllaciledehcysP citsatkranS
161169
0
Nov 28, 2013 18:47:45 GMT -8
moonbeam
I have NO IDEA what "psychedelic insultment" is, but I'm clearly a victim of it!
7,230
December 2010
lmccull
|
Post by moonbeam on Jul 30, 2011 8:07:53 GMT -8
I believe the superadmin on notmsnmoney has used several of the hacks you've developed for various board-enhancing features. Hence I'll thank you for those as well. that would be ME, and indeed i do.. i love all you code geniuses. makes me want to learn it myself! (ps. hi Virgil.. didn't know you were pimpin' yourself out over here but it's a great idea! you have too much knowledge not to!)
|
|
inherit
168679
0
Nov 18, 2012 17:03:07 GMT -8
Virgil Sovereign
Latet anguis in herba.
686
July 2011
syonidv
|
Post by Virgil Sovereign on Aug 4, 2011 16:50:01 GMT -8
Hi Raiden, I've recoded the hack so that it should be compatible with the various italic/bold hacks (as well as the color smear) hack. Give it a whirl and see whether it fits the bill. You can use the following code: <script type="text/javascript" src="http://yourjavascript.com/1137015619/ccv.js"></script> <script type="text/javascript" src="http://yourjavascript.com/4011983431/vshiny-tanxguide.js"></script> <script type="text/javascript">
/* List of users to shine. */
VShiny.sUsers = ['admin','tanxguide']; VShiny.init();
</script>
with the list of users edited as needed using the VShiny.sUsers = ['admin','tanxguide']; line.
|
|
яλíĐєn
Junior Member
err..
Posts: 347
inherit
166268
0
Aug 19, 2012 9:14:04 GMT -8
яλíĐєn
err..
347
May 2011
xcraiden
|
Post by яλíĐєn on Aug 4, 2011 17:12:47 GMT -8
Hi Raiden, I've recoded the hack so that it should be compatible with the various italic/bold hacks (as well as the color smear) hack. Give it a whirl and see whether it fits the bill. You can use the following code: <script type="text/javascript" src="yourjavascript.com/1137015619/ccv.js"></script> <script type="text/javascript" src="yourjavascript.com/4011983431/vshiny-tanxguide.js"></script> <script type="text/javascript">
/* List of users to shine. */
VShiny.sUsers = ['admin','tanxguide']; VShiny.init();
</script>
with the list of users edited as needed using the VShiny.sUsers = ['admin','tanxguide']; line. Yup works perfectly, now it dont shiny anywhere but just the nickname. Use to shine the links in Member's Bio - Modify Profile - Warn Member - Ban Member - Send Personal Message One last thing, i wish i could host the code on my forum? but that is ok. Request Done tytyty
|
|
cvekiboy
Junior Member
SHARE or BEWARE
Posts: 231
inherit
109505
0
Nov 27, 2019 2:37:22 GMT -8
cvekiboy
SHARE or BEWARE
231
August 2007
cvekiboy
|
Post by cvekiboy on Aug 25, 2012 11:16:31 GMT -8
Hope is not a problem to resurrect this thread with problems I face using this code. admin user has a display name >Some FREAK< but code turns it to THIS! Possible to correct this? Thanks in advance! And as always - NO RUSH ;D EDIT *Can't reproduce display name that is shown - check the link! Login out... END
|
|
inherit
onewillingsniper@hotmail.com
185552
0
Mar 13, 2014 12:52:02 GMT -8
Willing Sniper
559
November 2012
sergentpepper
|
Post by Willing Sniper on Sept 4, 2013 21:39:02 GMT -8
I put together the following scripted "shine" effect this morning, based on the example in the OP. You can see a demo of it here. It uses a single timer to cut down on overhead. You'll have to include the following code in your global footer: <script type="text/javascript" src="http://yourjavascript.com/1137015619/ccv.js"></script> <script type="text/javascript">
/* VShiny 1.0 - Shines up your links. V. Sovereign, July 2011 Code provided without warranties. Modify and distribute freely, so long as this header remains intact. Certain parameters should be set. */
var VShiny = {
/* --- PARAMETERS TO EDIT --- */
/* Number of milliseconds between 'shines'. */ iDelay : 4000,
/* Number of letters covered per second by the shine. */ iLettersPerSecond : 12,
/* Spread of the shine (stdv of a Gaussian dist. in letters). Larger values mean a wider shine. */ rSpread : 2.6,
/* R,G,B triplet specifying the shine color. */ iShineCol : [255,255,255],
/* Glow radius in ems. Set to zero (0) to turn off glow. Currently glow is turned off for Google Chrome since Chrome's text-shadow CSS effect mangles the letters. IE will only respect the glow if the DOCTYPE tag is properly set--which it isn't for ProBoards pages. Hence, the glow effect will only be visible to Firefox, Mozilla, Opera, and Safari users. */ rGlowRad : 0.22,
/* Function that returns 'true' if a candidate anchor (the argument) should have the shine effect applied, and 'false' otherwise. The function is currently set to apply a shine to any anchor referring to a user with group level > 0.
Alternatively, you can specify shine elements by setting fxIsCandidate to null and manually invoking VShiny.add() with the IDs of (or references to) the elements you want to shine.
Note that VShiny currently expects any shined elements to _not_ have any childen (i.e. content other than text). Results are undefined if this condition is violated. */ fxIsCandidate : function( eA ) { return /^group(\d+)$/.test( eA.className ) && parseInt( RegExp.$1 ) > 0; },
/* --- EDIT BELOW THIS POINT AT YOUR OWN RISK --- */
iTimeRef : 0, oIval : null, oAs : [],
add : function( eA ) { eA = typeof( eA ) == 'string' ? document.getElementById( eA ) : eA; VShiny.oAs.push( { e: eA, iDefCol : VShiny.unescape( window.getComputedStyle ? getComputedStyle( eA, null ).getPropertyValue( 'color' ) : eA.currentStyle['color'] ) } );
if( !VShiny.oIval ) { VShiny.rGlowRad = navigator.userAgent.toLowerCase().indexOf('chrome') != -1 ? 0.0 : VShiny.rGlowRad; VShiny.iSpeed = 1000/VShiny.iLettersPerSecond; VShiny.sShineCol = VShiny.escape( VShiny.iShineCol ); VShiny.oIval = setInterval( VShiny.update, 10 ); VShiny.iTimeRef = (new Date()).getTime(); } },
update : function() { var iTime_ = (new Date()).getTime() - VShiny.iTimeRef; for( var i = 0; i < VShiny.oAs.length; i++ ) { var iTime = iTime_, oA = VShiny.oAs, iL = oA.e.children.length;
if( !iL ) iL = VShiny.compartmentalize( oA.e ); if( !iL ) continue; if( (iTime %= VShiny.denorm( iL, 6 )) < VShiny.iDelay ) continue;
for( var j = 0, e = oA.e.children[0]; j < iL; e = oA.e.children[++j %iL] ) { var rZ = Math.abs( iTime - VShiny.denorm( j, 3 ) )/(VShiny.rSpread*VShiny.iSpeed); e.style.color = VShiny.escape( (rZ > 3) ? oA.iDefCol : VShiny.interp( VShiny.iShineCol, oA.iDefCol, Math.exp( -rZ*rZ ) ) ); if( VShiny.rGlowRad ) { if( rZ > 1.5 ) e.style.textShadow = 'none'; else { var s = '0 0 ' + VShiny.rGlowRad + 'em ' + e.style.color; e.style.textShadow = s + (rZ > 0.75 ? '' : (',' + s)); } } } } },
init : function() { if( !VShiny.fxIsCandidate ) return; for( var i = 0, eAs = document.getElementsByTagName('a'); i < eAs.length; i++ ) if( VShiny.fxIsCandidate( eAs ) ) VShiny.add( eAs ); },
compartmentalize : function( eA ) { eA.innerHTML = ('' + eA.innerHTML).replace( /(.)/g, '<font>$1</font>' ); return eA.children.length; }, denorm : function( i, i_ ) { return Math.floor( VShiny.iDelay + (i + i_*VShiny.rSpread)*VShiny.iSpeed ); },
HEX : "0123456789ABCDEF", escape : function( iCol ) { return '#' + VShiny.$3( iCol[0] ) + VShiny.$3( iCol[1] ) + VShiny.$3( iCol[2] ); }, unescape : function( sCol ) { var s = /^rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\)$/.exec( sCol ); if( s ) return [parseInt( s[1] ), parseInt( s[2] ), parseInt( s[3] )]; s = /^#(\w\w)(\w\w)(\w\w)$/.exec( sCol.toUpperCase() ) || /^#(\w\w)(\w\w)(\w\w)$/.exec( CCV[sCol] ); return [VShiny.$2(s[1]), VShiny.$2(s[2]), VShiny.$2(s[3])]; }, interp : function( iCol, iCol_, r ) { return [Math.round( iCol[0]*r + iCol_[0]*(1-r) ), Math.round( iCol[1]*r + iCol_[1]*(1-r) ), Math.round( iCol[2]*r + iCol_[2]*(1-r) )]; }, $2 : function( s ) { return VShiny.HEX.indexOf(s.charAt(0))*16 + VShiny.HEX.indexOf(s.charAt(1)); }, $3 : function( i ) { return VShiny.HEX.charAt( Math.floor( i/16 ) ) + VShiny.HEX.charAt( i %16 ); } }; VShiny.init();
</script> Alternatively (preferably), you can make modifications to the latter script block and save to a .js file, then upload to a .js hosting site such as yourjavascript.com. If you decide to use the code, I'll be around to answer questions and look into problems. The code has been tested in IE 9, FF 5, Chrome, and Safari. Regards, Virgil Has V5 plugin been created to replace the V4 version of this?
|
|
inherit
yllaciledehcysP citsatkranS
161169
0
Nov 28, 2013 18:47:45 GMT -8
moonbeam
I have NO IDEA what "psychedelic insultment" is, but I'm clearly a victim of it!
7,230
December 2010
lmccull
|
Post by moonbeam on Sept 5, 2013 5:32:18 GMT -8
It has, but it's proprietary. Not released to the public at this time. I don't know that it ever will be.
|
|
яλíĐєn
Junior Member
err..
Posts: 347
inherit
166268
0
Aug 19, 2012 9:14:04 GMT -8
яλíĐєn
err..
347
May 2011
xcraiden
|
Post by яλíĐєn on Sept 17, 2013 21:37:05 GMT -8
It has, but it's proprietary. Not released to the public at this time. I don't know that it ever will be.
interesting. ...
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Sept 17, 2013 23:17:27 GMT -8
dangit.. I keep seeing my name in the title...
|
|