|
Post by ~Memzak~ on Oct 26, 2010 8:44:14 GMT
Please Update the Custom stars code.
I've done some fixing around it such as removing duplicate stars and re-organizing stars that I have made.
<Code Goes Here>
Just replace the current custom star code in the global footer in that one. It's for organizing purposes. Also if someone wants a star I made it shall be easy to find.
If I need an update for a custom star I made then I'll just the edit here. This shall save a lot of time in organizing the delivery of my custom stars.
Veers has fixed and optimized the code. Don't read this post scroll down.
|
|
|
Post by disabled on Oct 26, 2010 11:59:32 GMT
If you remove duplicate entries, everyone with a star past the removed one will have a wrong Star and you have to fix it. You know for every custom star, only the index in the list of stars is saved, so if you change the list you have to edit the index for everyone.
|
|
|
Post by ~Memzak~ on Oct 26, 2010 13:35:42 GMT
Right... I knew that! (loljk) I only removed one duplicate entry which was my current star. (for not being able to check all the others at this point in the week)
So everyones star on the list would have been moved up one to the next star on the list past that star. (which was 13th on the list)
That could be very problematic. I shall fix it right away to only include the extra stars I'd like to add to the list!
EDIT:
Fixed. Thank you disabled, what would we do without you!
|
|
|
Post by Fringe Pioneer on Oct 26, 2010 17:37:31 GMT
Yes! I changed the star code so that there is a single CStar variable array of arrays, allowing dictionary-pair style entries. Now one can glance at the code and easily tell what star name refers to what URL.
Now that I did that, I will go through and delete the entries that refer to stars you no longer want.
Speaking of which, does anyone else have stars they will no longer use?
|
|
|
Post by ~Memzak~ on Oct 26, 2010 18:57:40 GMT
I love you veers, do you know how much you simplified the system and made it better? A lot. You are awesome. Have a cookie! (A virtual one at that, even though I can't give them out)
Please add the following to the list.
["Mzak_BlackSquare","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXV-YfHq1I/AAAAAAAAAB4/H27ftZF3uh4/Black%20Square.png"], ["Mzak_RainbowCircle","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXWQDfzQ5I/AAAAAAAAACE/4bV2VjO3mPo/Rainbow%20Circle.png"], ["Mzak_Spinny","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXWQYKCVBI/AAAAAAAAACM/Pt8wqqegxvA/SpiralStar1.gif"], ["Mzak_DeadCrystal","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXWpsBCpYI/AAAAAAAAACY/f881O2P3ADk/CrystalGray.png"], ["Mzak_ActiveCrystal","http://lh3.ggpht.com/_9KeRoqBbMTw/TMXWQW3YvcI/AAAAAAAAACU/Q1piG2menCU/CrystalColor.png"], ["Mzak_Pickle","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXV-a_qpyI/AAAAAAAAAB8/tjl4WpusWf8/Pickel2.gif"], ["Mzak_PinkCircle","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXV-WejneI/AAAAAAAAACA/h3BGr4eVMpQ/Pink%20Circle.gif"], ["Mzak_DiscoDisco","http://lh3.ggpht.com/_9KeRoqBbMTw/TMXWQMpRdgI/AAAAAAAAACI/YYoPKISOeG4/Rainbow%20Square.gif"], ["Mzak_BlackSpinner","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXV-Fd7BPI/AAAAAAAAAB0/A_Z97t5zGJk/Black%20Spinner.gif"], ["Mzak_LargeBlackSpinner","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXVzcGvVTI/AAAAAAAAABc/MNwER0VPmFM/9x10%20Black%20Star.gif"], ["Mzak_FlameSkull","http://lh4.ggpht.com/_9KeRoqBbMTw/TMXWQeodHKI/AAAAAAAAACQ/qVOLfIZfQXU/Skull.gif"], ["Mzak_Nonja","http://lh6.ggpht.com/_9KeRoqBbMTw/TMZ8Ln-F3zI/AAAAAAAAACw/PgFhS79a-q4/NonjaStar.gif"],
Please remove the following from the list:
["EggStarMemzak","http://a.random-image.net/memzak/egg.jpg"], ["MemzakStar","http://i42.tinypic.com/20uzv5z.gif"], ["Pink Circle","http://i36.tinypic.com/15dsajr.gif"], ["Pickle","http://i43.tinypic.com/20gzb5d.gif"], ["Spiral","http://i43.tinypic.com/2vxipt1.gif"], ["Black Spinner","http://i34.tinypic.com/xvw4l.gif"], ["Rainbow Square","http://i33.tinypic.com/9joqio.gif"],
Also, please modify Artifact123's Profile and change his star to Mzak_DiscoDisco and also modify QwertyuiopThePie's Profile and change his star to Mzak_Nonja Thank you Veers! ;D ;D ;D
|
|
|
Post by disabled on Oct 26, 2010 20:18:31 GMT
I fail to see how that removes the dependency on the ordering. You still can't delete entries... well you can replace them with empty statements... (unless that breaks the system, I didn't check) The only way to fix that limitation would have been to use proper Json notation like: [name1: url1, name2: url2, ...] But then you would have to update everyones star code...
|
|
|
Post by Fireball9903 on Oct 26, 2010 20:23:20 GMT
Whats a star code?...Just curious.
|
|
|
Post by disabled on Oct 26, 2010 20:31:18 GMT
The custom stars are stored as part of the custom title. For instance your custom title reads "{S=0}[M:1500]", that means use star 0 and add 1500 DBs (so you have 77Posts*2+1500 DBs). *edit* That code part of the custom title is removed before being displayed. */edit* Currently that S=n just refers to the index of the stars in an array similar to what memzak posted. That poses the problem that you can't delete stars, because then each position in the array changes and the stars get mixed up. If one would change the custom title to read for instance "{S=Mzak_DiscoDisco}" it wouldn't be order dependent anymore, but one would have to change everyones custom title to the new structure.
|
|
|
Post by QwertyuiopThePie on Oct 27, 2010 2:26:21 GMT
I see nothing in the custom star list. Whatever the "fix" was, it apparently broke it.
|
|
|
Post by disabled on Oct 27, 2010 2:49:50 GMT
He forgot to rename the variable name in the admin panel. Change this:
for(count2=0;count2<CStarNames.length;count2++) { var newop=document.createElement("option"); newop.innerHTML=CStarNames[count2][0]; mform.customstar.appendChild(newop); } To:
for(count2=0;count2<CStars.length;count2++) { var newop=document.createElement("option"); newop.innerHTML=CStars[count2][0]; mform.customstar.appendChild(newop); } (Just search for CStarNames and replace it with CStars) (Untested...)
|
|
|
Post by Fringe Pioneer on Oct 27, 2010 4:21:26 GMT
I must have saw the nonexistent, sorry. Now did I put the stars back? I have yet to remove the redundant ones and go back and fix everyone's stars, but at least the custom stars are custom again?
|
|
|
Post by QwertyuiopThePie on Oct 27, 2010 4:39:52 GMT
There's no way we can change a number on the pages of every single person that has a custom star. We should just keep the redundant ones.
Also, while now the custom star list is displaying again, it is displaying the old stars, not the new ones.
|
|
|
Post by ~Memzak~ on Oct 27, 2010 6:32:13 GMT
In which case we should just leave the code in it's current format. But could you still add the stars I requested to the end of the code?
["Mzak_BlackSquare","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXV-YfHq1I/AAAAAAAAAB4/H27ftZF3uh4/Black%20Square.png"], ["Mzak_RainbowCircle","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXWQDfzQ5I/AAAAAAAAACE/4bV2VjO3mPo/Rainbow%20Circle.png"], ["Mzak_Spinny","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXWQYKCVBI/AAAAAAAAACM/Pt8wqqegxvA/SpiralStar1.gif"], ["Mzak_DeadCrystal","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXWpsBCpYI/AAAAAAAAACY/f881O2P3ADk/CrystalGray.png"], ["Mzak_ActiveCrystal","http://lh3.ggpht.com/_9KeRoqBbMTw/TMXWQW3YvcI/AAAAAAAAACU/Q1piG2menCU/CrystalColor.png"], ["Mzak_Pickle","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXV-a_qpyI/AAAAAAAAAB8/tjl4WpusWf8/Pickel2.gif"], ["Mzak_PinkCircle","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXV-WejneI/AAAAAAAAACA/h3BGr4eVMpQ/Pink%20Circle.gif"], ["Mzak_DiscoDisco","http://lh3.ggpht.com/_9KeRoqBbMTw/TMXWQMpRdgI/AAAAAAAAACI/YYoPKISOeG4/Rainbow%20Square.gif"], ["Mzak_BlackSpinner","http://lh5.ggpht.com/_9KeRoqBbMTw/TMXV-Fd7BPI/AAAAAAAAAB0/A_Z97t5zGJk/Black%20Spinner.gif"], ["Mzak_LargeBlackSpinner","http://lh6.ggpht.com/_9KeRoqBbMTw/TMXVzcGvVTI/AAAAAAAAABc/MNwER0VPmFM/9x10%20Black%20Star.gif" ], ["Mzak_FlameSkull","http://lh4.ggpht.com/_9KeRoqBbMTw/TMXWQeodHKI/AAAAAAAAACQ/qVOLfIZfQXU/Skull.gif"], ["Mzak_Nonja","http://lh6.ggpht.com/_9KeRoqBbMTw/TMZ8Ln-F3zI/AAAAAAAAACw/PgFhS79a-q4/NonjaStar.gif"],
I mean that was the original intent of this thread.
|
|
|
Post by QwertyuiopThePie on Oct 28, 2010 3:44:22 GMT
I think Veers added them. I do like this system better, I must admit.
Right, fix fixed.
|
|
|
Post by ~Memzak~ on Oct 28, 2010 8:11:37 GMT
Yay! Now it'll be much easier to sell my stars!
And it also looks much nicer. (the code that is)
|
|
|